Click to See Complete Forum and Search --> : Going from C to C++


Flunklord
04-13-2002, 06:19 PM
I've been taught C as part of my engineering degree. I realise that as languages go C is fairly commercially useless so i'm looking to convert from c to c++ how hard is it and are there any guides that could help me out.

!shira!
04-13-2002, 07:24 PM
Originally posted by Flunklord
I've been taught C as part of my engineering degree. I realise that as languages go C is fairly commercially useless so i'm looking to convert from c to c++ how hard is it and are there any guides that could help me out.
You are in for one easy ride. :) C++ is almost EXACTLY like C. I does have things added like classes along with other things.

Get a book about classes because they are REALLY handy.

dighn
04-13-2002, 09:20 PM
yep just about everything you learned in c can be carried over to c++. learning the c++ syntax should be very easy. but getting used to doing everything the c++ way (to truly program inc++ will gaktake) a whiel

Flunklord
04-14-2002, 10:04 AM
cool thats good to know. I can do all the basic stuff in C like for and do loops etc model simple differential equations but what will I gain other then marketability from learning c++

biosx
04-16-2002, 12:57 PM
Originally posted by Flunklord
I realise that as languages go C is fairly commercially useless

Whatever you say man ;) Hold on a second while I go to my Linux box (all coded in C) and run my OpenSSH client (all coded in C) while talking on Gaim (again, coded in C) and then going BACK to my windows box to play Quake2 (yes... coded in C).

I admit when I learned C++, I was mighty impressed (and am grateful for learning it). It is pretty dense at first, but if you keep at it, you'll find that things like Polymorphism, Inheritence, and Operator-Overloading are big-words to describe pretty simple ideas and techniques.

Good luck

PS: I also when from C to C++, so may I recommend a book? C++: How To Program by Deitel & Deitel. It's a good read on the latest standards and practices of C++. The only problem with it is the price.