A lotta ppl told me I should choose c++ instead of c, but then again, i heard c can do anything c++ can. Y should i choose c++ instead of c? Can't i just learn both languages?
A lotta ppl told me I should choose c++ instead of c, but then again, i heard c can do anything c++ can. Y should i choose c++ instead of c? Can't i just learn both languages?
Why do you want to learn C or C++? Or, even more fundamentally: why do you want to learn a programming language?Originally Posted by Kuro Tensai
You probably can learn both languages, unless you have some kind of learning impediment affecting your ability to learn how to program, in which case it does not matter if you choose C or C++ since you probably would not be able to learn to use either of them. That said, it might be a little more difficult to learn both at the same time, especially if you are new to programming.Originally Posted by Kuro Tensai
Last edited by laserlight; 11-01-2012 at 12:11 PM.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
A lot of people here will tell you it's very annoying to read text-speak. And disrespectful to those reading it.
Yes, you can do everything (computable) in C that you can do in C++, and vice versa. The difference is that it is easier to do some things in C++ than it is in C, and vice versa (although that argument is technically blurred, since most of C before the 1999 C standard is practically a subset of C++).
It is possible to learn one language, then the others. The problem with transitioning from one to the other is that quite a few good practices in C are bad practice in C++, and vice versa. It is therefore quite common for people who mix parts of the languages up.
It is also technically possible to learn both C and C++ together (i.e. learn both in a way that allows you to understand which is which, and where they overlap). That is pretty difficult though, since a lot of teaching material mixes things up.
Some describe C as a simple language that is easy to learn, and C++ as a complex language that is hard to learn. They are wrong. In reality, C is a complex language that is hard to learn (or, at least, it is hard to learn well), and C++ is a more complex language than C that is harder to learn well.
The choice between C and C++ comes down to what type of things you intend to do with it. Most people asking this sort of question, however, don't have goals in mind that are even relevant to choosing between C and C++. A coin-toss is therefore as effective a method of choosing between C and C++ as anything else.
And don't use "text speak". It is annoying, immature, lazy, and pointless in forums.
O_o
a lotta ppl tl me htt tlkng like a ful is 'noying! yo! 4reals!
If the neither you nor the community around what you wish to do imparts a preference it doesn't really matter.
Flip a coin.
Soma
So, the plot thickens.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
I don't know why you're back still wondering which programming language to choose. It seems that your thoughts drop you into endless loops such as while(1).
So write a break; statement and pick C.
Seriously, it really doesn't matter. Learn whatever you want to learn.
If you started learning C two days ago, then you'd already have more C++ skills than if you started C++ right now, so there really is no wrong choice here.
My homepage
Advice: Take only as directed - If symptoms persist, please see your debugger
Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"