HarshJain
Newbie
Code:
else if((RI >= 181) && (RI <= 210)){
if((ICT1 = false) || ((ICT2 = false) || (ICT3 = false))){
cout << "ICT \n";
if(ICT1 = false){
ICT1 = true;
goto endICT;
}
if(ICT2 = false){
ICT2 = true;
goto endICT;
}
if(ICT3 = false){
ICT3 = true;
goto endICT;
}
endICT:
}
Howdy! This is simply an aspect of my program, and this bit of code appears a few times, with different variables and other stuff. When I compile the code, I get "error C2143: Syntax Error : missing ';' before '}'" I'm new to all this coding, and would appreciate any help! Thanks for your time! Basically, a random number is chosen, and if it's within a range, it goes through this part. This range can only be chosen 3 times because then the first 'if' would not be true. Thanks for all your help so far! Also, the error is in the 'endICT:' line.