View Full Version : C# or C++?
JudgementXD
06-27-2006, 10:09 PM
I know this question has been asked a lot but when ppl answered I think that they went in 2 much detail and there were many ppl with different opinions so I'd like to ask, which is better C# or C++? Not just in the present but also in about 3 years time as I've heard some ppl say that now C++ is better but that in the future C# is going to be industrial standard. Anyways I don't know if I misunderstood but my father's colleague told me that C# is better, without giving me a reason, he just told me that, maybe because it is simpler? anyways thx in advance for answers!
Omegavolt
06-28-2006, 05:52 AM
No one can really answer that question but you.
C++ and C# are both great at making games, it just really depends on what youre comfortable with. I dont see either of these "dying off" in the near future, so just pick one and study it and see where it gets you.
JudgementXD
06-28-2006, 09:11 AM
Oh ok thx, so I just bought a book on C# but what happens if I want to change to C++? Will it be hard or r the basics the same? And again thx for answers.
P.S. What language do most ppl use, cause if i become confident with a language and want to create a game but most of the ppl on my team use another language will they have to learn the language I'm using? I'm sorry for being so vague =P
Shattered Skies
06-28-2006, 11:38 AM
The basics of programming are all the same. Any one language you learn just helps setting you up for another language to learn. Once you learn the basics of programming your set. Its not too terribly difficult to learn a new language once youve worked with another.
Most common language.. in my opinion, C++.
HopeDagger
06-28-2006, 05:05 PM
but what happens if I want to change to C++? Will it be hard or r the basics the same?
Once you learn one, the other won't be too difficult to learn. C# borrows most of itself from C++. (And Java, which in turn also borrows from C++)
P.S. What language do most ppl use, cause if i become confident with a language and want to create a game but most of the ppl on my team use another language will they have to learn the language I'm using?
C++ is still the dominant game programming language.
C# is, in my opinion, an ideal programming language for hobbyist game development. It has a massive class library that makes tons of tasks simplistic (I/O, graphics, serialization, XML goodies, conversions, crytography, etc), compared to what comes in the package with C++. Not only that, but in C# you don't need to worry about (sans unsafe code) pointers and memory allocations, which will be a huge area of pain if you use C++.
C++ is still the #1 contender in the commercial game industry, without a doubt. And it will likely stay this way for many years to come. C++ is faster than C#, but not in such a way that practically any hobbyist game would even notice, since the difference is negligable unless you're writing the next Doom 3, or somesuch.
So, as you can see, I'm pretty biased towards C#. ;) However, some concepts are harder to get down than C++. C# assumes knowledge of Object-Oriented-Programming (OOP), and several other concepts, which can lead to a very confusing experience if C# is your first programming language.
All of that said, the best solution is still to try both of them out for yourself, do some research, and pick whichever language suits you. C# is by no means the best solution; I know many hobbyist developers who still swear by C++. It's all a matter of preference, and picking the right tool for the job.
Good luck!
ractoc
06-29-2006, 08:01 AM
This is all true. I personally am an expert Java programmer. And while this is a very powerfull and flexible programming language (with roughly the same syntax as C#, which they stole from us ;)), getting started with the language is fairly difficult.
Reason for this is the language forces you to write your apps in OO. Which is pretty confusing when you don't understand the basic principles of OO.
hamik
07-05-2006, 05:43 AM
There both really good languages,but I think C++ has more libraries,but C# is good as well.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.
SEO by
vBSEO 3.2.0