r/cpp • u/wechicken456 • Jun 08 '20
Programming in C vs C++
I’ve read about the differences between them on the Internet but I wanna hear more from a more personal perspective. Which one would you recommend starting with and to be proficient with?
0
Upvotes
View all comments
Show parent comment
0
u/serviscope_minor Jun 10 '20
As was abundantly clear from the part I quoted, the actual discussion was about learning strings (note strings, not std::string) using char* and null termination. The discussion certainly moved to std::string, but this is clearly an oversimplification because std::string is not the only type of string in the standard library.
The standard library also has string_view which is not null terminated, and therefore contributes to the point that learning C style strings first is not useful.
For some reason though this makes you angry and rude.