error c2084


#include <Windows.h>
#include <iostream>
#include<conio.h>
#include<iomanip>
using namespace std;

void classRec(); void end(); void editRec(); void gotoxy(int x,int y);
;
void menu()
{
char ch;
do
{ cout<<"\n\n\n\tMAIN MENU";
cout<<"\n\n\t1. CLASS RECORD";
cout<<"\n\n\t2. EDIT RECORDS";
cout<<"\n\n\t3. HELP";
cout<<"\n\n\t4. EXIT";

cout<<"\n\n\tPlease Select Your Option (1-3): ";
k:
cin>> ch;

switch(ch)
{
case '1': classRec();

break;
case '2': editRec();
break;
case '3': end();
break;
default :
gotoxy(8,15);
cout<<"Please enter a valid choice: ";
goto k;

}
}while(ch!='3');
system("cls");
system("pause>0");


}

I can't run my program. It says that there's an error,error C2084: function 'void menu(void)' already has a body. How can I solve this? Please help me. Thank you. =)
It would be more helpful if you showed the exact error the compiler produced. It will name one or more files, so we'll need to those too (with their names).
Error 1 error C2084: function 'void menu(void)' already has a body c:\users\pauline\documents\visual studio 2010\projects\classrecord\classrecord\menu.h 11
Please help me. I'm just a beginner in programming and I badly needed to finish this program. Thank you so much. =)
And what's in menu.h?
And why is there no reference to menu.h in the posted code?
Last edited on
Topic archived. No new replies allowed.