Variables in C++

  Рет қаралды 445,287

The Cherno

The Cherno

7 жыл бұрын

Twitter ► / thecherno
Instagram ► / thecherno
Patreon ► / thecherno
Series Playlist ► • C++
BEST laptop for programming! ► geni.us/pakTES
My FAVOURITE keyboard for programming! ► geni.us/zNhB
FAVOURITE monitors for programming! ► geni.us/Ig6KBq
MAIN Camera ► geni.us/CYUQ
MAIN Lens ► geni.us/ZM3CmG
Microphone ► geni.us/wqO6g7K
Slack ► slack.thecherno.com
Stream ► / thecherno
Website ► www.thecherno.com
Facebook ► / thecherno

Пікірлер: 435
@Grand_Priest_Goku
@Grand_Priest_Goku 4 жыл бұрын
"There are very few rules in C++" compiler: *"you have 9001 errors in your code"*
@xrafter
@xrafter 4 жыл бұрын
9001? Wow thats alot
@Trueblue4ever559
@Trueblue4ever559 4 жыл бұрын
@@xrafter Indeed, IT'S OVER NINE THOUSAND!!!
@xrafter
@xrafter 4 жыл бұрын
@@Trueblue4ever559 I don't see that amount in my life
@TowelGamingHammer
@TowelGamingHammer 3 жыл бұрын
There's no way that can be right!
@jojodroid31
@jojodroid31 3 жыл бұрын
*program is literally Hello, World!*
@resantic2256
@resantic2256 7 жыл бұрын
Lmao, even got logo on the pillow
@bruhdabones
@bruhdabones 5 жыл бұрын
Resantic It’s so bright, I almost think it’s edited in
@Galiskaend
@Galiskaend 3 жыл бұрын
Automamada
@voze1905
@voze1905 7 жыл бұрын
Jesus christ, the production quality just went through the roof. I really hope that this series gets more attention.
@DylanCurzon
@DylanCurzon 7 жыл бұрын
I know right!
@TheCherno
@TheCherno 7 жыл бұрын
Glad you're enjoying it! It feels much better to be producing higher quality content, much more satisfying :)
@NexGenSlayer
@NexGenSlayer 6 жыл бұрын
You should market your videos through blogs and other resources to get more views because everyone is right when they say you have probably the best (highest quality) programming tutorials on KZbin
@Bodybuilder900ml
@Bodybuilder900ml 2 жыл бұрын
No swearing please ⛪️
@Bodybuilder900ml
@Bodybuilder900ml 2 жыл бұрын
No swearing please
@sonictimm
@sonictimm 5 жыл бұрын
"There are very little rules in C++" ...Until you start pushing your code to the company repo.
@47Mortuus
@47Mortuus 4 жыл бұрын
Sorry, didn't know your company is a part of C++
@patricktorgerson5810
@patricktorgerson5810 7 жыл бұрын
I've been programming as a hobby for 5 years now and know all of this stuff, but I still find it entertaining to watch. I really wish you were making these when I was first starting out, you do a very good job of explaining, and go into thing that most people leave out. Nice job, keep it up!
@lewisb8634
@lewisb8634 7 жыл бұрын
Patrick Torgerson Same here, but for about 2.5 years. I know everything that has been covered so far, and I imagine I'll know *most* of what is taught here (there were some topics in the introduction video I know I'm not solid on), but I'm watching every minute to support Cherno and pick up any fine details and points that I will have inevitably missed :)
@MsJavaWolf
@MsJavaWolf 6 жыл бұрын
I program for 12 years, I watch those videos because sometimes new employees ask me about programming concepts, I want to improve my teaching skills.
@abbysabbydoo24
@abbysabbydoo24 3 жыл бұрын
Can you help me in my computer programming class then 😅
@davidthorvaldsen8903
@davidthorvaldsen8903 11 ай бұрын
Dude.. What a gold mine of a KZbin series! Best videos I've watched on here for a while now. I have a C++ recruitment test in a few days and felt quite lost to be honest, but now I'm finally understanding what's happening without just writing some code and pressing "build & run" (like I did with an IDE before at uni without really knowing what was happening behind the scenes)! Thank you so much my Aussie friend :) Love from Norway
@Hellbending
@Hellbending 4 ай бұрын
2024 and learning c++ and this video playlist still pops up in OTHER KZbinRS vids saying things like “Go watch this cos it’s amazing!” And they aren’t wrong, this is gold mate, bless ya haha ❤
@mixchief
@mixchief 3 жыл бұрын
No one ever reached my brain as efficiently as this guy. In a way, he really knows how to allocate memory registers in my brain, so I can remember and actually use the information stored. This is surreal.
@viatori5566
@viatori5566 3 жыл бұрын
It is night and day following along with these videos after taking a c programming class.
@tannerbeez
@tannerbeez 7 жыл бұрын
Yan, I love the production value of this series, it really makes you look professional. Great job man, love the series
@rdwells
@rdwells 2 жыл бұрын
One minor addition: If you want a bool variable to print as "true" or "false", just precede it with the std::boolalpha I/O manipulator: bool b = true; std::cout
@manfromtheoutside7227
@manfromtheoutside7227 6 жыл бұрын
You have a differnt way to teach, it make learning cpp possible for me. Peace
@muhammadhaseebmujtaba5960
@muhammadhaseebmujtaba5960 3 жыл бұрын
Exactly
@HassanSani
@HassanSani 6 жыл бұрын
You just turned a whole CS semester into an ABC kindergartner class, Thank You
@_Hadda
@_Hadda 5 жыл бұрын
This is by far the best c++ series on you tube, great job! Subscribed and notification bell on, looking forward to more!
@jamesmnguyen
@jamesmnguyen 7 жыл бұрын
This video was great. It covered the basics as well as common pitfalls like compiler specific sizes.
@dorillo765
@dorillo765 4 жыл бұрын
Dude you're making c++ possible to understand. Thank you!
@mytech6779
@mytech6779 6 жыл бұрын
Should note for those watching. An unsigned int is generally reserved for special situations where the sign would cause specific error problems, not just because you are on your last bit. For general math if you are on your last bit best practice is to use a "wider" type such as a long or float. This is to improve future maintainability and avoid weird bugs, of course there are some exceptions to the rule but they are advanced cases such as memory limited micro-controllers where single bytes really matter or very advanced high performance bare metal coding where the hardware structure is considered in data transfer and physical location.(where microsecond lags matter or the calculation takes a 10 000 core machine several months(while using nearly half of a megawatt) 5cm of wire is about a cpu cycle)
@GfastGao
@GfastGao 5 жыл бұрын
not just because you are on your last bit => Got it.
@cweasegaming2692
@cweasegaming2692 4 жыл бұрын
These tutorials are really giving me a head start before I go back to school in September. Thank you for this! I've also really wanted to switch over to Unreal from unity for a while now and this is the C++ content I've been searching for!
@jagdishannepu7179
@jagdishannepu7179 2 жыл бұрын
I am glad I found your channel... I wish any of my professors were into explaining us so patiently and selflessly. Thankyou brother!
@PROTOTYPZ
@PROTOTYPZ Жыл бұрын
Even after taking a few programming classes there's still a plethora of information here. Thank you very much Cherno for going into the little things.
@vedantchaudhari7123
@vedantchaudhari7123 5 жыл бұрын
damn! every freaking time i look up your name the freaking chernobyl disaster comes up scary af
@SantiRodriguezRuiz
@SantiRodriguezRuiz 4 жыл бұрын
"Cherno" means "black" (color) in Slavic languages. Actually chernobyl (чернобыль) is the name of Artemisia vulgaris in Russian, which is a common plant (not nuclear, but a weed) in Europe.
@DheerajAeshdj
@DheerajAeshdj 4 жыл бұрын
@@SantiRodriguezRuiz thanks wiki
@amrojjeh
@amrojjeh 7 жыл бұрын
I have never seen programming explained like this. you did a perfect job as teaching.
@general9064
@general9064 3 жыл бұрын
This Cherno c++ series is all I wanted to understand about c++. Cannot thank you enough. The clarity in your explanation is exceptional.
@Chevifier
@Chevifier Жыл бұрын
I love how this was five years ago and the production feel like this year. Just decided to learn c++
@Asiamirza427
@Asiamirza427 Жыл бұрын
Yup... just wow
@Voskos
@Voskos 19 күн бұрын
how is this going
@Chevifier
@Chevifier 19 күн бұрын
@@Voskos let's just say I've jumped into the rabbit hole, learning about the Vulkan Renderer API😅
@gameplayyt504
@gameplayyt504 4 жыл бұрын
This guy does make learning fun. Especially with the background music. And tbh i can't watch other youtubers than this one. Keep up the good work!
@theturtlepwn
@theturtlepwn 5 жыл бұрын
You are an amazing teacher! I'm an experienced programmer, but I never formally learn C++, and even though I already know what variables are, I still feel like I learned something from this video.
@TheHuggableEmpire
@TheHuggableEmpire 2 жыл бұрын
It's definitely the "only difference is size" part that gave that vibe 😁😁
@krec348
@krec348 7 жыл бұрын
Absolutely fantastic! You explain it so well, please.. PLEASE keep doing them and a big thanks!
@drulli1
@drulli1 3 жыл бұрын
Awesome way of explaining C++. I have seen quite many other tutorial, jumping directly into details. Showing first the big picture and the concepts creates lots basic understanding. Quite an eye opener, very interesting. Thanks a lot!
@jasonzhang5755
@jasonzhang5755 Жыл бұрын
Need to say that this C++ series is amazing. Love it. Please keep doing it. Many thanks!
@w3w3w3
@w3w3w3 4 жыл бұрын
Got this series linked on a subreddit. Best thing ever. Thanks;
@jp-cy1hi
@jp-cy1hi 6 жыл бұрын
Excellent explanation of what is happening at the low levels of the computers operation. This is commonly left out of other tutorials but I feel it is essential knowledge to have in order to really know what you are doing when writing code. Thanks for the great videos!
@codyverdes3289
@codyverdes3289 5 жыл бұрын
Thanks so much for making these videos. They're insanely helpful.
@MarshmallowMadnesss
@MarshmallowMadnesss 6 жыл бұрын
This totally expanded on what I've read in my self-teaching. Thanks!
@trentonclark222
@trentonclark222 5 жыл бұрын
Undoubtedly the best C++ variables tutorial out there. Keep it up.
@timetolearn5523
@timetolearn5523 6 жыл бұрын
Wow! I think it is the best video that I have ever seen about variables, very well explained. Thanks for your videos!
@Sturm14
@Sturm14 3 жыл бұрын
First of all you do this really good, keep it up. @9:22 i want to add this, 5.5 there is a double, but implicitly cast back to a float, since we assign it to a float.
@keven444
@keven444 7 жыл бұрын
Really love the new format of these videos!
@musikk7521
@musikk7521 6 жыл бұрын
This is truly a great series, the combination of visual studios view, and the facetime while explaining certain things is a helpfull change from other tutorials ive seen. Are you planning on making a video for how to understand large codebases? I started a new job recently and was overwhelmed by the size and complexity of the code, accross headers and modules. Anyways, thanks for the great videos :)
@DailyGamingLive
@DailyGamingLive 2 жыл бұрын
I have watched the first 21 videos and am rewatching from this video for the second time after also reading on a website and using an app with practice code and watching it a second time I am following along much better and even getting ahead this time! Your videos are great and I will likely be rewatching this video again later on to solidify my knowledge a bit more! Great series!
@jairambhardwaj716
@jairambhardwaj716 3 жыл бұрын
You gave me the utmost clarity of variable ❤🙏
@ZeinFakhreddine
@ZeinFakhreddine 7 жыл бұрын
This is a really good series nice job. I'm excited for the videos on pointers and references those things always confused me when trying to program in C++
@MrAlbinopapa
@MrAlbinopapa 7 жыл бұрын
Man I remember those days...because they were only two years ago. Don't worry man, pointers will click eventually. I think of them as directions to my data. Your boss asks you for some report, where is it? In the filing cabinet in the third drawer. The pointer is the address or location of my data, in this case the third drawer of the filing cabinet. With pointers, the variable that stores a pointer can be changed to point to anything of the same type ( technically anything if casted ). When you remove the report and hand it to your boss, the location of that data changes. References are basically restricted pointers. You can't reassign a reference once it's initialized, but you can change the data that it refers to. So using our scenario above with the report, the reference to the report will always refer to the report or something like a reference to the filing cabinet with all those reports. The reports inside can be changed or moved around, but the reference to the filing cabinet will always point/refer to the filing cabinet. I'm sure TheCherno will explain this much better than I have, so just wait for him if this has been clear as mud.
@TheCherno
@TheCherno 7 жыл бұрын
Yep, I'm going to make sure that video is absolutely perfect before I put it up
@wz5445
@wz5445 3 жыл бұрын
the signed and unsigned make so much sense here!!! Thank you The Cherno!!!
@juniorbytes
@juniorbytes 6 жыл бұрын
Que didática sensacional!
@dorothyglade9087
@dorothyglade9087 5 жыл бұрын
Dude, thanks for this video and this course. I'm in a C++ class in school and this course is much better than any of the content I was provided!
@theshedman
@theshedman 4 жыл бұрын
I just started learning C++ [about 2wks now]. Actually found this channel and video series so helpful. Thank you so much, man. You know how to teach. No joke. Greetings from Nigeria.
@pradeeplanka6976
@pradeeplanka6976 4 жыл бұрын
Thanks a lot. Like your compiler video this one too taught me lot of stuff. Very well compiled information. Great work.
@somewhere7565
@somewhere7565 Ай бұрын
my utter respect for u being that smart & good in explaining with 22 years old back than. i needed 8 hours just to understand the concept of variables. using ur & some other videos and writing down several definitions and examples. now watching this video again and fully understanding all of what ur saying :)
@allenguan6755
@allenguan6755 4 жыл бұрын
the quality of this video is OMG !!!! Very deep content!!! I love bro!! thx for ur teaching!
@Plasticcaz
@Plasticcaz 7 жыл бұрын
This looks like it's going to be a great series.
@a1988ditya
@a1988ditya 3 жыл бұрын
Quality playlist , content which is never shown in other similar courses
@mdksmarthome9191
@mdksmarthome9191 9 ай бұрын
This is the best series for C++ for now. Thank you from morocco ♥
@xyzcarlatino
@xyzcarlatino 6 жыл бұрын
Great videos! I am definitely going to support the channel
@faeldaug9719
@faeldaug9719 4 жыл бұрын
I'm so glad I found this channel! I want to learn game development and you're helping me so much!
@BlackJar72
@BlackJar72 7 жыл бұрын
Great series -- I can't wait for the intermediate and advanced stuff. :-)
@epiphanmushahwar6671
@epiphanmushahwar6671 4 жыл бұрын
i'm fairly confident i could watch this without audio and understand what your saying from your hand movements it's actually quite mesmerizing
@fastcomputer5927
@fastcomputer5927 2 жыл бұрын
Probably the best c++ tutorial series ever
@pwrdwnsys
@pwrdwnsys 7 жыл бұрын
Great series. thank you!
@iamjovani
@iamjovani 7 жыл бұрын
Keep up the good work bro!
@MartinBarquero95
@MartinBarquero95 3 жыл бұрын
Thanks for the hard work on teaching
@shantanuvarma
@shantanuvarma 6 жыл бұрын
I m in love with c++ , thanks cherno !!!
@utsavdahiya3729
@utsavdahiya3729 3 жыл бұрын
9:56 bool stands for bullying! Nice generated captions
@shazer4991
@shazer4991 6 жыл бұрын
Love this series
@jtfrench80
@jtfrench80 4 жыл бұрын
My second time through the series so much information I am still learning new things.
@samdavepollard
@samdavepollard 3 жыл бұрын
totally agree Kind of amazed at how much extra I'm getting from a 2nd viewing
@ghastcrazy5918
@ghastcrazy5918 2 жыл бұрын
Great guides so far! thank you for all you do man :)
@jamesfox8930
@jamesfox8930 5 жыл бұрын
best c++ videos ever man thank you brogami
@muhd_hafizudeen
@muhd_hafizudeen 6 жыл бұрын
I'm actually wanting to learn about block variables, static variables, function variables etc, but ended up learning about data types :') Anyway, good quality video.
@chalkchalkson5639
@chalkchalkson5639 7 жыл бұрын
This video looks a lot better! Keep it up!
@sanjayreddy3295
@sanjayreddy3295 3 жыл бұрын
Absolutely amazing content. Thank you Cherno :)
@tannishkmankar3998
@tannishkmankar3998 Жыл бұрын
This tutorial is amazing and you are really good at teaching !! great job sir !
@extonsthelock7389
@extonsthelock7389 7 жыл бұрын
I'm here ... i love this series
@choosyguytest719
@choosyguytest719 5 жыл бұрын
Fantastic! great videos, thank you!
@MrSmileyFella2
@MrSmileyFella2 4 жыл бұрын
Got finals tomorrow online during this lockdown and I dont have a textbook or anything, so this really helps. thank you.
@neberard
@neberard 5 жыл бұрын
Wow, your videos are amazing. Thank you for making these! Any chance you could discuss what happens when you try to exceed the maximum value in a 32-bit integer? (If you haven't already.)
@meh1672
@meh1672 7 жыл бұрын
Nice living room :) Love the series!
@TheSim00n
@TheSim00n 7 жыл бұрын
136 up, 0 down. That's telling of good this series is. Keep it up!
@Bloglalo
@Bloglalo 2 жыл бұрын
I love you Yan, this series is a masterpiece!
@nooruddin7721
@nooruddin7721 3 жыл бұрын
you has made able to understand what we want learn and probably you have taught us more...
@kamalmoustafa318
@kamalmoustafa318 3 жыл бұрын
This is amazing! Ty
@emmink9434
@emmink9434 Жыл бұрын
love the explenation!
@mistervoldemort7540
@mistervoldemort7540 7 жыл бұрын
I'm dissapointed, he didn't do "VROOOM" at the end
@juniorbytes
@juniorbytes 6 жыл бұрын
Também senti falta! hahaha
@SalmanKHAN.01
@SalmanKHAN.01 Жыл бұрын
Worked , thanks a lot!
@cancetin2652
@cancetin2652 3 жыл бұрын
Thank you for this lesson
@omeletotheegg
@omeletotheegg 2 жыл бұрын
These tutorial's clearly not for starters, but for those who do code already but want to know what's actually happening behind that, and it's just what I need, thank you
@amp2amp800
@amp2amp800 3 жыл бұрын
I'm 64 next month been a pro C++ programmer since it was invented, and C before that. I just LOVE the way you can lie through your teeth to get to the central truth, and sidestep the the baggage. That's how to teach! I mean the accurate truth is that the only difference that matters between built in types is the compiler type checking, but if you only have one simple message to give... yep "size" is a better "take home" answer for the student! A physical thing trumps an abstract one, you dont confuse half the class... AND you don't have to say "another video later about that"... again(!) LOL. Keep it up Cherno I really like your stuff.
@zohahs5276
@zohahs5276 Жыл бұрын
Thanks for these videos Cherno++
@saeedahmedsheikh231
@saeedahmedsheikh231 5 жыл бұрын
Incredible way of teaching I m so inspired Keep on dear.....
@yefever_6911
@yefever_6911 9 ай бұрын
Awesome vids, bro
@ArielVolovik
@ArielVolovik 5 жыл бұрын
Great video man
@abhimanyuattrish
@abhimanyuattrish 5 жыл бұрын
Best youtube channel for c++ and game dev
@ericsankey5756
@ericsankey5756 Жыл бұрын
Hey thanks for these videos! My teacher has me watching them!
@hasnaa7316
@hasnaa7316 Жыл бұрын
DUDE , you're SO GOOD
@Zerefse
@Zerefse 9 ай бұрын
thank you, this video adds to my knowledge
@sickysore
@sickysore 7 жыл бұрын
Thanks. Very informative.
@Sharess
@Sharess 7 жыл бұрын
this series so far, is one of the best teaching series ive seen so far. Once i get my first paycheck ill supp you on patreon man, you explain this a milion times better than any other teacher whom i met trying to explain c++
@MrAlbinopapa
@MrAlbinopapa 7 жыл бұрын
ChiliTomatoNoodle does a pretty good job IMO. You should check out his stuff if you want a follow along graphical experience. Chili's tuts are geared toward making games, simple ones at first like Snake and Arcanoid clones.
@musikalniyfanboichik
@musikalniyfanboichik 3 жыл бұрын
@@MrAlbinopapa i'm a bit too late, but thanks anyway x)
@MrAlbinopapa
@MrAlbinopapa 3 жыл бұрын
@@musikalniyfanboichik yeah, I'd say 3 years is a bit late, but no worries. Looks like I was just promoting my favorite KZbin creator.
@PANKAJGUPTA-cm7zg
@PANKAJGUPTA-cm7zg 4 жыл бұрын
Once again ... Full of energy ... Thanks for the video .. Love from India.. :)
@dogbreth7
@dogbreth7 7 жыл бұрын
These are really great videos. I do have to say though that having some sort of graphical representation of what you're talking about can go a long way, especially when talking about memory.
@leixun
@leixun 4 жыл бұрын
*My takeaways:* Define variables using pointers and references 12:30
@evilprince2009
@evilprince2009 4 жыл бұрын
I'm tempted to learn C++ again watching this series. This is masterpiece.
@forhadrh
@forhadrh 2 жыл бұрын
I know you from Quora! ;)
@jameszack7158
@jameszack7158 2 жыл бұрын
Well done
@faridamohamad1019
@faridamohamad1019 Жыл бұрын
Thank you❤
Functions in C++
9:50
The Cherno
Рет қаралды 488 М.
Harder Than It Seems? 5 Minute Timer in C++
20:10
The Cherno
Рет қаралды 146 М.
Универ. 13 лет спустя - ВСЕ СЕРИИ ПОДРЯД
9:07:11
Комедии 2023
Рет қаралды 6 МЛН
Increíble final 😱
00:37
Juan De Dios Pantoja 2
Рет қаралды 104 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:19
CRAZY GREAPA
Рет қаралды 21 МЛН
Luck Decides My Future Again 🍀🍀🍀 #katebrush #shorts
00:19
Kate Brush
Рет қаралды 6 МЛН
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 283 М.
String Theorists Have Calculated the Value of Pi
7:10
Sabine Hossenfelder
Рет қаралды 122 М.
Global Variables in C++... not as easy as it seems
18:25
The Cherno
Рет қаралды 59 М.
REFERENCES in C++
10:13
The Cherno
Рет қаралды 562 М.
CONCURRENCY IS NOT WHAT YOU THINK
16:59
Core Dumped
Рет қаралды 87 М.
POINTERS in C++
16:59
The Cherno
Рет қаралды 1 МЛН
I Rewrote This Entire Main File // Code Review
16:08
The Cherno
Рет қаралды 129 М.
Faster than Rust and C++: the PERFECT hash table
33:52
strager
Рет қаралды 519 М.
you will never ask about pointers again after watching this video
8:03
Low Level Learning
Рет қаралды 2 МЛН
WHY did this C++ code FAIL?
38:10
The Cherno
Рет қаралды 177 М.
Универ. 13 лет спустя - ВСЕ СЕРИИ ПОДРЯД
9:07:11
Комедии 2023
Рет қаралды 6 МЛН