error! function does not take 0 arguments PLEASE HELP!!! DESPERATE TO FINISH THIS PROGRAM

Pages: 12
That would be 0 arguments I'm passing into the function in the call
On line 17, you've written a declaration:

int playTurn(int);

On line 90, you're calling playTurn() without any arguements/parameters.

On line 96, you've written a definition:

int playTurn(int x)

What's different about all these code samples?
Yes.

Why are you passing 0 arguments in? If you wrote the function, then you know that it needs to take an argument.
Oh.. I see how to fix this...
@Rechard3


#include <iostream>
using namespace std;

int main () {
cout << "Hello World \n";
//You happy now?

system ("PAUSE");
return 0;
}
Topic archived. No new replies allowed.
Pages: 12