I hate to bring this over here, but I need some C++ help [message #95183] |
Mon, 14 June 2004 00:37 |
Weirdo
Messages: 369 Registered: March 2003
Karma:
|
Commander |
|
|
I don't have much experience in C++, but I think I found something.
First you declare- char loopcon = 'y'; -
Next you do this in your case statement.
while (loopcon == 'y' || loopcon == 'Y') This one is true the first time.
after the loop you to this. cin >> loopcon;
I don't know what this means, but I guess this changes the value of loopcon, wich makes it not anymore value 'y'
So when you go back to a new case.
while (loopcon == 'y' || loopcon == 'Y'), will be false.
Make sure after the while loop, loopcon is again 'y'.
Hope this helps you.
Size doesn't matter.
|
|
|