[Error] Expected Unqualified-id before numeric constant

gotoxy(4,48);cout<<"Miscellaneous:";
gotoxy(4,49);cout<<"Registraton Fee"; gotoxy(57,49);cout<<"P 11,130.00";
gotoxy(4,50);cout<<"Library Fee"; gotoxy(57,50);cout<<" 899.00";
gotoxy(4,50);cout<<"Student Activity Fee"; gotoxy(57,50);cout<<" 222.00";
gotoxy(4,50);cout<<"Athletic Development Fee"; gotoxy(57,50);cout<<" 279.00";
gotoxy(4,50);cout<<"Medical and Dental Fee"; gotoxy(57,50);cout<<" 202.00";
gotoxy(4,50);cout<<"Audio Visual Fee"; gotoxy(57,50);cout<<" 263.00";
gotoxy(4,50);cout<<"Academic Community Advancement Fee"; gotoxy(57,50);cout<<" 334.00";
gotoxy(4,50);cout<<"Cultural Fee"; gotoxy(57,50);cout<<" 246.00";
gotoxy(4,50);cout<<"Guidance Counselling Fee"; gotoxy(57,50);cout<<" 230.00";
gotoxy(4,50);cout<<"Development Fee"; gotoxy(57,50);cout<<" 1,894.00";
gotoxy(4,50);cout<<"Internet Fee"; gotoxy(57,50);cout<<" 361.00";
gotoxy(4,50);cout<<"Testing Materials Fee"; gotoxy(57,50);cout<<" 202.00";
gotoxy(4,50);cout<<"Insurance Fee"; gotoxy(57,50);cout<<" 56.00";
gotoxy(4,50);cout<<"Energy Fee"; gotoxy(57,50);cout<<" 2,541.00";
//misc total =18,859

int t1,t2,t3,t4,t5,t6,t7,t8,t9,10,total; //Where the error is

I am trying to put all the subject's tuition fee for an enrollment system. But somehow, this error has been stated. Any help?
Last edited on
You already have a thread about this program of yours: http://www.cplusplus.com/forum/unices/197477/

You do declare multiple variables in one statement. Change that to the other style of declaring only one per statement:
1
2
3
4
5
6
7
// from
int t1,t2,t3;

// to
int t1;
int t2;
int t3;

The change itself will not fix anything, but it will help you see what is wrong.
Topic archived. No new replies allowed.