C first?

This is a discussion on C first? within the C++ Programming forums, part of the General Programming Boards category; I have been studying C++, but have not done anything in the C language. I am just now getting into ...

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    15

    C first?

    I have been studying C++, but have not done anything in the C language. I am just now getting into Polymorphism and stuff like that. I was wondering if it would be smart to stop there, and go back and learn the C language first, before doing more on C++? Or does C++ cover all that C already had? thanks for your info
    Im special

  2. #2
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    C++ = C + more. Just about everything that worked in C will work in C++; the opposite is not true. For the details, ask someone smarter than me
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  3. #3
    Registered User
    Join Date
    Sep 2002
    Posts
    15
    Alright thanks, thats what i needed to know.
    Im special

  4. #4
    Registered User jlou's Avatar
    Join Date
    Jul 2003
    Posts
    1,088
    The thing I've heard C++ people suggest, which makes sense to me, is to not learn C at all if you want to be a C++ programmer. Many of the techniques that work well in C are not the preferred method in C++. For example, arrays are used all the time in C, however you rarely if ever need an array in pure C++ code. The STL's vector and other containers are used instead. Also, char* (or C-style) strings are not necessary, since the STL string is available and preferred. Given that, if you really want to be a C++ progammer I would think you would be better at it if you stayed away from learning C to avoid programming with a C mentatilty.

  5. #5
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398

    You can't even buy a C-only compiler !

    Well, actually some embedded systems use C. And, I use Microsoft Quick-C (circa 1990) to maintain some old programs.

    But, C-only compilers are getting very rare. If you get "stuck" using one, you'll have to figure-out how to do without objects, etc. Don't waste time learning how to do stuff the C-way... work on the advanced C++ features, and then on to Graphics/GUI, or something.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21