Thread: Have basic knowledge in C and want to move to C++.....

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    46

    Have basic knowledge in C and want to move to C++.....

    I currently have good knowledge of the language basics of C programming.And I'm looking forward to learn C++.Do you think I should practice C as much as I could and read more then move to C++ when I am experienced with C or just move on to C++ now?
    Thanks in advance

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    If you want to learn C++, learn C++. Having advanced C knowledge will not necessarily help you learn the more advanced aspects of C++, and it may even require some unlearning. As suggested in the book recommendations thread, Accelerated C++: Practical Programming by Example by Andrew Koenig and Barbara E. Moo would be the book to learn from, especially since your knowledge of C should allow you to understand the basic syntax rightaway.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Aug 2006
    Location
    Israel
    Posts
    33
    I agree with laserlight, learn C++ now, don't waste time on C. Knowing C is good, as it allows you to be familiar with programming aspects in C++, but I think C++ is a better and much more comfortable language.

  4. #4
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    C is not a waste of time, that is a ignorant thing to say.

    KidMan: I recommend you try a completely different language instead of trying to learn something simular but different. A scripting language or a language that is bytecode compiled. Then come back and learn C++. The broadening of your knowlegde will help you a lot.

  5. #5
    Registered User
    Join Date
    Jan 2005
    Posts
    7,366
    If you feel like you know C well enough to be able to comfortably write a program on your own, then it is fine to consider learning another language like C++. The benefits of leaning C++ include the exposure to other styles of programming not generally appropriate in C.

    However, if you still feel like you are learning the basics of C, only switch languages if you are giving up on C. Otherwise, you should get to a point where you feel proficient. Learning bits and pieces of different languages doesn't help as much as learning to program a language well.

    If and when you do learn C++, make sure to approach it from a different perspective than you approach C in order to get the most out of it. Using Accelerated C++ is a great way to do that, as it is one of the few (maybe the only) C++ beginners book that approaches C++ from a pure C++ standpoint. The two languages are actually quite different in everything but syntax.

  6. #6
    Registered User
    Join Date
    Feb 2006
    Posts
    4
    well, I started with C and then moved on to C++ when I learned how much more easy it was to program in it. (Almost) Everything in C works in C++. C++ is like a big addition to C. It's much easier to manipulate strings and I/O with C++.

  7. #7
    Registered User
    Join Date
    Aug 2006
    Location
    Israel
    Posts
    33
    Quote Originally Posted by limitedmage
    well, I started with C and then moved on to C++ when I learned how much more easy it was to program in it. (Almost) Everything in C works in C++. C++ is like a big addition to C. It's much easier to manipulate strings and I/O with C++.
    Thats my opinion as well. C is a bit confusing.

Popular pages Recent additions subscribe to a feed