C and C++

This is a discussion on C and C++ within the C++ Programming forums, part of the General Programming Boards category; How much of the C language should I know before I start to learn C++? I know about the unwritten ...

  1. #1
    Un Artiste Extraordinaire volk's Avatar
    Join Date
    Dec 2002
    Posts
    357

    Question C and C++

    How much of the C language should I know before I start to learn C++? I know about the unwritten rule that all C++ programmers must be C programmers as well.

  2. #2
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718

    Re: C and C++

    You don't need to learn C before learning C++. Look at the tutorials on this site. They deal with C++, and are designed for those who haven't ever touched a compiler before. Of course, it always helps to have knowledge of the basic C I/O functions.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  3. #3
    Registered User
    Join Date
    Mar 2002
    Posts
    1,595
    I don't think you need to know even the basics of C I/O to get started with C++. True, as you go along, learning the differences between C/C++ particularly as it pertains to the different I/0 and file handling routines offers alternative approaches where you may prefer one approach in a given situation and the other approach in a different situation. But to get started, learn C++ first. That will teach you 90% of C as you go. You will be able to pick up the other 10% as you go along, if you want.

    Oops, that's what was previously said now that I re read the previous reply. Sorry.

  4. #4
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    I made the mistake of working through "Teach Yourself C in 21 Days" before working through "Teach Yourself C++ in 21 Days". There was a small advantage in doing this because there is material in the C book which is not covered in the C++ book. But, I could have accomplished the same thing by buying both and just using the C book as a reference.

  5. #5
    Un Artiste Extraordinaire volk's Avatar
    Join Date
    Dec 2002
    Posts
    357

    Cool

    Is "C++ is better than C" the general consensus of this board?

  6. #6
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Originally posted by volk
    Is "C++ is better than C" the general consensus of this board?
    Please don't ask that question... do a search and you'll find a few threads discussing this one.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  7. #7
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Originally posted by volk
    Is "C++ is better than C" the general consensus of this board?
    This is a C++ board, you know.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  8. #8
    Un Artiste Extraordinaire volk's Avatar
    Join Date
    Dec 2002
    Posts
    357

    Wink

    Can you post a link that discusses this topic? Please

  9. #9
    Registered User
    Join Date
    Nov 2002
    Posts
    1,109
    A couple links for you:
    here
    and
    here

  10. #10
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    >>This is a C++ board, you know

    I think he was speaking in terms of the entire community, that said its a cprogramming board, technically :P

    I went right from VB to C++ with no study in between, just start reading the sites , or others, tutorials.

  11. #11
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    As you become more experienced as a programmer you will stop thinking in terms of which is better. They are both languages and nothing more. I think once you know C++ you will tend to do things in more of C++ style, even if you like C better. But nonetheless, I don't think the question is really a good one since C and C++ are so closely related. If you ask which is better pascal or c at least you may actually start some sort of lame debate where people who like pascal will are with people who like c even though they are both (like all programming languages) merely tools that are used to achieve the same goal. The creation of a program.

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