removing char form a buffer

This is a discussion on removing char form a buffer within the C++ Programming forums, part of the General Programming Boards category; I wrote a program that uses a password. I used the _getch command to get the password with out echoing ...

  1. #1
    Unregistered
    Guest

    removing char form a buffer

    I wrote a program that uses a password. I used the _getch command to get the password with out echoing it to the screen.
    The problem? Once the password is accepted the program outputs a menu. The password is concatented on to the end of the password.

  2. #2
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    Ok i am sure.. You used a for loop.. To get everything into an array.... Well after getting the input.. You can reinitilize the varaible to {NULL}...

  3. #3
    Unregistered
    Guest

    Re: removing char form a buffer

    Originally posted by Unregistered
    I wrote a program that uses a password. I used the _getch command to get the password with out echoing it to the screen.
    The problem? Once the password is accepted the program outputs a menu. The password is concatented on to the end of the password.
    maybe we could have some code?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sorting Linked Lists
    By DKING89 in forum C Programming
    Replies: 6
    Last Post: 04-09-2008, 08:36 AM
  2. writing a pack-style function, any advices?
    By isaac_s in forum C Programming
    Replies: 10
    Last Post: 07-08-2006, 09:09 PM
  3. Need help understanding info in a header file
    By hicpics in forum C Programming
    Replies: 8
    Last Post: 12-02-2005, 12:36 PM
  4. buffer contents swapping
    By daluu in forum C++ Programming
    Replies: 7
    Last Post: 10-14-2004, 03:34 PM

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