Sunday, August 2, 2009

What's a good book for learning C++?

I'm taking an Independent Study course next year (senior in High School) and would like to learn C++. I need to write a proposal and include all resources, including books and programs, I will need. I will have the assistance of a teacher, but it's really independent learning, so he will only be there to guide me.


I took a computer science course in java last year, and will take Computer Science II (AP) next year. I'm good with computers and know some PHP, so programming isn't entirely new to me. Can anyone recommend any software and books I'd need to learn C++?

What's a good book for learning C++?
Books:


It is important you get a book that is *technically accurate* and *up-to-date*. There's a large number of books that are obsolete (C++ changed radically after the 1999 revision) or are written by incompetent authors.





Take a look at this site: http://accu.org/index.php/book_reviews?u...





The books are reviewed for technical accuracy. From personal experience, I think the books C++ Primer by Lippman (search for Lippman C++ in Amazon) and Accelerated C++ by Koenig are very good books to learn from. The C++ Programming Language Special Edition by Stroustrup (by the guy who made C++) is a must have book, if you already know intermediate C or C++. If you're just starting out, that books will be too much and too high a level for you.





If you already are a programmer, you know that need a plain text editor or IDE. With C++, you need a compiler to convert your code into an executable (the process is actually a bit more complicated than Java's). Anyway, you should be using one of two compilers. gcc (or MinGW on Windows), or Visual C++. gcc is free. Visual C++ has a free version called Visual C++ express.





If you have programmed before, then you know the rule: when you have a question or want to know about something, Google it first. Google, and google on C++. I'll give you a few links to some useful sites.





C++ FAQ: http://www.parashift.com/c++-faq-lite/ (the material addresses most of the beginner problems, as well as many intermediate ones)


C FAQ: http://c-faq.com/ (you need this even if you learn C++)


Cplusplus.com: http://www.cplusplus.com/ (for the library references)


Cprogramming.com: http://cprogramming.com/ (for their tutorials, accurate and extensive).


http://www.cppreference.com/ (another library reference).
Reply:The C++ Programming Language (Special 3rd Edition)


http://www.amazon.com/C%2B%2B-Programmin...


No comments:

Post a Comment