prog.cpp: In member function ‘int Arith::add()’:
prog.cpp:14:5: error: ‘cout’ was not declared in this scope
cout<<"Enter the x value"<<endl;
^~~~
prog.cpp:14:32: error: ‘endl’ was not declared in this scope
cout<<"Enter the x value"<<endl;
^~~~
prog.cpp:15:5: error: ‘cin’ was not declared in this scope
cin>>x;
^~~
prog.cpp: In member function ‘int Arith::sub()’:
prog.cpp:22:5: error: ‘cout’ was not declared in this scope
cout<<"Enter the x value"<<endl;
^~~~
prog.cpp:22:32: error: ‘endl’ was not declared in this scope
cout<<"Enter the x value"<<endl;
^~~~
prog.cpp:23:5: error: ‘cin’ was not declared in this scope
cin>>x;
^~~
prog.cpp: In member function ‘int Arith::mul()’:
prog.cpp:30:5: error: ‘cout’ was not declared in this scope
cout<<"Enter the x value"<<endl;
^~~~
prog.cpp:30:32: error: ‘endl’ was not declared in this scope
cout<<"Enter the x value"<<endl;
^~~~
prog.cpp:31:5: error: ‘cin’ was not declared in this scope
cin>>x;
^~~
prog.cpp: In member function ‘int Arith::div()’:
prog.cpp:38:5: error: ‘cout’ was not declared in this scope
cout<<"Enter the x value"<<endl;
^~~~
prog.cpp:38:32: error: ‘endl’ was not declared in this scope
cout<<"Enter the x value"<<endl;
^~~~
prog.cpp:39:5: error: ‘cin’ was not declared in this scope
cin>>x;
^~~
prog.cpp: In function ‘int main()’:
prog.cpp:48:12: error: ‘clrscr’ was not declared in this scope
clrscr();
^
prog.cpp:51:5: error: ‘cout’ was not declared in this scope
cout<<"a:Addition"<<endl;
^~~~
prog.cpp:51:25: error: ‘endl’ was not declared in this scope
cout<<"a:Addition"<<endl;
^~~~
prog.cpp:57:5: error: ‘cin’ was not declared in this scope
cin>>ch;
^~~
prog.cpp:64:14: error: jump to case label [-fpermissive]
case 's':
^~~
prog.cpp:61:21: note: crosses initialization of ‘int a’
int a=obj.add();
^
prog.cpp:68:14: error: jump to case label [-fpermissive]
case 'm':
^~~
prog.cpp:65:21: note: crosses initialization of ‘int s’
int s=obj.sub();
^
prog.cpp:61:21: note: crosses initialization of ‘int a’
int a=obj.add();
^
prog.cpp:72:14: error: jump to case label [-fpermissive]
case 'd':
^~~
prog.cpp:69:21: note: crosses initialization of ‘int m’
int m=obj.mul();
^
prog.cpp:65:21: note: crosses initialization of ‘int s’
int s=obj.sub();
^
prog.cpp:61:21: note: crosses initialization of ‘int a’
int a=obj.add();
^
prog.cpp:76:14: error: jump to case label [-fpermissive]
case 'e':
^~~
prog.cpp:73:21: note: crosses initialization of ‘int d’
int d=obj.div();
^
prog.cpp:69:21: note: crosses initialization of ‘int m’
int m=obj.mul();
^
prog.cpp:65:21: note: crosses initialization of ‘int s’
int s=obj.sub();
^
prog.cpp:61:21: note: crosses initialization of ‘int a’
int a=obj.add();
^
prog.cpp:77:23: error: ‘exit’ was not declared in this scope
exit(0);
^
prog.cpp:80:11: error: ‘getch’ was not declared in this scope
getch();
^