Teen Programmers Unite  
 

 

Return to forum top

C++: Extra Characters

Posted by eternaldisciple [send private reply] at January 24, 2003, 10:20:05 AM

I'm writing a program that's in the beginning stages for a high school CS class. My problem is that all of my menu functions work as needed except for EXIT, which when chosen automatically inserts a zero that has to be deleted to make the next selection. Kind of hard to explain, but I've put my code here: www.angelfire.com/rant/freak/perfparts.cpp Any insight would be greatly appreciated. TY.

Posted by regretfuldaydreamer [send private reply] at January 24, 2003, 02:19:03 PM

cout << '/b'; is probably what you're looking for. ('/b' is the backspace character - deletes the last character on the sceen... I think)

Posted by gian [send private reply] at January 24, 2003, 04:52:34 PM

'\b', I think you will find will work better :-)

Posted by eternaldisciple [send private reply] at January 30, 2003, 10:21:03 AM

Arrrgh! That didn't work either. Zeros = bad = evil. Help please!

Posted by Psion [send private reply] at January 30, 2003, 03:46:03 PM

Are you talking about using archaic keyboard interfaces that encode special key presses as a 0 followed by another code?

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.