Click here to Skip to main content
15,887,350 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
my compiler is giving me this error
"function 'menu' should have a prototype!
what is its prototype? pleeease some one help me
Posted
Comments
joshrduncan2012 1-Nov-12 13:39pm    
Can you show us your code where the compiler is complaining about?
Sidra Feroze 1-Nov-12 14:28pm    
void main(){
int menuchoice,i,j;
clrscr();
_setcursortype(_NOCURSOR);
do{
menuchoice=menu();
if(menuchoice==1 || menuchoice==4){
if(menuchoice==1){
for(i=0;i<10;i++){
for(j=0;j<10;j++){
R[i][j]=0;
}
}
}
Richard MacCutchan 2-Nov-12 16:46pm    
menuchoice=menu();
Where is the definition for the menu() function?
Richard MacCutchan 1-Nov-12 14:00pm    
The prototype is the signature definition of the function, like you see in header files. Something along the lines of:
bool menu(HWND hWnd, char* menuTitle);.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900