miiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiindre biiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiilder för helvete!!!!
sidan e ju lika bred som 2!!!
som rubriken lyder så har jag problem med en slump funktion i ett tärnings spel i c++!:(
fel:
Error E2188 project1.cpp 32: Expression syntax in function main()
Error E2188 project1.cpp 38: Expression syntax in function main()
Error E2377 project1.cpp 46: If statement missing ) in function main()
Error E2188 project1.cpp 56: Expression syntax in function main()
kod:
#include<iostream>
#include<time>
#include<conio.h>
using namespace std;
using std::srand;
using std::rand;
int main()
{
srand(time(0));
int giss1;
int giss2;
int slump;
int players;
massa kod.....
rad 32:
slump = ()((double(rand())/RAND_MAX)*6)+1;
massa kod.....
rad 38:
else if () //hur gör man tex:else if (slump inte är lika med giss1) ?egentligen inge fel men needs help anyway...
massa kod.....
rad 46:
}
massa kod.....
rad 56:
slump = ()((double(rand())/RAND_MAX)*6)+1; // samma igen...