Omnimaga

General Discussion => Technology and Development => Computer Programming => Topic started by: MechaTech84 on December 23, 2007, 09:04:00 am

Title: C++ programming tutorials
Post by: MechaTech84 on December 23, 2007, 09:04:00 am
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...
Title: C++ programming tutorials
Post by: JincS on December 23, 2007, 01:46:00 pm
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 :)smile.gif 1st one = zipped PDF file, 2nd one= accompanying source code
Title: C++ programming tutorials
Post by: Radical Pi on December 23, 2007, 01:54:00 pm
If you need any quick online references, try here: http://www.cplusplus.com/doc/tutorial/

EDIT: Quick online, not 'quick only' >_<
Title: C++ programming tutorials
Post by: bfr on December 23, 2007, 06:32:00 pm
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.