Ok, my question is...Should I learn C before learning C++? Because I have heard that if you know C its easy to learn C++. So should I learn C first or just go straight to C++?
Ok, my question is...Should I learn C before learning C++? Because I have heard that if you know C its easy to learn C++. So should I learn C first or just go straight to C++?
If you want to learn C++, go ahead. The reason they say if you know C you can learn C++ easily is because they're two very similar languages. (IE: C++ is trying to be a 'better C'.) C++ is based off of C. The syntax is the same, many of the keywords are the same, there are library functions that are identical, etc.
However C++ has some extra stuff and changes a number of things. (For one, it has classes. It also has templates, it handles streams differently by it's 'default' method of teaching / doing things.)
Anyway, if you're mainly interested in learning C++, I'd suggest learning that. Then if you've got a handle on it, you can pick up a C book and go "Oh I know that." or "Oh, that's what's different." Shrug.
Quzah.
Hope is the first step on the road to disappointment.
Thanks, and another thing, a friend of mine ,who already knows C++, says that learning Java before C++ is good because they are similar, but that Java is easier...is that true or, again, should I just go learn C++ right off the bat?
Thanks again!
Java is very similar to C++. It's the same mentality. If you know Java, you should be able to pick up C++ fairly easy. They do lots of things very similarly. But again, there's no reason to learn Java just to be able to learn C++ faster. It's just that they're similar in the syntax and such.
Quzah.
Hope is the first step on the road to disappointment.
Ok, thanks. (No means for Spam.)