Constructors

I guys, I am new to C++, I have been trying to get back into programming for years after becoming borderline adept with MS QBASIC (Years ago!). I made some basic games and some simple text file key encryption software as part of a YTS course after school.

I am struggling with some of the concepts of C++ namely:

Instancing from Objects (The difference between Objects and functions)
Constructors and de-constructors? I think the relate to Objects.
The need for Header files?

Anyways, its a big step up from BASIC to C++ but if I could get a good at C++ as I was with BASIC I would be happy. Any help you can offer with C++ concepts would be greatly appreciated. My end goal is to make simple indie games.

Jim

Introductory links:
http://www.cplusplus.com/doc/tutorial/
http://www.cplusplus.com/reference/
http://en.cppreference.com/w/
http://www.mochima.com/tutorials/

Advanced links:
http://www.icce.rug.nl/documents/cplusplus/
http://isocpp.org/faq
http://c-faq.com/
http://www.mycppquiz.com/
http://yosefk.com/c++fqa/

jim noob coder wrote:
Any help you can offer with C++ concepts would be greatly appreciated.

There is no easy way. You'll need to get your hands dirty, read a lot, and ask a lot of questions. One single post from me (or anyone else) cannot teach you C++. Start with the links above.

jim noob coder wrote:
My end goal is to make simple indie games.

Your goal is far away, and I don't say that to discourage you. After you master C++, you will find that you need to master a whole lot of other things that have nothing to do with C++ (for example geometry, linear algebra, physics... depending on the complexity of the game).
Thanks for the links and advise Catfish666. I guess I will have to get my hands dirty!!
Topic archived. No new replies allowed.