Jump to content
  • Advertisement

Archived

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

merlin9876

Newbie question! Where will C++ take me before...

This topic is 5933 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

Probably discussed a lot here, but here goes. How far will C++ take me before it''s overhead will require me to have some parts in C? I''ve read an article here that mentions that most shooters use C, is this a concern for other types of games (RTS, chess games etc) Are there shooters only using C++ these days? And is C fast enough for shooters or should I also look at assembly? Mind you, I''m only looking far ahead and only need a general idea. Thx! p.s.: no, I''m not another guy wanting to create Quake VIII... I''m just wondering...

Share this post


Link to post
Share on other sites
Advertisement
Umm yes this is a newbie question... C++ is just C with objects. If you didn''t understand that last sentance buy a book. C++ has virtualy the least overhead you can get, most FPS are written in C++, which as I stated is just extended C. I would suggest the Sams Teach Yourself C++ in 21''s book to understand C++. After that if you are intersted in gamming I would suggest a book that teachers you Direct X or Open GL. They are both graphics API''s that are used in almost every game. Good luck and remember not to give up!

Share this post


Link to post
Share on other sites
Hey,
C++ is just as fast as C if you do it right. Even with the extra overhead of classes, C++ is only a fraction slower than C, it does not make all too much difference. You can write an entire game in C++, and then the same game in straight C, and I''m willing to bet you couldn''t tell the difference.

Walt

Share this post


Link to post
Share on other sites
Thanks! That's what I thought... I've already got two books coming in soon (Sams Teach Yourself C++ in 24 Hours and Thinking in C++, Volume 1: Introduction to Standard C++). Should get me from my usual web programming to C++/game programming in no time, I hope...

[edited by - merlin9876 on July 23, 2002 11:23:05 PM]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
"C++ is just C with objects" that''s a newbie answer. C++ is so, so much more.

Share this post


Link to post
Share on other sites
"I''ve read an article here that mentions that most shooters use C"

Dooom III = c++

nuff said?

Share this post


Link to post
Share on other sites
quote:
Original post by trub
"I''ve read an article here that mentions that most shooters use C"

Dooom III = c++

nuff said?


Except the main graphics engine, which is still *gasp* C .

Share this post


Link to post
Share on other sites
I have yet to see *ANY* C/C++ code that is not some bastard hybrid of the two languages. Folks tend to use the features of each language that they like.

Pure C or pure C++ is very close to being a fantasy.



God was my co-pilot but we crashed in the mountains and I had to eat him...
Landsknecht

Share this post


Link to post
Share on other sites
Yes ''AP'' I know that C++ is more than ''C with objects''. But I didn''t really think that I was going to need to expalin every moresl of sh*t that C++ does. Also thanks for helping merlin9876 with his problem.

Share this post


Link to post
Share on other sites
quote:
Original post by Landsknecht

Pure C or pure C++ is very close to being a fantasy.



Uhh...Don''t tell SabreMan !!

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!