-
It may be C++ but it never hurts to know about C-Style strings and his question was on C-style strings.
I agree C++ strings are what should be used but that doesnt migate the fact that C-style strings are still good to learn and most books teach them before C++ strings.
-
I sincerely disagree. A C++ dev should know C++ strings and largely ignore C-style strings. Most are better of not knowing them.
-
Well i guess we will just have to settle with agreeing that we disagree :D
-
And btw, I don't like the approach of learning C-stuff before C++ stuff. I believe all those thousands of books out there use the wrong approach.
The one book I do like is Accelerated C++. It focuses on writing C++ applications without forcing the user to learn C stuff before. It only teaches them (and a narrow subset) in a practical manner to implement higher C++ functionality and encapsulation.
Gets you started on C++ right away.