Advertisement

C vs. C++

Started by September 11, 2002 09:01 PM
20 comments, last by DM0407 22 years, 1 month ago
well basiclly is it better to go all C++ or use a mix of c code and c++ for DX. If the answer is to use C does anyone know of any good C touts? and also would it be smart to completly learn C before i try to dive into C++ At the moment im attempting to learn C++......Pointers Suck. So any input would be greatly welcome
Pointers are same in both languages. It's possible to use DX in C, but it's easier to use C++. As someone who uses C rather than C++, I say go ahead and learn C++, just don't pretend that means that you know how to code in C too. The languages are similar, but that statment is akin to saying - don't think that you know how to speak Latin because you know how to speak Italian. (it does give you a leg up however).


[edited by - lessbread on September 11, 2002 11:08:05 PM]
"I thought what I'd do was, I'd pretend I was one of those deaf-mutes." - the Laughing Man
Advertisement
I''d say learn C++

It''s not that much harder than C, and usually makes for better-organized projects.
HELO! U MUST LEARN C IF YOU WANA BE AS GOOD AS JON CARMAK HE HATE C++ I RED THAT ON SLASDOT AND HE MAKE DFOOM 2
* raises eyebrows and hopes that above post was very tongue in cheek *
Yes yes it was a joke. Just forgot that damn smiley.

DM0407:

"At the moment im attempting to learn C++......Pointers Suck. So any input would be greatly welcome"

You''ll still need to learn the concept and use of pointers. Clench your teeth and continue learning. And, well, since you''re learning C++, just go for C++.
Advertisement
I''d suggest learn C first, but don''t stay there for a long time and don''t learn it completely. Otherwise you will be puzzled while everybody is talking about OOP.

C++ can greatly reduce your programming time, so it''s very important to learn. Learn C first to grasp the structure of the language (the dreaded semi-colons, preprocessors, pointers, bla bla bla), after that, go to C++.

My compiler generates one error message: "does not compile."
My compiler generates one error message: "does not compile."
Start with Accelerated C++. It gets your programming fairly advanced stuff early yet manages to hold off teaching pointers until later. The reason? Unlike every other "C++" book Accelerated C++ is actually a C++ book, not a C or java book pretending to be a C++ book.
thanks for all the help everyone. This site is great i posted that about 17 hours ago
Well, I recommend that you learn a little bit of C just so you can understand it when you come across it also, some functions in C can come in handy, but you don''t need to learn all of it, just have some vague knowledge of it, and you can go hard at learning C++. I''m do that myself but I''m still in highschool and lack time to learn as much as I would like but its working for me...

This topic is closed to new replies.

Advertisement