Why is c++ Primer contain a thousand page? I mean most books teaching c++ is not that long. Is there a reason for this?
Is there a book that is close enough that explains and teach the way c++ primer?
The problem i am having in that books is that this book teaches and explains c++ very well but gives you a code which is very long. It doesnt give a simple code just to make you understand simple things.
Like for example the Return *this.
It doesnt give you much explanation to this one aside from copy it to the program you are doing with which you cant execute because there's some error that you need to fix but its on another page.
I currently have the book, and its not like you have to read every single page its just important you understand the fundamentals of variables,functions,inheritance,pointers+references and polymorphism. In the future you can look back at the book for references (no pun intended).
Firstly, C++ Primer is not a beginner book, it is a book designed for a person who has programmed in another language and is using C++ for the first time. If you are completely new to programming and C++ then you should get Programming: Principles and Practices Using C++ by Bjarne Stroustrup. Then go back to C++ Primer for a more in-depth view of the language.
The problem with A Tour of C++ is that it is basically the first few chapters from The C++ Programming Language. I think the best four books to get and read are:
Programming: Principles and Practices Using C++
C++ Primer
The C++ Standard Library: A Tutorial and Reference
The C++ Programming Language
For a good introduction to modern C++ pre-C++11, try:
Accelerated C++: Practical Programming by Example ( ISBN-10: 020170353X | ISBN-13: 978-0201703535) - excellent book.
If you want to go a bit further, try:
Essential C++ (ISBN-10: 0201485184 | ISBN-13: 978-0201485189) - this book form the author of C++ Primer, can in my opinion be considered a shorter version of C++ Primer, it's also an excellent book.
Thank you for giving me another books. The problem in c++ primer is that it has so many pages that it will take more than a month just to finish Chap 1 to Chap-7. And another month before u go templates and some advance c++ like memory management.
I do have some experience in programming. I used java before.
Basically i just want a book where it doesnt give you a code which in the end you will have a working program. NO.
I want a book where it will give you a code snippets that i can run on every subject.
Say for example the topic is pointer.
The book can just give me an example like
1 2 3 4 5 6 7 8
int main(){
int a = 42;
int *pointInt = &a;
cout << pointInt;
}
Its like that and a little explanation.
I think its much better cause most people are a visual learner. They learn if they can see the result.
There are HUNDREDS of websites that will just exactly that for you. The book might give you a good logical path to follow in terms of subjects and concepts, but I wouldn't just study from one book.
The C++ Programming Language isn't designed to be a beginner book, it is designed to be a reference which is why I tell every beginner to get it.
So it's a book not for beginners, but you tell every beginner to get it. Interesting..