Noob here...a simple question.

This is a discussion on Noob here...a simple question. within the C Programming forums, part of the General Programming Boards category; Ok, my question is...Should I learn C before learning C++? Because I have heard that if you know C its ...

  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    3

    Noob here...a simple question.

    Ok, my question is...Should I learn C before learning C++? Because I have heard that if you know C its easy to learn C++. So should I learn C first or just go straight to C++?

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    If you want to learn C++, go ahead. The reason they say if you know C you can learn C++ easily is because they're two very similar languages. (IE: C++ is trying to be a 'better C'.) C++ is based off of C. The syntax is the same, many of the keywords are the same, there are library functions that are identical, etc.

    However C++ has some extra stuff and changes a number of things. (For one, it has classes. It also has templates, it handles streams differently by it's 'default' method of teaching / doing things.)

    Anyway, if you're mainly interested in learning C++, I'd suggest learning that. Then if you've got a handle on it, you can pick up a C book and go "Oh I know that." or "Oh, that's what's different." Shrug.


    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    Jun 2005
    Posts
    3
    Thanks, and another thing, a friend of mine ,who already knows C++, says that learning Java before C++ is good because they are similar, but that Java is easier...is that true or, again, should I just go learn C++ right off the bat?
    Thanks again!

  4. #4
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Java is very similar to C++. It's the same mentality. If you know Java, you should be able to pick up C++ fairly easy. They do lots of things very similarly. But again, there's no reason to learn Java just to be able to learn C++ faster. It's just that they're similar in the syntax and such.


    Quzah.
    Hope is the first step on the road to disappointment.

  5. #5
    Registered User
    Join Date
    Jun 2005
    Posts
    3
    Ok, thanks. (No means for Spam.)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple question about pausing program
    By Noid in forum C Programming
    Replies: 14
    Last Post: 04-02-2005, 09:46 AM
  2. simple question.
    By InvariantLoop in forum Windows Programming
    Replies: 4
    Last Post: 01-31-2005, 12:15 PM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 04:00 PM
  4. simple noob question
    By NiVaG in forum Linux Programming
    Replies: 5
    Last Post: 09-28-2004, 07:56 PM
  5. simple fgets question
    By theweirdo in forum C Programming
    Replies: 7
    Last Post: 01-27-2002, 06:58 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21