• Welcome to Valhalla Legends Archive.
 

should i learn c or c++ first?

Started by muert0, November 24, 2003, 05:37 AM

Previous topic - Next topic

muert0

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?
To lazy for slackware.

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.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Skywing

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.

muert0

Thanks for the help.
And, sorry if this is in wrong place where should i put a question like this next time?
To lazy for slackware.

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.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


CrAz3D

He was asking if he should learn C/C++ before he attempts assembly, from what I saw he never edited his post either.
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

iago

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.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Etheran

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

Eibro

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.
Eibro of Yeti Lovers.

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.