cin.peek() and cin.putback()

This is a discussion on cin.peek() and cin.putback() within the C++ Programming forums, part of the General Programming Boards category; i just read about them in the C++ book i have and was wondering if they could be used to ...

  1. #1
    Registered User
    Join Date
    Nov 2004
    Location
    Pennsylvania
    Posts
    434

    cin.peek() and cin.putback()

    i just read about them in the C++ book i have and was wondering if they could be used to replace what is typed with an * (like for a password). If not how do i go about doing this?

    (PS- Sam's Teach Yourself C++ in 21 Days really is a crappy book )

  2. #2
    Super Moderater.
    Join Date
    Jan 2005
    Posts
    374
    (PS- Sam's Teach Yourself C++ in 21 Days really is a crappy book )
    That's your opinion, since you're a nubee forgive me if I don't take it seriously.

    http://faq.cprogramming.com/cgi-bin/...&id=1043284392

    This may or may not be what you are looking for.

  3. #3
    Registered User
    Join Date
    Nov 2004
    Location
    Pennsylvania
    Posts
    434
    i wouldnt say im a noob, ive been around a while, i dont have a large knowledge of C++ but i dont consider myself a noob. And yes its my opinion and im entitled to it as are you, im assuming you like the book I personally did not, as do some of my fellow board members. But we are all entitled to our opinion. Thanks for the link ill check it out.

  4. #4
    Super Moderater.
    Join Date
    Jan 2005
    Posts
    374
    I've not read the book...

    ...but the book made it to publication so it has to have some good things going for it. Either way I don't really care. Sorry. Hope the link was useful though.

  5. #5
    Registered User
    Join Date
    Nov 2004
    Location
    Pennsylvania
    Posts
    434
    It was thanks! I personally just dont like the layout of the book. It went from simple to complex from week one to two. Like i said i just personally didnt like it. Thanks for your help.

  6. #6
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    That's your opinion, since you're a nubee forgive me if I don't take it seriously.
    You'll see the same opinion a lot from senior members in the countless "book threads".

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