Advertisement

C++ and C#

Started by November 21, 2015 07:54 PM
14 comments, last by Kevin Paul Kurian 9 years ago

I had some experience with c++ but it has now been three years since I have coded anything.Should I try and brush up my C++ or dive straight in to C#?I ask this because Iv heard C# is more flexible and thus will be more useful for me to make games.

Also what is the best documentation/book to learn either from?

C++ is THE tool of professional development, for better or worse. There are many reasons for that. But in most cases - certainly as an indie developer - C# is far more productive and much easier and faster to work with. So you have to decide on your goals. If professional employment is something you're aiming at, then it may well be worth learning C++ despite the long, arduous road. That's particularly true for more specialized architectural roles (engine, graphics, physics, etc programmers). On the other hand, if you really want to focus on creating a game and having a usable product, C# is the better choice. This gets you to the point of making a polished, tested, tuned game in a finished playable state much faster and is much more useful if your focus is game design.

SlimDX | Ventspace Blog | Twitter | Diverse teams make better games. I am currently hiring capable C++ engine developers in Baltimore, MD.
Advertisement

Would you like to make games, or program?

I suggest finding a simple language. Python, perhaps. It'll save confusion and let you focus on what you want to do.

If you know programming basics, you can even join a team as a designer. I looked on Reddit, and there are great teams out there!

Also, you need people skills. You can train that too. :)

Both C# and C++ are good choices.

For C++, you want to learn about C++14 or C++11 at least, which you probably haven't really seen yet.

C# uses a very different way to store values into variables (it's called reference semantics), compared to C++. If you switch to C#, that will catch you a few times, since statements look a lot like C++, but they do something else than you remember.

Both languages thus are a challenge to learn. If you don't have much experience yet, I would say go for C++. The first objective is to get experience, make hours programming actual code. Get that game running. Learning programming can only be done by actual doing it.

Learning yet another language doesn't bring you closer to that goal.

Once you start getting the hang of game programming a bit, widen your horizon. Look what others do, find a C# tutorial, read a little Python, read about path finding algorithms.

There is so much to discover.

This is a stupid question.However last time I worked on C++ I had windows xp and used turbo C++(I dont recall the version).Presently I have a windows 10(64 bit).From where do I download C++ 14 and do I need DOS Box to run it?

Every decent OS has a compiler. It would be stupid to run an emulator like DOSBox just to use an outdated DOS-compiler, when there are better compatible modern compilers (GCC, clang, MSVC).

Advertisement

Thank you for replying.So how exactly do I go about installing C++ in a windows 10 system? I am relatively illiterate when it comes to coding despite having worked with C++ before.
Also please do suggest a compiler I can start with

I did not try it on Win10, but anyway:

If you only want a command line compiler: http://mingw-w64.org/doku.php/download

There you can get an IDE to use it with (or optionally IDE with another compiler version prepackaged): http://codeblocks.org/downloads

Or if you'd like the MSFT IDE+Compiler instead: https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx

Ok Im now using Visual Studio with the visual C++ 2015 library.I believe it follows C++ 14 standards.Is this an acceptable set up to begin?

My suggestion to go with C++11 or C++14 was mostly about not using anything older. As such, you should be fine with VS2015.

This topic is closed to new replies.

Advertisement