C++/C Flames?
Lo all,
I was wondering which language is better for games:
ANSI C
OR
ANCI C++
At the moment i am using c++, but 2 other guys are
telling me to move to c (maybe this sounds a litle bit
crazzy) but i just wanted to know.
My feeling says that c++ is way nicer to code in then in c.
Well i hope some of you guys can give your opinions about
it.
------
With kind regards,
Sander Aerts
------With kind regards,Sander Aerts aka DrSnugelsCrap :)---------------------------mov ax, 013h; int 10h; mov ax, 0xa000h;mov es, ax; mov di, 3360; mov al, 15;stosb; mov ax, 0002h; int 21h;mov ax, 03h; int 10h;
I can''t think of any practical reasons why you would code in C as opposed to C++. If anything, coding in C++ in a C-style way (straight procedural), might be something you''d want to do if you don''t like an object oriented approach, but even that is pushing it. You''re not going to get any speed benefit by going to C. My suggestion is don''t listen to them.
If you like C more than C++, then use C.
If you like C++ more than C, then use C++.
The one that is better, is the one that you are the most familiar with.
If you like C++ more than C, then use C++.
The one that is better, is the one that you are the most familiar with.
I agree with tuita. What you like to use is the most important. I also use C++ for the same reason you do. It is as powerful as C and provides for cleaner code.
Make it work, then
make it fast.
"I’m happy to share what I can, because I’m in it for the love of programming. The Ferraris are just gravy, honest!" --John Carmack: Forward to Graphics Programming Black Book
Make it work, then
make it fast.
"I’m happy to share what I can, because I’m in it for the love of programming. The Ferraris are just gravy, honest!" --John Carmack: Forward to Graphics Programming Black Book
"None of us learn in a vacuum; we all stand on the shoulders of giants such as Wirth and Knuth and thousands of others. Lend your shoulders to building the future!" - Michael Abrash[JavaGaming.org][The Java Tutorial][Slick][LWJGL][LWJGL Tutorials for NeHe][LWJGL Wiki][jMonkey Engine]
Although I always use C++ myself - I see one difference. It seems to be much faster to compile C code (.c files) over C++ files (.cpp files). I guess this is because C++ is a more complex language - not that this is true even if you write very C-like C++.
Jacob Marner, M.Sc.Console Programmer, Deadline Games
Ok thx i stick to c++ then, me really likes objects
------
With kind regards,
Sander Aerts
------
With kind regards,
Sander Aerts
------With kind regards,Sander Aerts aka DrSnugelsCrap :)---------------------------mov ax, 013h; int 10h; mov ax, 0xa000h;mov es, ax; mov di, 3360; mov al, 15;stosb; mov ax, 0002h; int 21h;mov ax, 03h; int 10h;
The only reason I can think of there being any difference between the two languages for game coding, would be large scale projects. Where it woiuld be easier keeping track of everything in C++.
Other than that, just use the language you are most comfortable with.
Ooh, Yay. ATI made an ad that made the best and most informative forum on the planet totally horrible to browse, and it even crasches IE ever three minutes!
So should I buy a Radeon? naaah!
Other than that, just use the language you are most comfortable with.
Ooh, Yay. ATI made an ad that made the best and most informative forum on the planet totally horrible to browse, and it even crasches IE ever three minutes!
So should I buy a Radeon? naaah!
Don't we all still remember and miss the day we plotted our first pixel?
Funny question really... anyone who knows anything about C++ should know that everything C can do works fine in C++, and C++ has a lot of more features, hence the increase of one
C was pretty famous so the goal was to be able to make each C programmer to a C++ programmer over night, without them having to relearn everything, rewrite all their proggys etc...
Anyway, you said you''ll stick to C++, so good on ya
C was pretty famous so the goal was to be able to make each C programmer to a C++ programmer over night, without them having to relearn everything, rewrite all their proggys etc...
Anyway, you said you''ll stick to C++, so good on ya
quote: Original post by l3mon
Funny question really... anyone who knows anything about C++ should know that everything C can do works fine in C++, and C++ has a lot of more features, hence the increase of one
Unfortunately, we''re talking about C++, not ++C ... the language got incremented, but people keep using the old value ...
Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement