Quote Originally Posted by Elysia View Post
That is why you, in C++, never use built-in native arrays. If you really need a static array for some reason (and not std::string), then you use std::array. It interfaces neatly with the STL and even keeps track of its size.
But I still fail to see why you need an array in the first place. Doesn't getline work for you?
Of course it works for me. The function expects a c-style string buffer though. I know I can use string::c_str() to get the cstring representation of the std::string, but...
I don't know. I started out with a char array buffer before I learned of that function, and I'm too lazy to change it back now.