|
-
June 13th, 2006, 06:11 PM
#1
if statement prolem
See Im Tryna Make My Text Based RPG in Console Application.
when using if statement i want it to repeat its self if they dont enter the right character on keyboard.
Say i wanted them to enter their home from a list.
cout<<"Where Would you like to go?\nHome\nJob\nStore";
cin>>y;
if(!strcmp(home,"h")){
//Make it go to the home and do some stuff then if it isnt ensertered right it will display a message and say "Its To Early to go here Because Your Broke";
how could i work this out?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|