Jump to content

View more

Image of the Day

Inventory ! Va falloir trouver une autre couleur pour le cadre D: #AzTroScreenshot #screenshotsaturday https://t.co/PvxhGL7cOH
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

c or c++ for games?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
4 replies to this topic

#1 cyberg   Members   

122

Posted 22 January 2000 - 10:41 AM

hello, i have read the article on language between c and c++ to learn first. i know these 2 language, but i ask myself which chose for make games, for now i use just straight C with vc++, but there is no need to use straight because vc++ compile in c++. i use c because i heard that it is a little faster than c++, but with the speed of computer today, that little difference is still important?? and professionnal games programmers use c or c++ ??? cyberg

#2 Domini   Members   

126

Posted 22 January 2000 - 11:34 AM

Its true that C programs can be faster than C++, because of the compiler has to do things with the classes, I don''t feel it is that much of a difference. I find it easier to represent game characters and levels with C++ objects. An OOP approach to a project usually makes development go better.

Domini

#3 Staffan   Members   

122

Posted 22 January 2000 - 12:06 PM

I prefer C++ because of the structure and encapsulation. Anyhow, the speed you gain in C is quite small. Code the bottlenecks in pure assembly and you should have a structured OOP-program as well as a blazing fast one.

#4 cyberg   Members   

122

Posted 22 January 2000 - 12:18 PM

thanks guys
i think i will go for c++ now, my code will be better structured for a little lost of speed...

cyberg

#5 I-Shaolin   Members   

138

Posted 22 January 2000 - 03:36 PM

Cyborg,

This is a question that I have struggled with myself, but for what I have seen recently, C++ is the way to go. Besides the fact that you can structure your program much more effeciently with C++ than C, many of the reasons behind not using C++ are no longer true (at least not true enough to matter). As you pointed out, most people are using C++ compilers anyway even if they are writing C code.

What''s far more important is the effecient use of the language. Well written C++ code will run circles around badly written C code.





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.