cin.ignore and cin.get in C

This is a discussion on cin.ignore and cin.get in C within the C Programming forums, part of the General Programming Boards category; What is the equivalent of cin.ignore and cin.get in C btw could someone give me a link where I can ...

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

    cin.ignore and cin.get in C

    What is the equivalent of cin.ignore and cin.get in C
    btw could someone give me a link where I can study other C functions like TextColor(), Delay() and more.
    Last edited by Trafalgar Law; 09-18-2008 at 05:01 AM.

  2. #2
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    cin.get() in C is either getchar() or fgets( str, size, stdin )

    TextColor() & Delay() are not standard C functions.
    Here's a list of standard C & C++ functions: http://www.cppreference.com/
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

  3. #3
    Registered User Sshakey6791's Avatar
    Join Date
    Nov 2008
    Location
    -
    Posts
    57

    Why

    Why would you use cin.ignore over system ( "Pause" ); I'm jjw because i use system ( "Pause" ); and just found out about cin.ignore is one better then these other or are they the samethings just different way of doing it?

  4. #4
    Registered User slingerland3g's Avatar
    Join Date
    Jan 2008
    Location
    Seattle
    Posts
    602

  5. #5
    Registered User slingerland3g's Avatar
    Join Date
    Jan 2008
    Location
    Seattle
    Posts
    602
    Oh, what the equivalent...my bad. I read too quick.

  6. #6
    Registered User Sshakey6791's Avatar
    Join Date
    Nov 2008
    Location
    -
    Posts
    57
    it's kool thanks for the read it's help me out i knew about all the cin. but not in detail

Popular pages Recent additions subscribe to a feed

Similar Threads

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

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