Monday, May 24, 2010

Should I use C or C++?

I'm a software student and have studied some C. Now Should I finish C to the end or start learning C++? (I'm free to choose what 2 do!)


Thanks

Should I use C or C++?
c++ is an addition on top of c. I think you should continue on with c and really master it. Once you want to start learning c++ you'll be able to focus on the differences, with a full understanding of the underlying mechanims.





There is also a giant library of c code out there, and fully understanding c is extremely useful.





WIth that said, most modern software these days is being written in an object oriented language (c++, java, c#, ruby etc.), so you will need to study and master oop, but that can be a long process, and lead you to design patterns, and topics that go far beyond the simple mechanics of the language.
Reply:finish c cuz c++ aint that difrent
Reply:Go with C++ as you will learn the higher thing now as you might have got the base idea so going for C++ would be a good idea and it is not that tough too as i never did C in my life and directly did C++. Best of luck.
Reply:Have a look at C# instead.
Reply:learning c is not at all necessary for c++ it just depends on what you want i would go with c++
Reply:Go with C++, it is based on C with lots of extras.





Anyway, C is not object-oriented Lang. C++ is. Also learn C#.
Reply:I'd say stick with C if your interest is hardware. It's useful for a lot more than that but really shines these days in embedded hardware and driver programming (like graphics). Otherwise there isn't that much difference and you're going to find yourself using standard c libraries like stdio.h (as cstdio) and math.h (as cmath). I just answered a question the other day (and almost certainly did NOT give the best answer) where the questioner identified the subject as C++ but the function he was trying to use was sprintf() from stdio.h.





For small, economical programs which really drive the hardware, stick with C, but C++ has an awful lot of power, and you will have to go back to C occasionally anyhow.

hydrangea

No comments:

Post a Comment