How do you do this...?

This is a discussion on How do you do this...? within the C++ Programming forums, part of the General Programming Boards category; What is the code to make it so when you enter a string it prints asteriks(*) on to the screen?...

  1. #1
    Registered User |<4D4\/eR's Avatar
    Join Date
    Mar 2002
    Posts
    6

    Question How do you do this...?

    What is the code to make it so when you enter a string it prints asteriks(*) on to the screen?

  2. #2
    I'm Back
    Join Date
    Dec 2001
    Posts
    556
    use getch and putch for input/ouput

    Or do a search for the ques, it has been asked millions of times.

  3. #3
    Registered User rmullen3's Avatar
    Join Date
    Nov 2001
    Posts
    330
    Pseudo code:

    C = getch ();
    If C is not backspace or return, display ESC
    else if
    C is backspace : go back 1 space, delete last char from array
    else if
    C is return : end input loop

  4. #4
    |&lt;4D4\/eR
    Guest

    Thumbs up

    thanks for the replies.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21