C vs C++

C vs C++

conaticus

2 года назад

211,444 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

conaticus
conaticus - 18.02.2022 10:56

Hey thanks for watching! Made a small mistake in the video in saying any C code is valid C++ code. In more recent C++ this actually not the case, but is true for most cases.

Ответить
CrabCakeEnthusiast #69
CrabCakeEnthusiast #69 - 23.09.2023 02:16

C++ is superior because I love the cout and cin functions. Say you want to output some text, followed by a variable, followed by more text. In c, and other languages, you do

printf("Hello there your number is %d have a good day", variablename);

in c++

cout << "Hello there your number is " << variablename << " have a good day" << endl;

in my opnion that's easier to do and you don't have to memorize %c, %d, %s, and its also easier to output several variables, such as

cout << variable1name << " " << variable2name << " " << variable3name << " " << variable4name << endl;

Ответить
Arshia Aghaei
Arshia Aghaei - 14.09.2023 19:15

The phrase "any valid C code is a valid C++ code" is incorrect. C++ is missing a few C keywords like restrict.

Ответить
Cacti75
Cacti75 - 04.09.2023 19:07

C# users:

Ответить
Nick Milner
Nick Milner - 23.08.2023 13:15

Should you use C++ or <insert literally ANY other language here>? Yeah, you should use <insert literally ANY other language here>.

Ответить
nightshade
nightshade - 17.08.2023 18:04

i love c and dont like c++ that much

Ответить
KINER SHAH
KINER SHAH - 05.08.2023 17:28

Learning other languages is easy if you know C++. For example, Java, C#, Python, JavaScript, etc. - saying from personal experience.

Ответить
Toni
Toni - 26.07.2023 18:18

F*ck, I was drinking hot coffee while you showed PHP.

Ответить
The Habsburg
The Habsburg - 21.07.2023 07:12

I get the feeling Linus is still mad at me about that NVidia thing.

Ответить
Half Baked Productions
Half Baked Productions - 12.07.2023 03:38

"Learn C before you learn C++" is like telling someone to learn Latin before learning Italian.

Yes, it might help you see where some concepts stem from, but 99% of the time that just isn't worthwhile. They're not really the same at all.

Ответить
Martin Georgiev
Martin Georgiev - 11.07.2023 16:42

Albeit C++ is just C with modern features, learning C++ is not like learning C and then complementing it with the modern paradigms, most often it comes down to learning the basic C concepts and instead of delving into the nitty-gritty of the convoluted software-hardware logic, putting this fancy looking abstract "facade" for "professionals should not bother with the details and just do their job(Stroustrup 🤦‍♂)"(well guess what that's the reason why half the C++ programmers suck at programming). Having said that, if you have enough passion you will be fine either way, it's just that C++ skips some fences and well... you will have to get back to them someday,

Ответить
rollo
rollo - 06.07.2023 01:33

Arduino uses c++ not c.

Ответить
Валентин Судомир
Валентин Судомир - 24.06.2023 12:58

arduino is c++

Ответить
Connoisseur of Cookies
Connoisseur of Cookies - 05.06.2023 12:39

Yes, the legendary coder, Bidian Ståsoup.

Ответить
um entusiasta da tecnologia
um entusiasta da tecnologia - 28.05.2023 21:03

C++ is better than C because have class. Good day 👍

Ответить
Vovantus
Vovantus - 27.05.2023 03:47

Eh... C#?

Ответить
anon
anon - 12.05.2023 15:59

ur quote on how c programmers often prefer creating their own libraries "instead of stealing other peoples libraries" Is dumb, u might as well write ur own functions & make ur own types & keywords then instead of using the in built ones. Like why would u not use an abstraction that was written by someone better than you? Massive cope 🤡

Ответить
Darkflame
Darkflame - 22.04.2023 02:52

by not all C code is valid in c++, the fault of the restrict keyword in c

Ответить
NICOLE NEW
NICOLE NEW - 20.04.2023 22:29

INCREDIBLE

Ответить
Carmen
Carmen - 13.04.2023 02:34

C > C--

Ответить
StefanWebDeV
StefanWebDeV - 11.04.2023 08:41

Can you live a link on that page of C++ with the things to learn about and in what order?

Ответить
Eye of Gaming
Eye of Gaming - 19.03.2023 06:29

Why do you not have over a million subs????(What I mean is you create great videos)

Ответить
Wisteela
Wisteela - 18.03.2023 14:22

Yes, I'm going to stick with C.

Ответить
arf20
arf20 - 11.03.2023 20:36

The "Any C code is also valid C++ code" is laughable nowdays. It might have been true a very long time ago, but those days are long gone.

Ответить
Filip Kocháň
Filip Kocháň - 07.03.2023 02:01

c is not a subset of c++

Ответить
Monsieur Pigeon
Monsieur Pigeon - 17.02.2023 11:30

Use C for small, simple programs. Use C++ for large, complex projects. The end.

Ответить
Jegger
Jegger - 09.02.2023 05:08

Python.

Ответить
JERYNICOL
JERYNICOL - 03.02.2023 21:44

c++ easy choices

Ответить
John Lucas
John Lucas - 19.01.2023 17:54

Unless you are an independent programmer, you don't choose the programming language when being hired by a company.

Ответить
Ishara Sandakelum
Ishara Sandakelum - 18.01.2023 13:20

Well I dont think low level languages are replacing by modern technology because c and cpp are the fastest languages where most modern technologies are quite slow. So when there are mission critical things and timing considerations c and cpp are going to be there for a long time to come.

Ответить
Akbar Tokhirov
Akbar Tokhirov - 04.01.2023 00:41

Why he put a shit on php....

Ответить
heana abid
heana abid - 21.12.2022 15:01

where is C#?

Ответить
Sven Svensson
Sven Svensson - 21.12.2022 04:19

There's really only two reasons for prefering C over C++, compilation time and size, for VERY constrained environments.

Ответить
Emin Kilicaslan
Emin Kilicaslan - 06.12.2022 23:09

Linus Torvalds did the thing whole GNU community couldn't at the age of 22, I know it's not mandatorily true just because he said that but it can enough to make me biased against C++.

Ответить
Mr.guaxinim
Mr.guaxinim - 03.12.2022 03:34

Use Rust :)

Ответить
Azophi
Azophi - 28.11.2022 08:11

To be perfectly honest I’ve used C for about 5 years but have never once even touched C++.

I reckon it must be nice to have strings and/or classes though

Ответить
QmbaPL stark
QmbaPL stark - 19.11.2022 16:05

u should use none of these. I hate C thanks to my collage teachers. They forced me to code linux core in vim I haaaaate C the worst language ever.

Ответить
Philip Popescu
Philip Popescu - 19.11.2022 13:11

AAAAACTUALY arduino is programed in C++

Ответить
Sesquipedalian
Sesquipedalian - 17.11.2022 04:01

C++ is going obsolete?! I guess I'll learn assembly instead...

Ответить
theacp127
theacp127 - 13.11.2022 22:58

I'd consider C++ the Computer Scientist's best friend. There are a lot of C++ applications and uses in the technical fields like Engineering and scientific research. But, if someone is trying to get into programming as a self taught programmer, learning languages meant for App and website development will be a lot more important. I can't think of a single C++ developer job listing that didn't require at least a degree in either Computer Science, Computer Engineering, or a decade of experience with the language.

Ответить
CS7A30 Piyush Joshi
CS7A30 Piyush Joshi - 11.11.2022 18:09

javascript

Ответить
perfectionbox
perfectionbox - 04.11.2022 09:00

I was using C for a small test app a few weeks ago, but switched to C++. I just can't live without RAII, smart pointers, exceptions, std::vector, etc. and easily factoring different things into classes. Calling malloc and free in C just drives me nuts now.

Ответить
Богдан Чумак
Богдан Чумак - 04.11.2022 00:36

Funniest programmer

Ответить
Handsome_Hero
Handsome_Hero - 03.11.2022 17:25

Why do you represent PHP with the poo emoji?

Ответить
the
the - 30.10.2022 19:13

Guys if u don’t try c or c++ in web
I have problems
It’s amazing to understand socket and threads
By c c++

Ответить
Jakob Kenda
Jakob Kenda - 29.10.2022 01:46

"Learn C if you want tl work on embedded systems"
shows Arduino C++

Ответить
Gigachad
Gigachad - 28.10.2022 22:54

Dumbest things ive ever heard. just use c++. you can do the same things as c. if you dont like a feature or arent going to use it, ignore it.

Ответить
isNaN
isNaN - 22.10.2022 22:46

I wished if they thought us c++ instead of c# so i can understand why people are mad of this language

Ответить
c0mingback
c0mingback - 21.10.2022 10:46

It's sad that my first experience in learning coding was with C++.

Ответить
Terandium
Terandium - 20.10.2022 23:40

Hehe rust

Ответить