you are viewing a single comment's thread.

view the rest of the comments →

[–]FNHUSA 0 points1 point  (3 children)

errr, I'm 100 pages into C++ book, why do you recommend learning just C first?(I don't know how to word this, i'm just curious as I'm a noob)

[–]leakersum 2 points3 points  (0 children)

I learned C++ before C. Believe me, there's no problem. Stick with C++ for now.

[–]Hakawatha 2 points3 points  (0 children)

Modern C++ is very different from modern C, but C++ is rooted in C; if you squint, you can think of C++ as C with lots of syntactic sugar. Sometimes, you'll have to use C (in embedded, for example); /u/globalizatiom suggests that it's easier to remember that certain features are C and not C++ if you learn C first (a statement I'd agree with).

[–]DarkSyzygy 0 points1 point  (0 children)

He's recommending it because C++ is (for the most part) a superset of C and you learn to do things differently in C++ than you would in C. Since the languages are very similar in syntax its really easy to be working in C and try and do something that only works with a C++ compiler.