Going from C to C++

Sharky Forums


Results 1 to 5 of 5

Thread: Going from C to C++

  1. #1
    Goldfish
    Join Date
    Dec 2001
    Posts
    54

    Going from C to C++

    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.
    If you can't fix it with a hammer I don't wanna know about it.

  2. #2
    Hammerhead Shark
    Join Date
    Jan 2002
    Location
    0xC12F6D9A
    Posts
    1,600

    Re: Going from C to C++

    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.

  3. #3
    Mako Shark dighn's Avatar
    Join Date
    Nov 2000
    Location
    Vancouver, BC Canada
    Posts
    3,171
    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
    .

  4. #4
    Goldfish
    Join Date
    Dec 2001
    Posts
    54
    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++
    If you can't fix it with a hammer I don't wanna know about it.

  5. #5
    Reef Shark biosx's Avatar
    Join Date
    Jun 2001
    Location
    Chicago, IL, USA
    Posts
    448

    Re: Going from C to C++

    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.
    ## root is the greed of all evil ##

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •