Thread: How do you do this...?

  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