Answer the question
In order to leave comments, you need to log in
Which is better, C or C++?
Good afternoon.
I recently started learning C++ and suddenly came across an article that highlights the advantages of C in comparison with the previously mentioned language. The main disadvantage of C ++ was the very high complexity of the language, as a result of which its study can take many, many years. The author of the article also recommended Jav, because it copes better with the same tasks as the pluses, albeit at the expense of performance. As a result, vague doubts began to torment me, and several questions arose:
1) Which language is better to choose for game development, C or C ++?
2) Is it easy to switch from C to C++ and vice versa, if necessary?
3) If it's better not to choose C++, is it worth learning Java instead?
Answer the question
In order to leave comments, you need to log in
The author of the article also recommended Jav, because it does a better job with the same tasks.
To be fair, Java has game engines like libgdx. But this is rather the case when it burns directly to make a game, you know Java, but there is no time and desire to learn a new language. There is no point in learning Java specifically for libgdx alone.
It makes sense to learn a ready-made engine, or at least a library, so as not to spend a couple of years of your life and end up with a pale semblance of a gulmen. Games are primarily content - gameplay, story, level design, not an engine; the days of technological breakthroughs like Wolfenstein 3d → Doom → Quake and lone geniuses are over. Even if you have some kind of completely revolutionary gameplay, it's still better to take a lib that simplifies displaying, working with sound, loading assets, etc. (OpenGL is a pretty low-level thing).
1. Games in C? Not bad
2. Many C++ developers also write in C (most likely, the opposite also applies). C++ is practically C, but with OOP and a lot of crap. (I don’t want to hollivar, sorry)
3. Definitely not
I think it’s worth learning C ++, and C is somehow by itself if you need to learn it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question