C or C++?
This question has probably been asked before but I''m asking it again cause I haven''t seen an answer yet. First I would like to clairfy that I''m a newbie and this site has given me motivation to get back into programming and learning what I need by showing me how much I actually didn''t know. My question is which is more preferable to use for programming games C or C++ and why?
"There is humor in everything depending on which prespective you look from."
"There is humor in everything depending on which prespective you look from."
That''s a sure way to start a flame war ![](smile.gif)
It''s all a matter of opinion. Some people like C, some people like C++. Quake 3 was written in C, Unreal was written in C++. Personally, I like C++ better, because classes are simply more useful and easier to use than structs & function pointers.
~~~~~~~~~~
Martee
http://www.csc.uvic.ca/~mdill
![](smile.gif)
It''s all a matter of opinion. Some people like C, some people like C++. Quake 3 was written in C, Unreal was written in C++. Personally, I like C++ better, because classes are simply more useful and easier to use than structs & function pointers.
~~~~~~~~~~
Martee
http://www.csc.uvic.ca/~mdill
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
In response, I''m not looking to cause a "flame war" I am just looking for some pro''s and con''s of each along with opinions, not judgements. I guess I just want to be able so see what the options are. Any contributions to my cause would be helpful.
"There is humor in everything depending on which prespective you look from."
"There is humor in everything depending on which prespective you look from."
"There is humor in everything depending on which prespective you look from."
April 11, 2001 03:30 PM
It''s a matter of preference. You can''t really learn one without
learning the other. I would recommend that once you have a basic
grasp of all the features, you start learning the differences
between the two. In about 5 years, I hope to have a job in the
gaming industry as a programmer. Don''t you think you would be
more likely to get hired if you could say something like "I know
C/C++, as well as the differences between the two, as well as
creating demos/games/whatever using both vanilla C and C++ with
OOP." Most people around here are very anti-microsoft (as well
they should be) but the reality is that most games are written
in MSVC++ with DirectX. If you want a shot at the industry I
suggest you learn as much as you can about all of C/C++, Java,
DirectX, OpenGL, MFC, design for very large applications, 3D
graphics algorithms, TCP/IP, and whatever else you feel aide you
in your conquest of a position in the game industry. If you want
to start your own company or write your game -- just write with
whatever language you feel comfortable with and that you can get
help with if the need arises.
ykk
learning the other. I would recommend that once you have a basic
grasp of all the features, you start learning the differences
between the two. In about 5 years, I hope to have a job in the
gaming industry as a programmer. Don''t you think you would be
more likely to get hired if you could say something like "I know
C/C++, as well as the differences between the two, as well as
creating demos/games/whatever using both vanilla C and C++ with
OOP." Most people around here are very anti-microsoft (as well
they should be) but the reality is that most games are written
in MSVC++ with DirectX. If you want a shot at the industry I
suggest you learn as much as you can about all of C/C++, Java,
DirectX, OpenGL, MFC, design for very large applications, 3D
graphics algorithms, TCP/IP, and whatever else you feel aide you
in your conquest of a position in the game industry. If you want
to start your own company or write your game -- just write with
whatever language you feel comfortable with and that you can get
help with if the need arises.
ykk
Like others have said, learn to do both
. I like C, but I like C++ also, so my personal projects are kind of a mix of both (which technically makes it C++ I guess). I''ll resist inefficient data hiding until I die though.
"Finger to spiritual emptiness underlying everything." -- How a C manual referred to a "pointer to void." --Things People Said
![Resist Windows XP''s Invasive Production Activation Technology!](http://druidgames.warfactory.com/Out_Source/resist.jpg)
http://druidgames.cjb.net/
![](smile.gif)
"Finger to spiritual emptiness underlying everything." -- How a C manual referred to a "pointer to void." --Things People Said
![Resist Windows XP''s Invasive Production Activation Technology!](http://druidgames.warfactory.com/Out_Source/resist.jpg)
http://druidgames.cjb.net/
*waits for jonnyfish to get here*
Oh, and by the way, I usually go all-out OOP with C++, but I've started doing things a bit more C-ishly recently just because it seemed to be a simpler solution to the design problems I was having.
![Gaah!](http://www.geocities.com/guanajam/resist.x)
Edited by - SHilbert on April 11, 2001 4:48:38 PM
Oh, and by the way, I usually go all-out OOP with C++, but I've started doing things a bit more C-ishly recently just because it seemed to be a simpler solution to the design problems I was having.
Edited by - SHilbert on April 11, 2001 4:48:38 PM
If you haven''t, click on the "New? Start Here" link on the top banner. Click on the first dot: "Which language or compiler should I use?"
C++ has a much larger standard library, it contains the entire C standard library and has extensive compatibility with existing C code, it has stricter type-checking, a ton of additional keywords, and it supports four programming paradigms: procedural, modular, generic, and object-oriented programming. It is even a better procedural language.
C has... *ahem* C has... hmm... well, maybe a C programmer can think of some desirable feature that C has but C++ doesn''t have?
C has... *ahem* C has... hmm... well, maybe a C programmer can think of some desirable feature that C has but C++ doesn''t have?
Thanks for all the input. I probably should have clarified first that I have decent knowledge in C and C++, Very breifly I looked at VB, Java, HTML. I also have a pretty good understanding of OOP and Algebra, Trig, Geometry and all that good stuff. I still feel all these areas needs to be greatly improved (Only recently have I got back into programming Hardcore)and I was just tring to find a little bit of direction.
"There is humor in everything depending on which prespective you look from."
"There is humor in everything depending on which prespective you look from."
"There is humor in everything depending on which prespective you look from."
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement