Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

DM0407

C vs. C++

This topic is 5781 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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]

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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++.

Share this post


Link to post
Share on other sites
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."

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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...

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!