C++ Templates: The Complete Guide
by David Vandevoorde, Nicolai M. Josuttis
I'm reading this currently. I'm only a few chapters in and already can't believe how much I didn't know about templates! Definitely not for the beginner, though.
Generic Programming and the STL: Using and Extending the C++ Standard Template Library by Matthew H. Austern is very good for learning the STL.
Well if your looking for a C++ book, then im guessing your new to it, I would recommend:
BEGINNING C++ Trhough Game Programming, Second Edition
-By Michael Dawson
It comes with a Dev-C++ Bloodshed compiler for you to use, with demo source codes. It's kind of rough at first, but its one of those books you will get into, like an example program from the book:
// Word Jumble
// The classic word jumble game where the player can ask for a hint
int main()
{
enum fields {WORD, HINT, NUM_FIELDS};
const int NUM_WORDS = 5;
const string WORDS[NUM_WORDS][NUM_FIELDS] =
{
{"wall", "Do you feel you're banging your head against something?"},
{"glasses", "These might help you see the answer."},
{"labored", "Going slowly, is it?"},
{"persistent", "Keep at it."},
{"jumble", "It's what the game is all about."}
};
srand(time(0));
int choice = (rand() % NUM_WORDS);
string theWord = WORDS[choice][WORD]; // word to guess
string theHint = WORDS[choice][HINT]; // hint for word
string jumble = theWord; // jumbled version of word
int length = jumble.size();
for (int i=0; i<length; ++i)
{
int index1 = (rand() % length);
int index2 = (rand() % length);
char temp = jumble[index1];
jumble[index1] = jumble[index2];
jumble[index2] = temp;
}
cout << "\t\t\tWelcome to Word Jumble!\n\n";
cout << "Unscramble the letters to make a word.\n";
cout << "Enter 'hint' for a hint.\n";
cout << "Enter 'quit' to quit the game.\n\n";
cout << "The jumble is: " << jumble;
That's it. I want to become an expert in C++ since it's my job as a software developer. I'm still in my training period so I must strive hard and aim to be a professional C++ programmer. :)
As far as I understand, that book is for already experts
BTW if you want to know more about Stroustrup's books you can check this: http://www2.research.att.com/~bs/books.html
C++ Coding Standards by Herb Sutter and Andrei Alexandrescu -- It is small and it will tell you the "why" in addition to the "how". It's one of those books you can read for about 5 minutes at a time and feel yourself growing stronger as a programmer after each short section.
C++ Coding Standards by Herb Sutter and Andrei Alexandrescu -- It is small and it will tell you the "why" in addition to the "how". It's one of those books you can read for about 5 minutes at a time and feel yourself growing stronger as a programmer after each short section.
I ordered that one last week. It's third in my reading queue--right after C++ Templates: The Complete Guide and C++ Gotchas.