gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > C or C++

#7588 - NoSuchUsernameException - Fri Jun 20, 2003 11:58 am

I'm guessing this has been asked a few times, but what advantage is there to using C++ over C, and vice versa.

#7593 - Wildginger - Fri Jun 20, 2003 1:25 pm

Im pretty much a beginner, but have managed to get a game up and running.

I "was" using C, but seeing as I know more about C++, I decided to rewrite it in C++. Everything is fine, and I havent experienced any problems as of yet, or any performance issues.

I would also be interested to know any pros and cons of each though, in case Im about to run into problems the more advanced my game gets.
_________________
---
Wildginger (aka JimTownsend)

#7596 - sgeos - Fri Jun 20, 2003 3:58 pm

Generally speaking, use what you are best at. I think that C++ is evil and only use C, but if you can't do much in C, why bother with it?

-Brendan

#7599 - Wildginger - Fri Jun 20, 2003 4:26 pm

Exactly my thoughts,

When Im coding, I *think* in C++, therefore it was an easy choice to rewrite in C++, instead of writing C poorly. If you're a C coder, then you're not going to go the C++ route.

So is there no known issues with using C++ over C?
_________________
---
Wildginger (aka JimTownsend)

#7605 - jenswa - Fri Jun 20, 2003 7:36 pm

I am not a pro, so can't awnser this question completely,
but i thought that c++ is an extension of c, more complex
strcuters and/or methods are possible.
_________________
It seems this wasn't lost after all.

#7607 - tepples - Fri Jun 20, 2003 8:26 pm

Wildginger wrote:
So is there no known issues with using C++ over C?

It's in the "C and C++" section of the FAQ
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.