Hello ,
I want to start learning programming .
I read that C is close to the machine level , and it's used to program Unix .. and many things.. I really need that when entering the Unix world !
I read also that C++ is "C with classes" , and enhances C .
So , can I start learning C++ and do what C does?
Can C++ do things that C does?
Contrary to what others have said here, C++ is NOT a superset of C. There are certain things you can't do in C++ that you can in C (e.g. restrict pointers).
C++ basically gives you 2 things that you can't do in C: OOP (Object Oriented Programming) and templatized programming (aka generics).
Also contrary to what others have said here, C, C++, C#/JAVA is *NOT* a progression. In fact, C# and Java are good languages to start with, as they are a lot easier to learn (you don't have to worry about complex things such as memory management).
Lastly, the unix core was written in C (it was the most advanced language at the time). However, a large part of linux/unix is now written in C++ (such as GUI, applications, etc.)
Reply:Usually it can.
But there are systems which will support C and not support C++.
I admin servers for internet providors. Its a real headache to us when we ask for something in C and get back something in C++. Learning C can be rougher, and C++ is more fun. There is an advantage in learning C first but it might blow you away from the idea of programming at all.
Actually for that reason I usually do not recommend any C at all for "start learning programming".
Reply:C++ is a superset of C. You can program entirely in C using the C++ compiler...
Reply:C++ has is an object oriented language
you can use classes as a parent container For methods
and more organized.
Reply:Learn C. Then Learn C++. Finally Learn Java. They are a progression in the development of computer programming languages.
Reply:ofcourse.....dear...
Reply:You can do everything in C++ that you can do in C. To the point where you can take any C code and compile it with a c++ compiler.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment