Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

cin.get and cin.ignore-C++


  • Please log in to reply
1 reply to this topic

#1 Fsoci3ty

Fsoci3ty

  • Members
  • 1 posts
  • OFFLINE
  •  
  • Local time:10:54 PM

Posted 11 July 2017 - 02:56 PM

Hello 

Can you guys please tell me what the difference is between cin.get and cin.ignore in C++ and  when should i use each one?

Thanks a lot :flowers:



BC AdBot (Login to Remove)

 


#2 jwoods301

jwoods301

  • Members
  • 1,489 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:10:24 AM

Posted 11 July 2017 - 03:08 PM

Almost an identical post here from 2009 (with the answer)...

 

http://www.cplusplus.com/forum/beginner/9353/


Edited by jwoods301, 11 July 2017 - 03:09 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users