sealionnn's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
New Members
Active Posts:
4 (0.01 per day)
Joined:
16-August 12
Profile Views:
94
Last Active:
User is offline 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

Icon   sealionnn has not set their status

Posts I've Made

  1. In Topic: Is this a good setup for a text "RPG"?

    Posted 23 Dec 2012

    View PostAdak, 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.
  2. In Topic: Is this a good setup for a text "RPG"?

    Posted 22 Dec 2012

    View Postjimblumberg, 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

Comments

sealionnn has no profile comments yet. Why not say hello?