[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

C vs C++

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 39
Thread images: 7

File: 1487616284671.jpg (104KB, 799x590px) Image search: [Google]
1487616284671.jpg
104KB, 799x590px
Not asking which is better, but asking which I should learn first. I already know basic shit in both but I'm wondering which I should dedicate myself to learn first
>>
Learn Assembler code first if you only do it for the knowledge. Everything else is hand-holding. Literally.
>>
>>59121679
You should have a goal other than just learn one of them. Find some project you would like to contribute to and learn how. Stop thinking about which language to learn first, it is just another excuse to not start learning.
>>
C
>>
Flip a coin, heads C, tails C++
>>
Avoid the unnecessary BDSM and go straight to C#.
>>
>>59121679
If you MUST learn C++, don't learn C.
>>
File: 1487858055610.gif (614KB, 267x199px) Image search: [Google]
1487858055610.gif
614KB, 267x199px
>>59121844
>Microsoft Java ++
>>
File: 1488050860333.jpg (23KB, 640x281px) Image search: [Google]
1488050860333.jpg
23KB, 640x281px
>>59121698
>>
>>59121975
I didn't say machine code. Now that's autism.
>>
>>59121679

One does not "learn" C++. The language is too big and complicated, and there will always be odd corners of it that surprise you.
>>
I learned c into c++. Definitely prefer c++ personally
>>
Definitely work with C++, unless you have a specific project that requires C.
>>
>>59121679
If you don't know C, then you don't know C++.
>>
>>59122488
what about if you know C++, does that mean you know C?
>>
>>59121679
C++ is very big and abstracts a lot of things away, so you wouldn't know how things really really work. start with C - you can at least master it, while you can never finish mastering C++
>>
>>59122357
m8, you know neither C nor C++
>>
If you start with C you'll run into some functions that by all means should probably be deprecated (if they aren't).

If you start with C++ you might run into some esoteric and ugly syntax.

Other than that for learning purposes they are the exact same language. Until you reach classes at which point you've breached the scope of C.
>>
>>59121679
Learn Pascal.
>>
>>59121679
Systems development? C
Anything else? C++
>>
>>59122726
>Systems development? Go
ftfy
>>
>>59122875
>Go like in Go Away
ftfy
>>
>>59122623
Yeah that follows. You can know C without knowing C++, but for a C++ the C part of C++ is very important. If you run in to a situation where a C++ abstraction is too costly for a part of your code it pays to be able to do it the C way.
>>
>>59121679
I don't know you'll decide, but please, NEVER listen to the "C is a subset of C++, so learn C++ by learning C first" people.

Never do that. Good C++ is much different from good C. If you learn C++, learn C++. Never C.

If you want to learn C, ignore this advice.
>>
>>59122875
>Go
>Systems development
>Performance 3x slower than C/C++
Well-memed.
>>
File: 1487984265496.png (346KB, 500x464px) Image search: [Google]
1487984265496.png
346KB, 500x464px
>>59121679
On the same note, what book is best for learning C++ or C?
>>
File: 1487902924191.gif (3MB, 377x372px) Image search: [Google]
1487902924191.gif
3MB, 377x372px
>>59122875
>>
File: Attach24044_20170224_001627.jpg (55KB, 500x667px) Image search: [Google]
Attach24044_20170224_001627.jpg
55KB, 500x667px
>>59121679
Rust
>>
>>59121679
C++ is almost a super set of C.

If you want to learn C++ you have to learn C anyways.

I think it is easier to start with C, because tit is a much more compact language and after that go up to C++.
Most of the things you learned will directly transfer from C to C++.
>>
>>59121698
>Assembler language not holding your hand by abstracting away address and jump calculations
Literally the TurboPascal of low lever programming.
>>
ITT Retards who dont realize universe and everything that exists is built on >> STRUCTURES << NOT >> OBJECTS <<

C is godmode.
C++ is for retards too smart to be Pajeets
>>
File: file.png (484KB, 712x480px) Image search: [Google]
file.png
484KB, 712x480px
>>59121679
Why can't we all just get along?
>>
>>59121679
What do you want to do with it?
Want to make end-user programs? C++
Want to make low-end programs for Embedded systems or kernel? C
>>
>>59121679
As a first language? literally whatever. Fucking learn mindfuck for all I care. What you need to learn when first starting is the basics for thinking like a programmer. Understanding how to simplify a big problem into a sequence of small commands.

Then when you get that figured out, find something you want to do (or a position you wish to fill in the industry) and choose a language according to this goal's needs.

Simple as that
>>
I see a lot of people say things like
>systems development
>low-end
>kernel
for C

What kind of programs/work does that entail exactly?
I've only ever done end-user programming so I honestly could only guess
What are C programmers building in their day to day?
>>
>>59121698
>Literally
No. But maybe figuratively.
>>
>>59122951
>>59123237
mixed messages here
>>
>>59121679
what the fuck you cannot do anything with c++ if you don't know c, c++ is some fucking libraries for c
>>
>>59121679
If you want to learn an arbitrary language then go with C++. If you want to contribute to a C codebase like the linux kernel then learn C.
Thread posts: 39
Thread images: 7


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.