pausing using char HELP!

Hello. I need some help here. I'll show the code first, it is a math tutoring program.


cout<<"Input a number then hit enter to display an addition problem.\n";

unsigned seed;
cin>>seed;
cout<<"When you are ready to see the answer press enter.\n";
srand(seed);
srand(time(0));
int num1=1+rand()%100;
int num2=1+rand()%100;
cout<<right<<setw(6)<<num1<<endl;
cout<<"+"<<right<<setw(5)<<num2<<endl;
cout<<right<<"------"<<endl;
char pause; //this is the problem
cin.get(pause);
int answer=num1+num2;
cout<<right<<setw(6)<<answer<<endl;

It is supposed to stop then the user presses enter and it reveals the answer.
I've tried putting char pause; and cin.get(pause) everywhere. Any ideas?
Thanks.
Topic archived. No new replies allowed.