ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
Distribution: Mac OS X 10.6.6, Gentoo Linux, FreeBSD 6.0
Posts: 127
Rep:
I'd say a good solid book is the best way. I think Thinking in C++ is available free online, but I don't know how good it is. You could probably get a copy of Deitel & Deitel's C++: How To Program for cheap if you're ok with it being one or two editions behind the latest. Personally I like the Deitel book more than other introductory programming books I've seen.
The main difference is that C++ is object oriented and C is not, but you can work in C++ both ways. C++ is considered a C upgrade so IŽd start with that and skip C, my opinion only though. YouŽll find it very familiar to PHP.
I'll throw a second recommendation behind Deitel^2. I didn't learn from it, but I was assigned it in a class and though it looked pretty solid. That said, the most important resource is going to be your own ability to ask questions of Google. C is hard. : )
Quote:
Originally Posted by Hioushi
YouŽll find it very familiar to PHP.
Well, you'll find some of the syntax familiar. PHP won't teach you much about pointers and memory management, which are kind of the central and signature concepts of C.
Edit: whoops, nuked some of my own text.
Last edited by karamarisan; 07-12-2009 at 10:55 AM.
The main difference is that C++ is object oriented and C is not, but you can work in C++ both ways. C++ is considered a C upgrade so IŽd start with that and skip C, my opinion only though. YouŽll find it very familiar to PHP.
And to add to the confusion - C++ templates engine is functional - opposed to OO and imperative.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.