Author Topic: C++ programming tutorials  (Read 2528 times)

0 Members and 1 Guest are viewing this topic.

MechaTech84

  • Guest
C++ programming tutorials
« 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...

Offline JincS

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 191
  • Rating: +0/-0
    • View Profile
C++ programming tutorials
« Reply #1 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

Offline Radical Pi

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1143
  • Rating: +5/-2
    • View Profile
    • RealityRevolution
C++ programming tutorials
« Reply #2 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' >_<
One of these days I'll get a sig I'm really proud of.

Offline bfr

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 819
  • Rating: +4/-0
    • View Profile
    • bfr's website
C++ programming tutorials
« Reply #3 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.