line 8 while (guess! etc
says expexted unqualified id before "while"
what is it ?????
User Profile
Collapse
-
-
basic code not working
int main()
{
int number=rand()%1 00; // rand undecl/?
int
guess=-1;
int trycount=0;
while(guess!=nu mber && trycount<8)
{
{cout<<"Please enter a guess: "; // cout undecl/?
cin>>guess; // cin undecl/?
if(guess<number )
cout<<"Too low"<<endl; ... -
-
int main()
{
int number=rand()%1 00;
int
guess=-1;
int trycount=0;
while(guess!=nu mber && trycount<8)
{
cout<<"Please enter a guess: ";
cin>>guess;
if(guess<number )
cout<<"Too low"<<endl;
if(guess>number )
cout<<"Too high"<<endl;
trycount++;...Leave a comment:
-
-
beginner stuff,bloodshed dev C++
when I compile I get a few errors.. is there a way
to set up the settings to show what SHOULD be there
to make it right?? it just says the standard error
messages...When possible it would be nice to see at
least some suggestions to fix it. thanks
No activity results to display
Show More
Leave a comment: