Valhalla Legends Archive

Programming => General Programming => Assembly Language (any cpu) => Topic started by: muert0 on November 24, 2003, 05:37 AM

Title: should i learn c or c++ first?
Post by: muert0 on November 24, 2003, 05:37 AM
I've been to a couple of websites and they suggest learning c or c++ before taking a shot at assembly.
what are some of your views on this?
Title: Re:should i learn c or c++ first?
Post by: iago on November 24, 2003, 08:38 AM
This really has very little to do with assembly.

It doesn't matter which you learn first, since they're basically the same.  Once you know one, the other is easy.
Title: Re:should i learn c or c++ first?
Post by: Skywing on November 24, 2003, 08:56 AM
Quote from: iago on November 24, 2003, 08:38 AM
This really has very little to do with assembly.

It doesn't matter which you learn first, since they're basically the same.  Once you know one, the other is easy.
Err.. no, that's not really true at all.  There are many differences between C and C++, even beyond language features - for instance, the programming paradigms C++ is designed to support are completely different from those that C supports.

Most books recommend learning C++ first.
Title: Re:should i learn c or c++ first?
Post by: muert0 on November 24, 2003, 10:27 AM
Thanks for the help.
And, sorry if this is in wrong place where should i put a question like this next time?
Title: Re:should i learn c or c++ first?
Post by: iago on November 24, 2003, 04:20 PM
If you're asking about whether ot learn C or C++ first, the C/C++ forum is a good place :P

And I agree with Skywing, C++ first is better.  But once you know that, applying the knowledge to C is fairly easy.
Title: Re:should i learn c or c++ first?
Post by: CrAz3D on November 25, 2003, 12:13 PM
He was asking if he should learn C/C++ before he attempts assembly, from what I saw he never edited his post either.
Title: Re:should i learn c or c++ first?
Post by: iago on November 25, 2003, 01:36 PM
Quote from: CrAz3D on November 25, 2003, 12:13 PM
...from what I saw he never edited his post either.
Nobody said he did.


I guess if he really wants to go to asm, C would probably be better since if forces you to learn pointers.
Title: Re:should i learn c or c++ first?
Post by: Etheran on December 01, 2003, 04:51 PM
Quote from: iago on November 25, 2003, 01:36 PM
Quote from: CrAz3D on November 25, 2003, 12:13 PM
...from what I saw he never edited his post either.
Nobody said he did.


I guess if he really wants to go to asm, C would probably be better since if forces you to learn pointers.
hey! pointers are still widely used in c++! :p
Title: Re:should i learn c or c++ first?
Post by: Eibro on December 01, 2003, 09:07 PM
Quote from: Etheran on December 01, 2003, 04:51 PM
Quote from: iago on November 25, 2003, 01:36 PM
Quote from: CrAz3D on November 25, 2003, 12:13 PM
...from what I saw he never edited his post either.
Nobody said he did.


I guess if he really wants to go to asm, C would probably be better since if forces you to learn pointers.
hey! pointers are still widely used in c++! :p
Sure, but not as much. Pointers usually take a back seat to references, and more specifically, char* is usually handled by std::string.
Title: Re:should i learn c or c++ first?
Post by: Skywing on December 01, 2003, 09:15 PM
Note that you will still (probably) end up using pointers and char*s and things lots, because most operating system APIs still use those kinds of types.  In my experience, this has held true for many different operating systems.