sealionnn's Profile
Reputation: 0
Apprentice
- Group:
- New Members
- Active Posts:
- 4 (0.01 per day)
- Joined:
- 16-August 12
- Profile Views:
- 57
- Last Active:
Dec 27 2012 06:30 PM- Currently:
- Offline
Previous Fields
- Country:
- US
- OS Preference:
- Windows
- Favorite Browser:
- Chrome
- Favorite Processor:
- Who Cares
- Favorite Gaming Platform:
- Who Cares
- Your Car:
- Who Cares
- Dream Kudos:
- 0
Latest Visitors
-
macosxnerd101 
16 Aug 2012 - 13:15
Posts I've Made
-
In Topic: Is this a good setup for a text "RPG"?
Posted 23 Dec 2012
Adak, on 23 December 2012 - 02:25 AM, said:A do while loop is frequently used in menu's - which you should have, if you offer several possible options for the user to choose from.
Have fun!
I'll look into that. 'switch' works, but I have to number each option so the user can input that number for each case of the switch. Of course, my default option just sends the user back to the start of the question if they don't select a valid number. -
In Topic: Is this a good setup for a text "RPG"?
Posted 22 Dec 2012
jimblumberg, on 22 December 2012 - 05:13 PM, said:If you are asking if this is a good plan, I would have to say not really. First don't use goto. This will make you program logic very difficult to follow and can lead to some hard to find bugs. However using functions is highly encouraged. I would also suggest you stop using the operating system specific functions and headers unless you actually need something contained in these headers. Since you seem to be using C++ there are better ways of keeping the console window open besides using _getch().
Jim
Thanks, Jim.
I'm going to check out your tutorials on functions, but could you explain a better term than _getch();?
My Information
- Member Title:
- New D.I.C Head
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
-
- Location:
- USA
- Years Programming:
- <1
- Programming Languages:
- C++
Contact Information
- E-mail:
- Private
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
sealionnn has no profile comments yet. Why not say hello?