Jump to content
  • Advertisement
Sign in to follow this  

C# or C++?

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

I know that probably a lot of new people ask this question but what is the difference between C# and C++? I want to download one from microsoft's site and start learning but I'm not sure which way to go. I only know qbasic and a bit of python.

Share this post


Link to post
Share on other sites
Advertisement
C# is more abstract and high-level. It's easy to use, mostly because it's got a huge built-in feature library. It's a lot like Java, but it compiles and executes much faster. It's also built on the .NET framework, which is compatible with many other languages.

C++ is more low-level and can easily interact directly with the operating system. It's got classes, multiple inheritance, and some other cool stuff. It's the industry standard, and there's a ton of tutorials, articles, and legacy code written in C++.

If I were you (which I was about two years ago), I'd learn C++ first. Just the basics, you may not even have to get past simple console apps. Then I'd download Visual C# and have at it.

Good luck!

Share this post


Link to post
Share on other sites
My advice would be to download both.

Most people would say go with C# because it is more fully integrated into the .NET framework (I assume you want to develop games, and Managed DirectX is very simple compared to unmanaged DirectX), and is in general easier to use than C++. There's certainly less micro-managing involved; references are encouraged over pointers, high-level constructs like delagates and interfaces make writing programs easier, only single inheritance is supported with classes, the list goes on. Coming from Python, C# should be easier to pick up. But I still say download and learn both. There will be times when C++ would be better suited to a problem than C# (like when low level micro-managing is just what you need), and there are times when C# is better suited to a problem than C++ (like when you need full access to the .NET framework). Assumming you're a hobbyist, you have all the time you need to learn as many languages as possible, so use it. The more solutions you have, the more problems you'll be able to solve. Personal taste also factors in. I prefer to micro-mangae, so I use C++ more often. If you're the kind of person who just wants to write the program and be done with it, without worrying about directly manipulating memory with bit-shifting, you'll prefer C#. Still, if you must pick only one, you'll probably have an easier going with C#.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!