Monday, May 24, 2010

C++, Getting Started?

I'm a computer science graduate and I'd like to start learning C++, I know about a ton of other languages but my university didn't teach it





where would be a good place to start? and is there a runtime environment I need to download?

C++, Getting Started?
%26gt; where would be a good place to start?





Start by getting a decent C++ book. Google also helps. http://accu.org/index.php/book_reviews?u... is a list of book reviews by ACCU, which checks for technical accuracy. I think C++ Primer by Lippman and Accelerated C++ by Koenig are very good choices. If you have plenty of prior programming experience, then Accelerated C++ might be a good choice for you.





Also keep in mind the C++ FAQ http://www.parashift.com/c++-faq-lite/ . And http://forums.devshed.com/c-programming-... which tells you how to deal with some common basic tasks like file opening and string%26lt;-%26gt;numeric conversion. And cppreference.com because you will want to know what the different parts of the standard library are.





%26gt; and is there a runtime environment I need to download?


C++ gets you a native binary for your OS, so you don't need a runtime environment. However, you do need the set of tools to make a C++ binary. They are referred to collectively as the C++ compiler. Microsoft has Visual C++, which runs only on Windows. Otherwise, it is gcc, which is available for linux/*nix, Macs, and Windows (under the name MinGW).





You'll need a C++ compiler. You most likely will want an IDE like Code::Blocks, wxDev-C++, or Visual Studio if you are using Visual C++. Macs have Xcode. Linux have Kdevelop, Anjuta, etc. You could also use a plain text editor in place of an IDE.
Reply:there are many examples available in the tutorial in the editor.


Or go to online tutorials.


Or buy the balagurusamy book for beigneers and The C++ Programming Language. by Bjarne Stroustrup
Reply:surely a CS grad took C and Pascal, so get a Borland C++ compiler and get a good book at B%26amp;N. That plus 24 hrs (SAMS book) should do it. It's not that hard to get started.
Reply:Check this site out http://cpp-home.com. I too am a computer science graduate and this site was very helpful for finding tutorials, example code, and getting answers to questions in their forum while I was in school.


No comments:

Post a Comment