cin.getline() and gets()

What is difference between cin.getline() and gets() wrt their functionality??
Don't use gets(). :-)
Whats wrong with gets()?
It's C. When possible is better using C++ features
Seems simple enough, I thought it might have been something like unpredictable output or the likes.
It's worse than that. gets() is evil.
http://www.gidnetwork.com/b-56.html
:-)
Thank you for that information, it was a sound argument. gets() should never be used.
Thanks for that. Actually, our instructor uses gets() frequently for all string inputs. Now I know that it's bad, though. Thanks again!!
I would suggest a refresher course for your instructor. ;)
Last edited on
Dear teacher is teacher
If u think that gets() should not use than u must argue with ur instructor infovour of urself and if ur instructor will be right then He/She will tell u its benefit to use or drawback etc.

By the way i myself never use gets().
thanks
Topic archived. No new replies allowed.