Question:
Should I move on to C++ now?
noob
2012-01-28 15:54:10 UTC
Hi. I have been studying the C programming language for about a month. I have covered most of the basic elements. But I am still to study advanced elements like arrays, structures, pointers etc. Shall I continue studying C or advance to C++ after practicing what I already know about C? Are advanced C chapters needed for C++? Or are they covered in C++? Thanks.
Ten answers:
2012-01-28 15:58:29 UTC
C++ concerns objects. If you do not know even arrays then you still do not have the basics. You should at least know basic operators, pointers, arrays, functions, structures and working with files. C is enough for learning that, though C++ is the same with the addition of objects. If you know structures it will be easier to understand objects. Keep going at it. Pointers and arrays are very easy. As well as arrays.
I R Sonajiso
2012-01-29 00:35:50 UTC
C++ is not C with extra features. C++ a whole new language (when you use it right) with its own unique way of looking at things (ie., its object oriented, while C is not). Yes, there are syntactical resemblances between the two and C++ did start out from C as a set of macros, but this should not make you believe that knowing C will help with C++ in any way. Also, if you think arrays and pointers are advanced, stay with the basics a bit more. Switch to C++ immediately, but focus on the basics a bit longer.
SteveO
2012-01-29 00:00:09 UTC
If you know C to any degree, then it will be easier learning Objective-C. However, learning a programming language for only a month does not mean you know the language well enough to do hardly anything. Arrays, structures and pointers are all still considered a basic part of C, and knowing those parts of C will make learning C++ and Objective-C a lot easier. It's best to stick with one language until you are somewhat proficient at it before moving on to learn another language; otherwise, you'll start getting confused with what features are part of what language and you'll never know any of the more advanced and useful features of the language you're learning. Stick with C for the next year or so...then move on to C++.
llaffer
2012-01-29 00:01:01 UTC
If you don't yet understand arrays and structures, you're still learning the basics.



Starting with C++ is a viable option today, but since you've started out at C, I'd stick with it and get a good grasp of what you've yet to learn, especially pointers, which is where C has its strength.



Combining pointers and structures allows you to create linked lists, a way to dynamically store data, unlike an array where you have to preallocate a fixed number of records in memory before you can use them.



I think once you have that down, then moving onto Object-Oriented concepts with C++, C#, or Java would be a good idea.
2012-01-29 00:13:07 UTC
Advanced topics like arrays and pointers, huh?

....

Just like adding two digit numbers (instead of just one) is "advanced mathematics". LMFHO

You have no idea WTF you are talking about.

There are lots of similarities between the two languages (obviously). If you have only invested 1 month in C, I see no reason not to just drop it and move on to a (very) beginners book on C++. C++ is a more modern language and what C you need, you will be able to pick up later.

They are different languages. No C is "needed for C++". Where the frak did you get that stupid idea from? It will take you about 10,000 hours to become a C++ expert. That is 5 years and you are a month in. How old are you?
Wertle Woo
2012-01-29 01:31:47 UTC
You should have just started with C++. There is nothing you can do with C that you can't do with C++, and in C++ it will be just as fast, but also be more maintainable. C also tends to encourage a lot of bad habits in C++. Unless you plan on maintaining legacy C applications, skip it and just use C++.
Michael G
2012-01-28 23:58:08 UTC
Learn advanced C before moving to C++ - the main difference is OOP (object orientated programming), much of the rest is the same. If you know C well before trying C++, you will have no trouble.
jplatt39
2012-01-29 00:02:27 UTC
You don't need C to move on to C++ but you will eventuallyh get C by studying C++. Move on especially if you have done sorting. Just move on.
2012-01-29 00:00:07 UTC
Yeah! Jacob Lakies is right. You should have started with C++ but its fine to move now.
Jacob Lakies
2012-01-28 23:55:12 UTC
I would have started with C++


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Continue reading on narkive:
Loading...