Ok... so I am doing a program where you should enter a number that's not a 5 and you can't enter the same number twice. Everything seems to work fine but when I call the function "game" it wont do it. Anything I did wrong or am I jus high or something?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include <iostream>
usingnamespace std;
int game();
int main(){
cout << "This is random text..." << endl;
int game();
}
int game(){
//I have a while loop and some other random stuff like if ststements in here
}
I recommend you go back to your textbook and read up on this. The syntax for calling a function is crucial to programming in C and C++, so you'd be better off making sure you've properly understood it.