Conversion between C and C++

This is a discussion on Conversion between C and C++ within the C Programming forums, part of the General Programming Boards category; What can C++ do that C can't and why no String Variables? Character arrays aren't that hard but that make ...

  1. #1
    Registered User
    Join Date
    Jul 2002
    Posts
    4

    Conversion between C and C++

    What can C++ do that C can't and why no String Variables?
    Character arrays aren't that hard but that make variables a little bit more compilcated thanh tyhey should be.

  2. #2
    moi
    moi is offline
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946
    why does some misguided soul start something about this every other day?
    hello, internet!

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >What can C++ do that C can't and why no String Variables?
    C is a simple language, simple is good. There's no need for a string data type in C so it was never added. C can do everything that C++ can, but they both do it in different ways. The general rule of thumb is to ignore that C++ was based off of C and just use them both.

    -Prelude
    My best code is written with the delete key.

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