Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Game from Scratch ? C++


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
20 replies to this topic

#21 Yrjö P.   Crossbones+   -  Reputation: 1412

Like
0Likes
Like

Posted 19 December 2012 - 10:34 PM

I really feel like as a beginner vanilla C is going to be more intuitive and straightforward than trying to learn C++ out the door.

I think both suck for a beginner, but if you must use one of them, you should use C++.

As long as you are just dealing with your own code, you don't have to use any of C++'s advanced features, and can adopt them at your own pace. The most important thing for the beginner is that C++ lets you get away with never doing manual memory allocation if you just use std::vector, std::string, references, etc. everywhere. No news, no deletes, no pointers. You don't have to understand templates (or even classes, really) to use vector as a replacement of array, just like you don't have to understand streams in order to write "std::cout << ".

In C you can't do anything without first learning memory management inside and out, and even then you will constantly be tripping up and mired in debugging something.

Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS