By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,663 Members | 762 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,663 IT Pros & Developers. It's quick & easy.

trouble with a function and the call of it

P: 1
I am learn c++, but have program in others languages. I have defined a function call wait with the following statement: void wait(void);
The wait does the following:
void wait(void) { gotoxy(6,12);
cout << "test wait";
getch();
}

Then inside the main I put the command wait,

I get this warning statement not a call

What am I doing wrong?
Sep 17 '06 #1
Share this Question
Share on Google+
1 Reply


Banfa
Expert Mod 5K+
P: 8,916
I am learn c++, but have program in others languages. I have defined a function call wait with the following statement: void wait(void);
The wait does the following:
void wait(void) { gotoxy(6,12);
cout << "test wait";
getch();
}

Then inside the main I put the command wait,

I get this warning statement not a call

What am I doing wrong?
It is very hard to tell since you have not posted all of the relevent code (i.e. the call to wait is missing.

However I suspect you have put

wait;

when you need

wait();
Sep 17 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.