What one to use, your opinion...

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()???
string

a fixed length buffer is inherently insecure since it is prone to buffer overflow attack.
sorted.... thanks :)
Topic archived. No new replies allowed.