Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » General Discussions » General Discussion » I hate to bring this over here, but I need some C++ help
I hate to bring this over here, but I need some C++ help [message #95183] Mon, 14 June 2004 00:37 Go to previous messageGo to previous message
Weirdo is currently offline  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.
http://www.n00bstories.com/stats/renegade_stats.php?player=weirdo64
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Is it just me...
Next Topic: Help out with C&CR: Sole Survivor: Mirrors and Servers
Goto Forum:
  


Current Time: Tue Jan 07 09:13:29 MST 2025

Total time taken to generate the page: 0.00949 seconds