Where do I start learning c++

Started by
12 comments, last by Paul C Skertich 11 years, 9 months ago
Hello I'm Cpt and I making a 2d 8 bit sandbox RPG game like Terraria. But the problem is I don't know where to learn c++ and what program to use for Mac to use to make the game. If you want any info I am running a MacBook and I have experience with photoshop and I would like to know if a can get a PDF of how to make a game using c++. And last if I make a game on Mac would it work on Windows when finished

See ya

-CaptainMinecraft

Oh and if you want info on the world of the game is going to be randomly generated with my custom terrain and you can break and place blocks
Advertisement
Seek no more: http://www.cplusplus.com/ biggrin.png That link will teach you C++, but not how to make games(that will come later on). For making games you should head to the resources - books.

Here you go a link we go: http://www.gamedev.net/page/books/index.html/_/technical/game-programming-9/beginning-c-through-game-programming-r1427

"The only thing that interferes with my learning is my education"

Albert Einstein

"It is a miracle that curiosity survives formal education"

Albert Einstein

A resource I can not stress enough is

'Professional C++' (2nd Edition), by Marc Gregoire, Nicholas A. Solter and Scott J. Kleper, it will bring you up to speed with well... alot of stuff. And most important of all - It teaches you HOW to program! It reaches on alot of topics, and its easy to approach. And if you download the source code that goes with it (and make sure you really go through it while reading), you'll pick it up in no time.

And you'll need to experiment alot to... it takes alot of time. I'm making the same journey myself
I mainly use cplusplus.com as a reference site. Personally, I would buy a book and study C++ from it. There are quite a few articles on the internets about how to get a rendering system going, and you can experiment with game logic yourself.
what
cplusplus.com is good but learncpp.com seems more complete. Study both methodically.
In the tutorial on cplusplus.com they have the blue and light grey sIDE on the program what program on Mac do you use to code?

Seek no more: http://www.cplusplus.com/ biggrin.png That link will teach you C++, but not how to make games(that will come later on). For making games you should head to the resources - books.

Here you go a link we go: http://www.gamedev.net/page/books/index.html/_/technical/game-programming-9/beginning-c-through-game-programming-r1427

In the tutorial on cplusplus.com they have the blue and light grey sIDE on the program what program on Mac do you use to code?
You could use a text editor and compile with XCode. I'm not very familiar with IDEs on Mac
Or opt for Eclipse, it works in Mac

http://www.eclipse.org/downloads/
Don't bother with an IDE for starters. Just use your favorite text editor and compile with a terminal. It will teach you some fundamental things about compilers and if you ever switch platform you will always have a fallback in case you have no IDE since most compiler options share a similar interface.

Otherwise there's QtCreator, Eclipse, Code::Blocks, search stackoverflow for that one.

As for learning I recommend C++ Primer 6th edition. It has questions and exercises at the end of each chapter. It also covers C++x0 features.

[size=1]I "surf" the web, literally.

This topic is closed to new replies.

Advertisement