Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm new to Linux-been messing around a bit and just finished an Intro to Unix class. Now I'm hooked. I'm interested in programming and am pretty new to that as well. I'm interested in developing for Linux/Mac OS-anything but Misrosoft. My question-I can take C++ at the school I am attending right now, but I know that is not quite "on target" as far as kernel development, etc... since the Linux kernel is in C-how different is C++ from C? Can I take a C++ class and figure C out from what I learn in C++, or are they not that similar?
Knowing C would usually be a pre-requisite for a c++ course. If it isn't then that probably means they teach you C syntax before moving on to the more advanced parts of c++.
C++ is an object-oriented extension of C. Every programmer needs to know C++. Get "A Book on C", it describes the language quite comprehensively. Having learned C++ in class, you should be able to learn C from a book.
the concepts for using the two are really quite different but c is a subset of c++.
no problem learning c++ first. Might actually be better to start off with the higher level concepts.
higher level structures in c++ like you say are inapropriate for very low level work but all that will become clear later.
Thanks! I took the Intro to Programming class, which was VB.NET, and we briefly covered C and C++ in the UNIX class, so I'm familiar with the basics. I just don't want to waste time taking classes that won't be usable as far as open source development/programming. I'll pick up a good book on C and use that in conjunction with the C++ class, I think. The only other alternative is to take VB.NET, or Java (which is cool as well, but I'll need to take a few more pre-reqs for that). Obviously also interested in Pearl, and having fun with sed and awk. Not sure if this would be more appropriate in the programming thread, but I didn't notice it until after I posted here.
Thanks again!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.