cin skips a line, how to disable?

I'm writing a simple RPG, and am trying to utilize cin and switch, but my issue is that cin always skips one line, rendering me unable to use between menu borders. How do I make cin stop doing this?
Can you show the trouble code? What do you mean by cin "skipping a line?"
Daleth,
Unfortunately, I'm using my phones connection to write this, so I cannot provide all of the code.

I can provide this, however:

cout << "/ /" << endl;

I would like to fit in some input in between the slashes, but cin skips a line by default. Sorry for being so vague.
cin? or cout? They are very different objects.

For cin:
cin will by default read until a space or a newline character, so use getline(cin,mystring) or cin.getline(mycstring,mynumber) to read past spaces.

For cout:
endl will automatically stream a newline to the buffer in cout. I am guessing you want to achieve this?
 
cout << "/ /" << "Whoo this random dungeon stuff like the floor!" << "/ /" << endl;


You should reconsider your design if you have to resort to printing out the image with multiple lines of cout.
Topic archived. No new replies allowed.