Valhalla Legends Forums Archive | Assembly Language (any cpu) | should i learn c or c++ first?

AuthorMessageTime
crashtestdummy
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?
November 24, 2003, 11:37 AM
iago
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.
November 24, 2003, 2:38 PM
Skywing
[quote author=iago link=board=7;threadid=3808;start=0#msg31094 date=1069684720]
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.
[/quote]
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.
November 24, 2003, 2:56 PM
crashtestdummy
Thanks for the help.
And, sorry if this is in wrong place where should i put a question like this next time?
November 24, 2003, 4:27 PM
iago
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.
November 24, 2003, 10:20 PM
CrAz3D
He was asking if he should learn C/C++ before he attempts assembly, from what I saw he never edited his post either.
November 25, 2003, 6:13 PM
iago
[quote author=CrAz3D link=board=7;threadid=3808;start=0#msg31357 date=1069784022]
...from what I saw he never edited his post either.
[/quote]
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.
November 25, 2003, 7:36 PM
Etheran
[quote author=iago link=board=7;threadid=3808;start=0#msg31363 date=1069788990]
[quote author=CrAz3D link=board=7;threadid=3808;start=0#msg31357 date=1069784022]
...from what I saw he never edited his post either.
[/quote]
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.
[/quote]hey! pointers are still widely used in c++! :p
December 1, 2003, 10:51 PM
Eibro
[quote author=Etheran link=board=7;threadid=3808;start=0#msg33019 date=1070319096]
[quote author=iago link=board=7;threadid=3808;start=0#msg31363 date=1069788990]
[quote author=CrAz3D link=board=7;threadid=3808;start=0#msg31357 date=1069784022]
...from what I saw he never edited his post either.
[/quote]
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.
[/quote]hey! pointers are still widely used in c++! :p
[/quote]Sure, but not as much. Pointers usually take a back seat to references, and more specifically, char* is usually handled by std::string.
December 2, 2003, 3:07 AM
Skywing
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.
December 2, 2003, 3:15 AM

Search