cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
What one to use, your opinion...
What one to use, your opinion...
Mar 31, 2009 at 5:41pm UTC
mcleano
(922)
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 UTC
jsmith
(5804)
string
a fixed length buffer is inherently insecure since it is prone to buffer overflow attack.
Mar 31, 2009 at 11:00pm UTC
mcleano
(922)
sorted.... thanks :)
Topic archived. No new replies allowed.