cin.get and cin.ignore

This is a discussion on cin.get and cin.ignore within the C++ Programming forums, part of the General Programming Boards category; What's the equivalent of this in C?...

  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    34

    cin.get and cin.ignore

    What's the equivalent of this in C?

  2. #2
    The larch
    Join Date
    May 2006
    Posts
    3,573
    I would assume the answer to both is getchar (or its kind, like fgetc). See the FAQ for more information.
    I might be wrong.

    Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
    Quoted more than 1000 times (I hope).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. cin.ignore and cin.get in C
    By Trafalgar Law in forum C Programming
    Replies: 5
    Last Post: 11-24-2008, 10:34 AM
  2. cin.get(); doesn't work even with cin.ignore();
    By calumn in forum C++ Programming
    Replies: 34
    Last Post: 05-14-2006, 12:12 PM
  3. cin.ignore() & cin.get()
    By dragonlady in forum C++ Programming
    Replies: 11
    Last Post: 08-09-2005, 12:38 AM
  4. Confused about cin.get(); and classes.
    By RaccoonKing in forum C++ Programming
    Replies: 6
    Last Post: 07-17-2005, 12:44 PM
  5. need help with cin.get, or cin.ignore
    By yoyo in forum C++ Programming
    Replies: 5
    Last Post: 09-23-2003, 02:14 AM

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