jlc Posted February 22, 2005 Report Share Posted February 22, 2005 Anyone recommend some good: "I know nothing about C/C++ books"? Hands on do this do that kind of stuff. Quote Link to comment Share on other sites More sharing options...
Urza9814 Posted February 22, 2005 Report Share Posted February 22, 2005 www.cplusplus.com is the best I've ever seen for learning the basics of C++...most of the books I've looked at suck...I got the 'C++ All In One Desk Reference For Dummies'...'cause I was looking for a good reference book...it's totally useless. Not only does it use pretty poor code, it's full of typos and stuff...he obviously didn't check the code at all... Now, once you've got the basics, for graphics I would recommend 'Game Programming All In One (2nd edition)'...Very nice book...all 2D graphics, but it uses Allegro and does a good job at explaining the stuff. You also might wanna look around on www.cpp-home.com Quote Link to comment Share on other sites More sharing options...
tyme Posted February 22, 2005 Report Share Posted February 22, 2005 (edited) IMHO, anything from Deitel is good. this is a good choice. Edited February 22, 2005 by tymark Quote Link to comment Share on other sites More sharing options...
JeffSmdk Posted February 22, 2005 Report Share Posted February 22, 2005 For an inexpensive, easy tutorial, get "C In Easy Steps" and "C++ in Easy Steps" from Barnes and Noble. These are very short, easy turtorial books that only cost $10. They'll give you a basic foundation and get you up to speed quickly and painlessly. Then get the ultimate C book, and considered by many the greatest programming book of all time, "The C Programming Language" by the Dennis Ritchie (the creator of C) and Brian Kernighan. This book is terse, but full of information on C and programming in general. It is often said that if you read this book and you do the exercises, you will become a programming master, or at least become very very proficient. Then for C++, get "Accelerated C++". This is an excellent beginners book, that starts with high level concepts, like the Standard Template Library, and has you use them in useful programs right off the bat. Finally, for the ultimate reference and definition, as well as insight on proper C++ usage, get "The C++ Programming Language" by Bjarne Stroustrup, the creator of C++. This is not a beginners book, but is the ultimate reference for intermediate and advanced C++ programmers, as well has an invaluable teacher of how to use C++ as it applies to programming paradigms and solving real world probelms. Reading this book is like taking martial arts lessons from Bruce Lee. I can say from personal experience, that "The C Programming Language", "Accelerated C++", and "The C++ Programming Language" have all propelled my understanding and proficiency with C and C++ tremendously. Where as before I had been intimidated by C and C++, and not very productive with them. Quote Link to comment Share on other sites More sharing options...
jlc Posted February 22, 2005 Author Report Share Posted February 22, 2005 Thanks, I ordered these for now from bookpool: C Programming Language, The Brian W. Kernighan C++ How to Program Harvey Deitel C++ Programming Language Special Edition Bjarne Stroustrup I got some free online courses for c++ at work I'm taking too Quote Link to comment Share on other sites More sharing options...
jlc Posted February 22, 2005 Author Report Share Posted February 22, 2005 One of the problems I ran into on the online course was the following from the FIRST example: #include <iostream.h> void main() { cout << "Hello World!\n"; } Well, using my trusty Linux Fedora Core 3 box and gcc/g++ and a lot of Google, the code ended up looking like this: #include <iostream> using namespace std; int main(int argc, char* argv[]) { cout << "Hello World!\n"; } I'm not sure if all of that was needed, but from the errors I was getting and Goggle finds, that is how it ended up looking. So it's a bit frustrating knowing the course is already out dated, and I can assume one or two of the books are going to be a bit out dated from what the standards are now. BUT, I guess one thing to look at the "silver lining" is that having the error made me at least figure out what would work, :shrugs: I guess :D Quote Link to comment Share on other sites More sharing options...
JeffSmdk Posted February 22, 2005 Report Share Posted February 22, 2005 I'm not sure if all of that was needed, but from the errors I was getting and Goggle finds, that is how it ended up looking. So it's a bit frustrating knowing the course is already out dated, and I can assume one or two of the books are going to be a bit out dated from what the standards are now. The key compenent to make it work was: using namespace std; The code within function main is using cout, which is in the standard template library, which, in turn, is part of the std namespace. Namespaces are very important in C++, they help you manage very large project easier and prevent name conflicts. Thus, if you are using something from the std namespace, you have to declare that you are using the std namespace, or you have to specify it with std prefix, using the scope resolution operator, like so: std::cout << "Hello World!\n"; When you go through Stroustrup's book, this will become crystal clear. Quote Link to comment Share on other sites More sharing options...
Guest Adriano Posted February 24, 2005 Report Share Posted February 24, 2005 for free online /downloadable books on C++: http://www.bruceeckel.com/ has the very good Thinking in C++ (two volumes, you can buy, or download, or read online). http://www.ibiblio.org/obp/books/ has the "How to think as a computer scientist" in the C++, Python and Java versions, also free to read or download. Share and enjoy! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.