There you go... C.exit = 1,and while it is equal to 1 it continuesCode:int main()
{
Program OMGDOIT;
int y;
C.exit = 1;
while(C.exit == 1)
{
.......
.......
switch(y)
{
........
........
}
clrscr(); //Clears screen maybe?
}
return 0;
}
Printable View
There you go... C.exit = 1,and while it is equal to 1 it continuesCode:int main()
{
Program OMGDOIT;
int y;
C.exit = 1;
while(C.exit == 1)
{
.......
.......
switch(y)
{
........
........
}
clrscr(); //Clears screen maybe?
}
return 0;
}
So at the end of "case 7:" (before break) print the "C.exit" variable.
--
Mats
Like this I suppose?Code:case 7:
OMGDOIT.Case7();
OMGDOIT.TerminationPrevention();
OMGDOIT.RorQ();
C.exit = 1;
Uhh...actually I found the problem...it has got nothing to do with C.exit or cin.ignore() or any of that crap...I forgot to put a break statement in Case 7 LOL
You mean this one:
case 7:
OMGDOIT.Case7();
OMGDOIT.TerminationPrevention();
OMGDOIT.RorQ();
break;
[/code]
It was in your original post, so I didn't look too carefully in the code you posted next - I should have...
--
Mats
In my original post, I ADDED the break statement thinking why it wasn't there..if only I had the brains to look in my original code :P