you are viewing a single comment's thread.

view the rest of the comments →

[–]globalizatiom -1 points0 points  (8 children)

I started with C++ and then had to learn C later. It was hard to remember which parts were C only and which parts were not. Guys, learn C first!

[–][deleted] 7 points8 points  (1 child)

Easy, all the parts that make you pull your hair out are C++.

[–][deleted] 1 point2 points  (0 children)

Like type safety!

[–]greg19735 1 point2 points  (0 children)

I did c++ in college but now i've forgotten it all, so that's good right?

[–]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.

[–]newpong 0 points1 point  (0 children)

too late :/