C or C++????

This is a discussion on C or C++???? within the C Programming forums, part of the General Programming Boards category; Just wanted to ask some people w/ experience. Which is the better language to start with? C or C++? My ...

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    1

    C or C++????

    Just wanted to ask some people w/ experience. Which is the better language to start with? C or C++? My hopes are to develop code for use on the most platforms possible, as I am slowly weaning myself off of microsofts dope. I've heard before that learning C first is the way to go, although learning how to manage memory can be very challenging. The only programming languages i have used to any extent thus far have ben scripting languages. (python, perl, ksh....) Also which development environment, compliler, etc is the best to learn with? i.e. forces you to use good coding practices and standards? Thanks in advance for any insight. I'll return the favor to the board one day when I have some experience under my belt.

  2. #2
    Registered User rmullen3's Avatar
    Join Date
    Nov 2001
    Posts
    330
    Code:
    forces you to use good coding practices and standards?
    If you want to get good coding practice and standards, choose C++. The only reason I say this is because C++ is stronger typed... "safer".

    The truth is that C and C++ are pretty similiar.
    The other truth is that this is one of the most asked questions ever.
    "He who makes a beast of himself, gets rid of the pain of being a man." Dr. Johnson

  3. #3
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Well I learned C first so I'd probably lean toward C. However, maybe I am just being biased. I do have to say that people who learn C first generally use a cleaner coding style (particulary when scoping variables) however I think overall it truly doesn't matter. If you learn C++ first you are technically learning C as well. So why not kill two birds with one stone?

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