General Discussion > Computer Programming

C++ programming tutorials

(1/1)

MechaTech84:
I would like to learn C++ and need a good tutorial. Any ideas? I would like to make games eventually, but I realize that is a ways off... I'm going to start searching after I post this, but if anyone knows any off the top of their heads, it would save me a lot of time. Thanks in advance! --Mecha

P.S. I need a tutorial for the absolute basics; the only thing I know about programming is some TI-Basic and very limited HTML.

Edit: forgot to mention: if It is downloadable, that is better than on the web, I have limited web access most days...

JincS:
Try these:
http://www.box.net/public/1oofmafrx0
http://www.box.net/public/00ggc0la30

I wrote them a year or two ago. They may be helpful for a start :) 1st one = zipped PDF file, 2nd one= accompanying source code

Radical Pi:
If you need any quick online references, try here: http://www.cplusplus.com/doc/tutorial/

EDIT: Quick online, not 'quick only' >_<

bfr:
Yeah, the links JincS and Radical Pi gave you are good.

Also, I recommend you use the http://forums.codeblocks.org/index.php/topic,3232.0.html as an integrated development environment (IDE).  http://www.bloodshed.net/devcpp.html is decent too, but it hasn't been updated in a few years and seems like it won't ever be updated again, while Code::Blocks is constantly being worked on (the latest nightly build was released today).  Code::Blocks works well with practically every library, and is extendable through plugins.  

If you get interested in making applications with a graphical user interface (GUI) with Qt (which I recommend...it's free and has an open-source version - wxWidgets is pretty good too and has a less restrictive license, but I still like Qt more), I suggest using a different IDE such as http://www.qdevelop.org, because I don't know of any general C++ IDE that doesn't have problems with Qt (this is partially due to the fact that Qt kind of adds its own extensions to the C++ language, which need to be processed by it's "meta-object compiler").  

And, once you think you are good enough at C++ to start making games, I suggest you check out http://www.libsdl.org, a free cross-platform library that includes keyboard-input routines, primitive graphics routines, the ability to use full screen and sound, and more.  http://lazyfoo.net/SDL_tutorials/ has a lot of good SDL tutorials.  You also will probably want to use OpenGL for advanced graphics, which SDL integrates well with.  http://videotutorialsrock.com/ contains many good OpenGL tutorials, in the form of videos and text.

Navigation

[0] Message Index

Go to full version