Thread: Is it necessary to learn C before C++ ??

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    5

    Unhappy Is it necessary to learn C before C++ ??

    Is it necessary to learn C before C++ if we know VB a little bit?

    For the present, is C still popular in the world like a C++ or Java?

  2. #2
    Registered User The Dog's Avatar
    Join Date
    May 2002
    Location
    Cape Town
    Posts
    788
    No, it's not necessary to learn C before C++, IMO.

    >> For the present, is C still popular...
    Not popular, but still around.

    There are many people who dislike C very much, but then again there are us at cprog.com who love it. Try it and see what you think.

  3. #3
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    > Is it necessary to learn C before C++ if we know VB a little bit?

    In my opinion it is not necessary to learn C before C++. C++ is a different language and can be learned as a new language.

    > For the present, is C still popular in the world like a C++ or Java?

    C++ and Java have other areas of application than C has. So it is hard to make a comparison. But there sure are areas of application where C++ has replaced C, in other areas Java is replacing C++.

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    in other areas Java is replacing C++
    Java sucks as a solution and everyone knows it (including Sun) - which is why .NET is, and will, replace several things including Java.

    (just my opinions/observations )

    gg

  5. #5
    |<o>| <--cyclopse LouDu's Avatar
    Join Date
    Mar 2003
    Posts
    137
    back to the oringal questions if so i would be screwed
    Languages <> C++, HTML

    /*The Ledgend of Ludlow Coming to a PC Near
    You intro Cinenmatic Needed email me of
    Reply to one of my threads if you can make
    one, thats decent. */

  6. #6
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Don't worry, one can still get a Cobol job....(a whole lot of stuff has been written in Java).

    gg

  7. #7
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361
    See what BS has to say about this:
    http://www.research.att.com/~bs/bs_f...l#prerequisite

  8. #8
    Registered User The Dog's Avatar
    Join Date
    May 2002
    Location
    Cape Town
    Posts
    788
    >> Java sucks as a solution and everyone knows it

    Solution to what? Know that Java is not only used in web-based apps and client/server-side programming, it's also used in cellphones etc.

    Java has grown a lot since it came about and I think that it will still be a contender in web-programming in the future.

    IMO, of course.

  9. #9
    Registered User
    Join Date
    Sep 2002
    Posts
    272
    >Java sucks as a solution and everyone knows it (including Sun) <

    Java may suck; but people who use dubious sources to prove the suckiness probably belong in a world of suckiness. Java should be right up your street.
    Joe

  10. #10
    A lot of people that use C bash C++ people, saying that C++ is slower and harder to learn. But in fact, C++ is usually faster and IMHO it's easier to learn. Here is an example:

    http://www.gamedev.net/community/for...opic_id=143301

    Don't mind the file I/O part, it is a known fact that fstream.h is kinda slow. But look at how the C people are saying their code runs faster in C than C++, when it is really because they can't program in C++ well.

    I love C++. I love classes. I love OOP. I love STL. I use C++, and I never will stop. At least for the applications I'm doing now, for web stuff and UNIX I like Perl.

  11. #11
    ! |-| /-\ +3 1337 Yawgmoth's Avatar
    Join Date
    Dec 2002
    Posts
    187
    The posted code in that link is majorly cool! It has syntax highlighting and its own little scroll box so it doesn't mess up the rest of the page. We need to get something like that over here.
    L33t sp3@k sux0rz (uZ it t@k3s 10 m1|\|ut3s 2 tr@nzl@te 1 \/\/0rd & th3n j00 h@\/3 2 g3t p@$t d@ m1zpelli|\|gz, @tr0(i0u$ gr@mm@r @|\|d 1n(0/\/\pr3#3|\|$1bl3 $l@|\|g. 1t p\/\/33nz j00!!

    Speling is my faverit sujekt

    I am a signature virus. Add me to your signature so that I may multiply.

  12. #12
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Java may suck; but people who use dubious sources to prove the suckiness probably belong in a world of suckiness. Java should be right up your street.
    If JoeSixPack told me the world was round, I don't have to consider the source to know that it's true.

    The technical statements in that "memo" are true - not because I read them there, but from experience. They wouldn't be any less true if it were originally posted in the Onion.
    As for it being an actual Sun memo - who cares - you should read everything with a grain of salt. And yes, I perpetuated the propaganda by saying "even Sun" in my earlier post.
    I've earned a descent part of my living developing in Java, and it definitely has its place (especially on the web as The Dog pointed out). I just don't think companies should be re-writing large scale C++ systems/applications in Java out of ignorance (or any other language for that matter). To clarify, this is what I meant by "Java sucks as a solution" - and was in response to "in other areas Java is replacing C++" - which is still true. I'm not trying to bash the language. Java is an excellent OOP language. The problem is folks are applying it in the wrong domains. I'll stop here since I'm WAY off topic for this thread.

    I knew I should of edited that post after I sent it, but kicking over an ant hill is fun sometimes

    BTW - learn C first. Is it necessary? No, but I think you'll be a much better OO designer/programmer having first mastered modular programming. If this isn't your first programming language and you're ready to try on C++, then definately don't consider C a prerequisite.

    gg

  13. #13
    Registered User
    Join Date
    Mar 2003
    Posts
    5
    Assume I don't know and don't lern C first, but I start my 1st program with C++ and understand all syntax and command. After I need to see and read C code, can I understand all C code or I need to start C code again. Someone ever told me C is subset of C++ right sir..?

  14. #14
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Yes, the raw language is a subset - but each has different standard libraries. So you may very well read C code and see function calls that you've never seen before - but looking up what these functions do is trivial. For example, here is "Hello world!" in both languages:
    Code:
    //C++ version
    #include <iostream>
    using namespace std;
    
    int main()
    {
       cout << "Hello World!" << enld;
       return 0;
    }
    ...
    /* C version */
    #include <stdio.h>
    
    int main()
    {
       printf("Hello World!\n");
       return 0;
    }
    All the looping and branching constructs are the same between C and C++, like for, while, do/while, if/else, etc.

    So, if you learn the C++ language/syntax in its entirety, then you will have learned the C language/syntax - you just have to know which parts are C++ only. However, when you learn a language, you will usually also learn the libraries that they use. C++ can access and use the C libraries (and you will in alot of cases), but things like I/O are completely different - like in the code example above.

    gg

  15. #15
    CS Author and Instructor
    Join Date
    Sep 2002
    Posts
    511

    Talking

    No - you do not need to have learned C before C++/Java. However, student I have taught and have had C before C++ and/or Java do better. We have noticed this in grades over the past two years.

    That is another reason why some colleges/university require some programming background before taking C++/Java.
    Mr. C: Author and Instructor

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What do I learn now?
    By Lorgon Jortle in forum C++ Programming
    Replies: 14
    Last Post: 03-14-2009, 06:44 PM
  2. Looking to learn C++
    By Fuzzy91 in forum C++ Programming
    Replies: 40
    Last Post: 04-13-2006, 02:38 AM
  3. Book for Newbie trying to learn C
    By uthscsa19 in forum C Programming
    Replies: 23
    Last Post: 12-24-2005, 11:02 AM
  4. You have to learn C in order to learn C++
    By gandalf_bar in forum A Brief History of Cprogramming.com
    Replies: 20
    Last Post: 07-16-2004, 10:33 AM
  5. Advice on how to being to learn C++
    By VenomUK in forum C++ Programming
    Replies: 9
    Last Post: 05-18-2002, 01:06 PM