Well, I disagree, with the statement of your answer (
cin.getline
being "the way you should read a string in C++"), with your statement that
char[]
is "not that bad", that C arrays vs. C++ containers is an "issue of opinion",
and that this were on the level of disputing brace style. I'd point that piece of code out in every code review we'd be doing, and insist on proper use of C++ idioms. I could also tell you of the number of
char[]
-related errors I had to fix over the years, but I am afraid you wouldn't listen. You have your opinion, I have mine, sorry. @stackptr —
DevSolar 20 secs ago