Mar 28, 2009 at 8:18am UTC
What is difference between cin.getline() and gets() wrt their functionality??
Mar 28, 2009 at 5:15pm UTC
It's C. When possible is better using C++ features
Mar 28, 2009 at 5:20pm UTC
Seems simple enough, I thought it might have been something like unpredictable output or the likes.
Mar 29, 2009 at 8:16pm UTC
Thank you for that information, it was a sound argument. gets() should never be used.
Mar 31, 2009 at 9:46am UTC
Thanks for that. Actually, our instructor uses gets() frequently for all string inputs. Now I know that it's bad, though. Thanks again!!
Mar 31, 2009 at 8:57pm UTC
I would suggest a refresher course for your instructor. ;)
Last edited on Mar 31, 2009 at 8:58pm UTC
Apr 1, 2009 at 1:00am UTC
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