What one to use, your opinion...

Mar 31, 2009 at 5:41pm
After seeing so many people say that using gets() is a bad idea I decided I may aswell start doing it properly so my question is, is it better to use <string> and use getline()... or is i better to use char [] and use cin.getline()???
Mar 31, 2009 at 6:06pm
string

a fixed length buffer is inherently insecure since it is prone to buffer overflow attack.
Mar 31, 2009 at 11:00pm
sorted.... thanks :)
Topic archived. No new replies allowed.