Results 1 to 6 of 6

Thread: Which one to learn (c or c++)?

  1. #1

    Thread Starter
    Addicted Member kikelinus's Avatar
    Join Date
    Nov 2000
    Posts
    219

    Which one to learn (c or c++)?

    I'm thinking about learning to program in c/c++. Which one should I learn?

    Thanks.

  2. #2
    Fanatic Member prog_tom's Avatar
    Join Date
    May 2001
    Location
    Los Angeles and Little Rock
    Posts
    810

    Post Which Platform?

    That may have involved a lot of factors and matters in return for a judgement, mainly acted upon the platform you majorly target in.

    (1). DOS ----> C
    (2). Win32--> C++
    (I recommend Visual C++ instead of Borland C++ for Win32)

    Hope that will help with a little piece of advice. Wish you a Merry Christmas and a Happy New Year.

    prog_tom
    JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
    http://physics.sviesoft.com/forum

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    And why shouldn't you program for C++ in DOS?

    Actually...I can't see why anyone would write for DOS, but that might be just me...

    Anyway, definitely learn C++. The language has matured considerably from its early days and I don't think there's any performance penalty to using the object-oriented features of the language, if you use them properly (i.e. use templates and inline functions, and const in the necessary places).

    C++ code, when well written, is a lot easier to read than the equivalent C, and is easier to support because it's more resilient because C++ has a different error handling strategy.

    Sorry for the essay, just got back from the pub and my fingers got carried away
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  4. #4
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    Well not exactly a different error handling strategy. It has the same ones as C, with the added extra of exceptions. Exceptions are great for some things but you wouldn't (or at least probably shouldn't) use them exclusively for error handling.

    To answer the original question though, learn C++. Along the way you'll probably end up learning C anyway, which is no bad thing.
    Harry.

    "From one thing, know ten thousand things."

  5. #5
    Megatron
    Guest
    There are many people who would suggest that you learn C before C++ but I don't see any point to that. As a better approach, I would suggest learning C++ first, then after you know it pretty well, take a look C.

  6. #6
    Hyperactive Member Emo's Avatar
    Join Date
    Jul 2000
    Posts
    428
    I read this somewhere... (just so you know what you need time-wise)

    if you want to be fully comfortable with all the major C++ language constructs, with data abstraction, Object-Oriented programming, generic programming, Object-Oriented design, etc., you can easily spend a year or two - if you aren't already acquainted with those techniques.

    -Emo
    -=VB6 Enterprise Edition=-
    -=VC++6Enterprise Edition=-
    «¤E³m°O²™¤»

Posting Permissions

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



Click Here to Expand Forum to Full Width