Advertisement

Beginning with c++

Started by February 11, 2001 09:34 PM
12 comments, last by Mr Newbie 23 years, 11 months ago
quote: Original post by Mr Newbie

Well as i understand C and C++ are two way different things. I am focusing on mainly C++ and yahoo is mostly with the C programming...


They aren''t that different from each other . C++ is just C with some added stuff.


http://www.gdarchive.net/druidgames/
If you want to program in C++, don''t bother learning C first. C was carried along to provide backward compatibility, not as a stepping stone to C++.

--groucho

"Outside of a dog, a book is a man''s best friend. Inside of a dog, it''s too dark to read."
--groucho"Outside of a dog, a book is a man's best friend. Inside of a dog, it's too dark to read."
Advertisement
C and C++ use the exact same syntax, do they not? As far as I know, the only difference between C and C++ is that C++ introduced classes, and made structs more flexible. So if you "learn C" and then "learn C++," you are pretty much just learning procedural programming and then building OOP on top of that (OOP=Object Oriented Programming)

In fact, that''s basically what I did. I didn''t learn about classes until my second-year computer course in high school
"Be that word our sign in parting, bird or fiend!" I shrieked, upstarting —"Get thee back into the tempest and the Night''s Plutonian shore!-just 2 of 96 lines from E.A.P.'s "the Raven"
No, I would advise that you get the best book ever written on the C++ language: The C++ Programming Language by Bjarne Stroustrop. Excellent book.

If you''ve never heard of templates or STL, you are missing out on some great features of C++. C syntax is not the same as C++; there are more keywords in C++, and slightly different rules regarding definitions, const, etc.

groucho is correct. Don''t use C as a stepping stone for C++. It is more trouble than it''s worth.

This topic is closed to new replies.

Advertisement