How do I make a text based game?

closed account (967L1hU5)
I've been trying to make a text-based game, not like Rogue, but like where the console will ask you a question, and you press 1 or 2. I've been using a cout/cin based way, and every way I try, the first question would work fine, but every one after that would just revert it back to the first cout. What am I doing wrong?
Could you post the relevant part of the code?
May be some unnoticed recursion in the code.
closed account (zb0S216C)
dallyO wrote:
every way I try, the first question would work fine, but every one after that would just revert it back to the first cout.

Probably due to poor flow control. Without the code, though, it's hard to tell where your program breaks down.

Wazzak
Topic archived. No new replies allowed.