Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Lessons for learning C++ after C?

So I've been studying C for a few months and gotten a fair hang of the language. Since C++ is a superset of C, I imagine it should be easy to learn (and useful). Can anyone point me to some C++ tutorials/lessons directed at people who already know C? Basically pointing out the important things about C++ rather than assuming I know nothing about programming? Thanks!

5 Answers

Relevance
  • ?
    Lv 7
    1 decade ago

    Learning C++ after C is no easier than learning C after assembly language assuming it's somehow helped by the ability of most C compilers to allow inline assembly. Actually it's even harder because C programmers recognize familiar things in C++ and think that using them is a good idea, while it's almost always counterproductive.

    The most important things to learn about are containers and algorithms, followed by classes and the whole object-oriented programming, followed by boost. So, if you don't want a beginners tutorial, start with a book on the C++ standard library (often called "STL"), and then a book on object-oriented design. Or just get Accelerated C++ as oops rightfully suggests.

    The most important things to forget about are arrays (especially char arrays) and pointers (except for managing dynamically allocated objects).

  • oops
    Lv 6
    1 decade ago

    While it's true that C is [almost] a subset of C++, it is an exceedingly small subset. If you want to use C++ to it's full potential, I'd suggest you buy a book. For your case, I highly recommend "Accelerated C++" by Andrew Koenig and Barbara Moo. http://www.amazon.com/gp/product/020170353X

    While it doesn't make assumptions that you are familiar with C, it is very fast paced, and It teaches C++ the way it should be taught, using the high level constructs first. It holds off on low level stuff, like direct memory access, until later, at which time, you can skip it if you want since you are already familiar with that stuff from C.

  • Anonymous
    5 years ago

    Thanks Sandy. My dad and I have a kinda strange relationship, and lots of it revolves around him divorcin my mom then marryin her again 10 years later when I was 20. Without my dad I'd likely be dead, but some nigglin thoughts remain about the time apart. I wanna love him like I did when I was a kid, but haven't quite grown back into that yet. We did celebrate his day with him though, and I was happy for that chance. Good write sis. Hugs.

  • 1 decade ago

    C++ can have some confusing points because you'll always try to compare it to the original C. Regardless, here's a tutorial I found. I hope it serves you well.

  • How do you think about the answers? You can sign in to vote the answer.
Still have questions? Get your answers by asking now.