C and C++

This is a discussion on C and C++ within the C++ Programming forums, part of the General Programming Boards category; Hi guys, i have been looking around at C++ recently and have come through a few articles comparing C and ...

  1. #1
    1337
    Join Date
    Jul 2008
    Posts
    135

    C and C++

    Hi guys, i have been looking around at C++ recently and have come through a few articles comparing C and C++. I Know C and a little bit of C++. I am basically working and going to work on 'not big projects/application', maybe some security applications.

    Anyway, i would like to know if i should learn and use C++ instead of C?

    Is there any good link comparing C and C++ (comprehensively and not biased of course)?

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,012
    I would put it as this:
    Use C++ if you can, C second-hand.
    What you might need to consider is if there is a C++ compiler for the target you are targeting.
    The reason is that C++ is an extension of C, and can do all that C can, and more, making it a logical choice for most applications that need speed and flexibility.

    Of course, if you want to find a language that you're most interested in, then know that C works at very low level, and C++ usually works at a higher, abstracted level with lots of already working tools (such as vector) to simplify memory management and such.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    1337
    Join Date
    Jul 2008
    Posts
    135
    Do you have any links or something like that? I want to know in more details.

  4. #4
    Dae
    Dae is offline
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    Quote Originally Posted by valthyx View Post
    Do you have any links or something like that? I want to know in more details.
    C vs C++
    C C++ differences
    C C++ compare
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

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