Thread: C v C++

  1. #1
    Registered User datainjector's Avatar
    Join Date
    Mar 2002
    Posts
    356

    Question C v C++

    Hey sup guys .Well i know manty people have asked this question is better or c++ .Well the difference between there question and mine is is C better or C++ better for my IT field.I started learning C because the books that i read say that u need to know a good mid level programming lang which is C.But knowi am interested in making security apps .So is C still the programming lang or C++.I know quite alot about C .

    Please if you can help me out with some books on C++ i need some good ones.
    both the beginners and advance C++ books .
    Is deitel C++ how to programm :Multimidia CDc class room good"???

    Thanks alot guys

  2. #2
    Sir Mister Insane Sako Klinerr1's Avatar
    Join Date
    May 2002
    Posts
    608
    c++ the black book
    author: Steven Holzner

    you can find it on amazon.com and i think it lets you preview the pages
    Email: [email protected] || AIM: MisterSako || MSN: [email protected]

    -the shroom has spoken

  3. #3
    C is about 15 years past it's prime. Everybody uses an object-oriented language nowadays - C++ is the most popular. Whether you want to or not C++ is in your future, almost all of the Libraries and API's you will use are Object Oriented, meaning C++ will sneak it's way into your code whether you like it or not.

    Also, when working in groups most of the project code is in C++ and ppl find it frustrating to constantly adapt and make exceptions for those who refuse to write their programs in C++. When others have to wade through your code to find the stuff they need and not just look through logical objects you'll be called a bastard behind yur back. You'll be forced as a C programmer to create Structs just to keep your code organized in a way to be compatible with the C++ coders.

    Some dudes like to mix their C and C++ which is fine but makes no sense to me since C++ is mostly just C with Classes.
    My Avatar says: "Stay in School"

    Rocco is the Boy!
    "SHUT YOUR LIPS..."

  4. #4
    Just a Member ammar's Avatar
    Join Date
    Jun 2002
    Posts
    953
    I started with C++, but when I was learning windows proramming, I used C and I found that I HATE it!
    I think that C++ is way better than C.
    I cann't immagine Programming larg programs withough using classes.

  5. #5
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    >C is about 15 years past it's prime. Everybody uses an object-
    >oriented language nowadays - C++ is the most popular.

    Don't forget Java, it is also used a lot. BTW, not everybody uses object orientatied languages. It just depends on the kind of system you want to create.

    At the company where I work we create embedded software for a wide range of consumer electronics. For such systems we use more than one language, just because each language has its advantages above the other. Java is not very useful for implementing real-time software or very low-level software, but it is very useful to create user applications. C and C++ are useful on the levels between hardware and applications, like the OS level. For the really low level things, assembly is used. In a lot of cases when it comes to develop small pieces of software, C is preferred above C++. Also functional languages like Haskell are very useful, mainly when a lot of math is involved.

    >I cann't immagine Programming larg programs withough using classes.

    Probably because you've never done that. I suggest you take a look at open source projects, a lot of them are in C. Also a lot of commercial projects are done in C and not only in embedded systems. Take a look at the source-code of UNIX or a variant.

    >Also, when working in groups most of the project code is in C++ >and ppl find it frustrating to constantly adapt and make
    >exceptions for those who refuse to write their programs in C++.
    >When others have to wade through your code to find the stuff
    >they need and not just look through logical objects you'll be
    >called a bastard behind yur back. You'll be forced as a C
    >programmer to create Structs just to keep your code organized
    >in a way to be compatible with the C++ coders.

    This has nothing to do with C or C++, but is an example of bad project organising and architecture. If you created good design documents, then there would be no need to browse the code to find what you need. If the architecture was good, then C and C++ could live very well beside eachother.
    Last edited by Shiro; 10-27-2002 at 03:12 AM.

  6. #6
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227
    Go shiro, go shiro...took the words straight out of my mouth.

    No programming language can be "past its prime", anyhow. Use the tool you need for the job at hand. A programming language is a tool and nothing more.

    I started with C (err...well, QBASIC was first, to be fair ), and now that I'm doing C++ for a class at school, I don't find anything more than that it's a bit more irritating. Alright, so we haven't gotten to classes yet (*sigh* the kids in that class are SOOO slow!), but I've written classes for C# and I don't find that they're the end-all-be-all of programming. They're nifty, sure - but something I could do without if I had to, depending on what I was programming.

  7. #7
    KingoftheWorld
    Guest
    In my opinion, you should go straight with C++. Since any projects implement in C, you can do with C++ even dealing with
    low level programming(hardware interface). Because of its advantages of reusablity(important software cost factor) and easy maintainance, C++ have been gained most favor in software
    development in many companies out there. I agree with most people that every language has its own best at certain software application, but when considering to pick between C and C++ to learn at present, I would prefer to go with C++, because I think the trend of C++ is growing.
    In fact, developing a software involving many factors and processes, not just only focusing on choosing a better implementation language. An unambigious user requirements, good design and software quality assessment are the most important factors in software development.
    Hope you will be on the right track with programming career.
    Regards,

    KingoftheWorld

  8. #8
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    Well here's my 2 cents (why do they say "Penny for your thoughts, if your thoughts are 2 cents?):

    C is simpler, and has a couple of things that C++ doesn't have, but foir the most part, C++ is C and more. Most books on the subject will have a few chapters devoted to learning the part of the language that is actually the same as C, but than they have a separate chapter for learning the object-oriented part of the language. I say, get a C++ compiler, and learn C now. When you fell comfortable with that, learn about classes and overwriting functions and operators and stuff. <- that's basically what I did.

Popular pages Recent additions subscribe to a feed