Members - Reputation: 121
Posted 05 November 2012 - 08:31 PM
Thanks in advanced guys! (In case I dont stop by for a while)
Senior Staff - Reputation: 14680
Posted 05 November 2012 - 11:10 PM
- Jason Astle-Adams.
Members - Reputation: 141
Posted 06 November 2012 - 02:45 AM
Crossbones+ - Reputation: 1410
Posted 06 November 2012 - 04:48 AM
Cursory inspection shows those to be bad, "C with classes" tutorials. C way presented before C++ way, pointers and C library functions everywhere, iterators and algorithms not even mentioned.
there are many c and c++ tutorias here http://www.cprogramm... -tutorial.html
Koenig's Accelerated C++ is the opposite, a really good book that teaches C++. It's a bit old, but still valid. C++11 just makes a few things easier.
Just to give you an idea of how different the approach is, Accelerated C++ only starts discussing arrays, pointers and dynamic memory allocation in chapter 10, around page 200. And how does it introduce these things?
"An array is a kind of container, similar to a vector but less powerful. A pointer is a kind of random-access iterator that is essential for accessing elements of arrays, and has other uses as well."
Note that the reader has already learned to use containers, iterators, classes and templates before this point! Chapter 11 walks the reader through the construction of a Vec container template, like a poor man's version of std::vector, as an example of a situation where dynamic memory allocation is actually necessary.
Crossbones+ - Reputation: 5008
Posted 06 November 2012 - 12:14 PM
This tutorial assumes you have minor C++ skills, know the basics like what a variable is, a for loop etc. Otherwise its a (currently) 10 part series that walks you through making a C++ game from scratch using SFML.
My more Popular Tutorial Series: