Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

help on text based dos horse racing game

i would put the code here, but it is too long... but i will showyou where the compiler says theres an error.

cout<<"___________________________________________________|H|"<<endl;
cout<<"PRESS ENTER TO START THE RACE!"<<endl;
system("pause");
system("cls");
makeAnswer();
} //<-------- it says theres an error here


bets();
if (choice1== 'q'|| choice1== 'Q')
exit(0);
}

void bets()
{ <---and it says theres an error here
cout<<" _______________________________ "<<endl;
cout<<" | | "<<endl;
cout<<" |_______*** BET HERE***_________| "<<endl;
cout<<" | | | | | | "<<endl;


Comments

  • Eric TetzEric Tetz Member Posts: 2,141
    : i would put the code here, but it is too long...

    To bad... because the error is not in the code you've shown.

    : but i will showyou where the compiler says theres an error.
    :
    : cout<<"___________________________________________________|H|"<<endl;
    : cout<<"PRESS ENTER TO START THE RACE!"<<endl;
    : system("pause");
    : system("cls");
    : makeAnswer();
    : } //<-------- it says theres an error here

    The error is somewhere above this point in the file. Possibly an extra open brace { or a missing one, and it has confused the compiler. The compiler is pointing to the point at which it realized there was an error, which is not necessarily the same thing as the actual source of the error.

    Cheers,
    Eric


  • williamSwilliamS Member Posts: 2
    : : i would put the code here, but it is too long...
    :
    : To bad... because the error is not in the code you've shown.
    :
    : : but i will showyou where the compiler says theres an error.
    : :
    : : cout<<"___________________________________________________|H|"<<endl;
    : : cout<<"PRESS ENTER TO START THE RACE!"<<endl;
    : : system("pause");
    : : system("cls");
    : : makeAnswer();
    : : } //<-------- it says theres an error here
    :
    : The error is somewhere above this point in the file. Possibly an extra open brace { or a missing one, and it has confused the compiler. The compiler is pointing to the point at which it realized there was an error, which is not necessarily the same thing as the actual source of the error.
    :
    : Cheers,
    : Eric
    :
    :
    : :thanks Eric!
    : :--will

Sign In or Register to comment.