C++ Header Files

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ธ.ค. 2024

ความคิดเห็น •

  • @jannikkoch4944
    @jannikkoch4944 7 ปีที่แล้ว +1920

    It's insane how well produced and executed this series is, love it! Cherno is on an entirely new level now. Keep up the good work!

    • @rcookie5128
      @rcookie5128 7 ปีที่แล้ว +5

      Yeah, totally... Kind of blows my mind. :D

    • @casiothestrong
      @casiothestrong 7 ปีที่แล้ว +14

      Novare I 100% agree. I know a bit about C++ but this is helping fill the gaps.

    • @Bluesourboy
      @Bluesourboy 7 ปีที่แล้ว +2

      100% agree

    • @009MAMAX
      @009MAMAX 6 ปีที่แล้ว +3

      I totally agree with you Novare, most of other c++ tutorials seems using the old way styles, but this dude is representing what most industries used, keep up the good work cherno!

    • @derstreber2
      @derstreber2 6 ปีที่แล้ว +2

      I agree to some extent. Lot of work has been put in that is clear. Very nicely produced. Some episodes, and this episode specifically does seem to be a little misleading in some areas. A little. For example he did mention it in passing, but a newbie could easily miss the fact that there is no difference between .h and .cpp files, you can include .cpp files inside other cpp files just fine. The naming is purely convention. Also, .cpp files need not necessarily be one for each translation unit, this too is merely a common build convention. There are other ways to build your program. Unity builds (not to be confused with the unity game engine) is another, albeit, less well know convention, where the entire program source is put into one translation unit. In a lot of cases this can speed up compile times quite a bit, because the compiler does not need to load and recompile the same files multiple times. There are also down sides however. It is a different workflow than most are use to, and usually the compiler requires a larger chunk of ram to work on everything at once, although these days, this is mostly less of an issue because dev machines often can easily fit the entire source code into ram. If it is an issue you can always split the build into 2 or more translation units and live with the speed hit.

  • @AlexCouch65
    @AlexCouch65 7 ปีที่แล้ว +2297

    "there's a child chasing the kangaroos" the most Australian thing I've ever heard

    • @des_sun1x
      @des_sun1x 5 ปีที่แล้ว +6

      161 likes and 1 reply

    • @beezow7113
      @beezow7113 5 ปีที่แล้ว +53

      And he doesn’t take .1 seconds to film it :(

    • @nguyenchuong7268
      @nguyenchuong7268 5 ปีที่แล้ว +292

      @@beezow7113 Well, the video is about headers, he's supposed to just declare that it exists, not to define it...

    • @beezow7113
      @beezow7113 5 ปีที่แล้ว +25

      Nguyên Chương dammit

    • @cole7800
      @cole7800 4 ปีที่แล้ว +40

      @@nguyenchuong7268 Well done.

  • @atomiustech1006
    @atomiustech1006 6 ปีที่แล้ว +469

    4:29 I heard "what are pedophiles traditionally"

    • @3arabs4
      @3arabs4 6 ปีที่แล้ว +24

      i thought i was the only one

    • @daverich3352
      @daverich3352 4 ปีที่แล้ว +15

      I better turn the sound down, the neighbours are going to get the wrong idea.

    • @LioncatDevStudio
      @LioncatDevStudio 4 ปีที่แล้ว +3

      Can't unheard it now

    • @ianmoseley9910
      @ianmoseley9910 4 ปีที่แล้ว

      That's because you spell and pronounce pædophiles incorrectly.

    • @justoffy.535
      @justoffy.535 3 ปีที่แล้ว

      captions say it too

  • @Neoclassicalmaese
    @Neoclassicalmaese 7 ปีที่แล้ว +130

    no lie, i went around recommending these videos to all my uni professors to use for future cpp classes. i have been through a boatload of cpp videos and no one makes them as clear and cool as Cherno. Top notch man, really top notch.

    • @blackghostcat
      @blackghostcat 2 ปีที่แล้ว +1

      Full sail university uses these now

  • @ToxicityGameDev
    @ToxicityGameDev 7 ปีที่แล้ว +698

    MY GOD, I have found the C++ goldmine!!!

  • @KostasGiotis
    @KostasGiotis 7 ปีที่แล้ว +492

    When you're watching a C++ series and it suddenly turns into a vlog.

    • @Tuho420
      @Tuho420 3 ปีที่แล้ว +3

      lmao

    • @the_zebrakat
      @the_zebrakat 2 ปีที่แล้ว

      😂😂😂😂

  • @TheSim00n
    @TheSim00n 7 ปีที่แล้ว +478

    Shiiit if you're gonna say there's a child chasing kangaroos, you gotta show us the god damn kangaroos. Great video as always!

    • @TheCherno
      @TheCherno  7 ปีที่แล้ว +171

      I like to tease ;)

    • @andrii5054
      @andrii5054 6 ปีที่แล้ว +6

      3:23

    • @ItsNat21_
      @ItsNat21_ 3 ปีที่แล้ว +45

      Someone replied to a comment like this one saying "this is a video about headers, he's just supposed to declare that it exists"

    • @manofvulture
      @manofvulture 3 ปีที่แล้ว +9

      @@ItsNat21_ goddamn that's nice

  • @ncstarr2716
    @ncstarr2716 4 ปีที่แล้ว +54

    love how this series isnt just straight coding like all the others you spend time away from the screen explaining all the concepts and features of the language you learn so much more i love it the way you explain complex problems is excellent your very talented at what your doing nice one keep it up mate

  • @thriftynick27
    @thriftynick27 7 ปีที่แล้ว +240

    You explain things a lot better than my professor in a Programming Languages class I just took. This is a great series so far.

    • @PlasticCogLiquid
      @PlasticCogLiquid 3 ปีที่แล้ว +8

      I'd like to see you after class....

    • @aquaponieee
      @aquaponieee 3 ปีที่แล้ว +4

      Same, a whole year of school didn't even teach me functions or project files or complers or literally anything, and then I see this series and there is so much stuff I didn't know already in the first few episodes

  • @GameDevTutorials2023
    @GameDevTutorials2023 4 ปีที่แล้ว +245

    I am Russian and wath your videos with subtitles
    Cherno: "Header files"
    TH-cam subtitles: "pedophiles"
    Subtitles of TH-cam is art
    Cherno, thanks you for your amazing lessons!!!

    • @qwertyls8552
      @qwertyls8552 4 ปีที่แล้ว +5

      лох

    • @amaanshaikh6868
      @amaanshaikh6868 3 ปีที่แล้ว +1

      🤣🤣😂

    • @VoylinsLife
      @VoylinsLife 2 ปีที่แล้ว +33

      I keep hearing pedophiles instead of header files hahha XD I'm glad youtube subtitles hears the same as me

    • @Aragubas
      @Aragubas 2 ปีที่แล้ว +1

      LMAO

    • @pascalladal8125
      @pascalladal8125 2 ปีที่แล้ว +3

      @@jacoba1100 Dunno about you but this exact sentence was followed by "[] I should say because really this is syphilis." This is priceless lol haha

  • @gunnaryoung
    @gunnaryoung 4 ปีที่แล้ว +102

    Imagine waking up, tied up, in a trunk, some guy looks you in the eye and says "let's go somewhere fun today" and then slams the trunk shut.

    • @msidc1238
      @msidc1238 4 ปีที่แล้ว +7

      Yeah pretty sure I was just kidnapped.

    • @TheRootBeerKing
      @TheRootBeerKing 4 ปีที่แล้ว +3

      Ooo, where are we going?

    • @mastershooter64
      @mastershooter64 4 ปีที่แล้ว +13

      @@TheRootBeerKing header files

    • @archspect4784
      @archspect4784 3 ปีที่แล้ว

      :)

    • @mealizard
      @mealizard 3 ปีที่แล้ว

      if the guy is Yan Chernikov, I am down for it. at least he'll teach me some stuff

  • @kameshkotwani
    @kameshkotwani 4 ปีที่แล้ว +32

    I usually increase the speed of tutorials by 1.25x or 1.5x since most of them talk very slow, for the first time, I had to reduce it. Excellent job. The speed of explanation is what I wanted. Lovely!

    • @vectoralphaSec
      @vectoralphaSec 2 ปีที่แล้ว +5

      when I play it at 1.5x it sounds like he says pedophiles instead of headerfiles

    • @DestroyerPal
      @DestroyerPal 2 ปีที่แล้ว

      @@vectoralphaSec to me it sound like header gods instead of header guides

    • @Yazan_Majdalawi
      @Yazan_Majdalawi 2 ปีที่แล้ว +1

      @@DestroyerPal
      I thought he said header gaurds

  • @RandomGuyyy
    @RandomGuyyy 7 ปีที่แล้ว +229

    Episode 6: Yan takes us to the park to give us the important talk about pedophiles.

    • @RandomGuyyy
      @RandomGuyyy 7 ปีที่แล้ว +23

      Seriously though, love the outdoorsy-ness in this video. It really amps up the "real person saying something interesting" perception mechanism in our heads. Kind of like going on a field trip and learning more because it's memorable or something.

    • @sing759
      @sing759 5 ปีที่แล้ว +1

      hahahahah

  • @megamacman831
    @megamacman831 5 ปีที่แล้ว +1014

    I keep hearing "pedophiles" instead of "header files"...😅

    • @xtdycxtfuv9353
      @xtdycxtfuv9353 5 ปีที่แล้ว +167

      ‘what are pedophiles traditionally?’

    • @awiseseal7559
      @awiseseal7559 5 ปีที่แล้ว +6

      @@xtdycxtfuv9353 yess

    • @JohannSuarez
      @JohannSuarez 5 ปีที่แล้ว +50

      @4:28 I swear he said pedophile.

    • @mortrus
      @mortrus 4 ปีที่แล้ว +9

      Oh shi... So tell me now how to stop hearing "pedophiles"?!

    • @TheGremlinsParadise
      @TheGremlinsParadise 4 ปีที่แล้ว +6

      I think you hear what you simply want to hear my friend.
      Played it back multiple times but i can CLEARLY hear him say "header files".
      He is talking fast though, but he never tripped saying pedophile. Its header files all the way !

  • @ChrisFotosMusic
    @ChrisFotosMusic 4 ปีที่แล้ว +75

    my parents said my uncle went to jail for being a headerfile

    • @MindOfT1m
      @MindOfT1m 7 หลายเดือนก่อน

      🤣headophile

    • @gabrielborges7909
      @gabrielborges7909 5 หลายเดือนก่อน +3

      Every time he said header files, I couldn't help hearing that other word. lmao

  • @abolfazlrezaei5397
    @abolfazlrezaei5397 ปีที่แล้ว +9

    All of the time I thought that learning CPP should be hard and suffering. but after starting this series, I realized how funny CPP is and I enjoy every time I learn a new thing from this playlist. thank you so much

  • @N3therPig
    @N3therPig 7 ปีที่แล้ว +92

    I know you're really saying "header files", but in my head all I hear is "pedophiles"

  • @neelsingha8872
    @neelsingha8872 5 ปีที่แล้ว +7

    I was reading about how to write your own header files. And I got bored. Searched it on TH-cam. Found your video. And now i am gonna watch your whole C++ series. This is the coolest tutorial video i have ever seen. Thanks. 🔥🔥

  • @nilankoor
    @nilankoor 4 ปีที่แล้ว +22

    4:30 "what are paedophiles"
    I turned on auto captions to check if that's what it picked up and it did lmao.

  • @jousboxx9532
    @jousboxx9532 6 ปีที่แล้ว +16

    This is one of the best tutorials I have watched in a while. Clear, fast-paced, and well edited. The music and scenery is icing on the cake!

  • @loryon
    @loryon 7 ปีที่แล้ว +31

    That's so well edited. You do a huge amount of work, thank you ! (btw being outside gives a nice atmosphere :) )

  • @fendoroid3788
    @fendoroid3788 7 ปีที่แล้ว +138

    0:00 Kidnapped by The Cherno :3

  • @rcookie5128
    @rcookie5128 7 ปีที่แล้ว +19

    I really like the idea of switching up your environment :D awesome editing, footage, background music (except the thunder sounds, but there's not much you can do about it :p)!
    I already know the c++ basics, but there's always something that I didn't knew. And I'm still a amateur over all, so I'm excited for the next few more complex parts of the language come into play!

  • @messycubes1755
    @messycubes1755 2 ปีที่แล้ว +2

    What I love about this guy is he does all of these tutorials for free but other people make you spend like $10 just to get what would have got if you watched like the first 10 episodes of this series.

  • @abdallahhadjallah1465
    @abdallahhadjallah1465 4 ปีที่แล้ว +8

    what the... am missing !!! what's that cherno !! insane !! these are just the few first videos and its absolutely much better than some university courses, Thanks a lot man, Really appreciate it.

  • @s1nister688
    @s1nister688 7 ปีที่แล้ว +1

    I love your style. Combining such technical tutorials with a wild environment and the nature rather than in front of a bunch of computer screens really make the videos interesting to watch and fun to learn from.

  • @georgeallen7487
    @georgeallen7487 7 ปีที่แล้ว +7

    Cherno you do nothing but good things with this channel.

  • @eldhand
    @eldhand 2 ปีที่แล้ว +1

    I love that the cc thinks you are saying pedophiles and not header files at 4:27

  • @arandomboredindividual7855
    @arandomboredindividual7855 3 ปีที่แล้ว +8

    "there's a child chasing the kangaroos"
    that child was never seen ever again

  • @divyar8402
    @divyar8402 6 ปีที่แล้ว +19

    3:20 "and some child is chasing a kangaroo" something that happens only in australia XD

  • @erin1569
    @erin1569 2 ปีที่แล้ว +3

    You and CodeBeauty are the best combo for learning C++.
    This content is incredible.

  • @edwarddelrey4243
    @edwarddelrey4243 3 ปีที่แล้ว +2

    Took an entire year of into and advanced c++ in uni and not once did I ask what #pragma once was for. I was so confused when trying to create projects on my own. Now I get it! Thanks for clearing it up!!

  • @YXalr
    @YXalr 7 ปีที่แล้ว +77

    So I'm confused, does the kid go in the header-file and the kangaroo in the .cpp -file or vice versa?

  • @Coenie-je6pn
    @Coenie-je6pn 2 หลายเดือนก่อน +1

    Man it gives me joy to see a young guy crushing it and being passionate about his profession.

  • @AbhishekNigam
    @AbhishekNigam 6 ปีที่แล้ว +3

    Absolutely love this series!! Needed something like this to reignite my interest in C++. Started off with C++, but then went off with languages like Python, JS

  • @yijirong6518
    @yijirong6518 2 ปีที่แล้ว +2

    This series are definitely going to be classic. Thanks for creating them.

  • @CantGetExp
    @CantGetExp 7 ปีที่แล้ว +6

    These tutorials are on a whole other level... Absolutely fantastic!

  • @elijaheinstein160
    @elijaheinstein160 6 ปีที่แล้ว

    The best video on c++ headers online. This concept was super confusing for me, but now after watching this video I'm crystal clear about header files. Please keep making more videos!

    • @greg77389
      @greg77389 2 ปีที่แล้ว

      All he did was explain the purpose of header files within the context of C/C++, but he didn't explain why they're actually practical. And the reason for that, I suspect, is that he realizes they aren't really practical at all anymore. The reason header files are a thing in C++ is because C had them, and the reason C had them was because computers back then had very limited memory and couldn't handle compilation of large projects without the usage of header files.
      But as he explained at the beginning, many modern languages like C# and Java don't require header files, nor do you have to copy and paste functions/definitions. You simply write the function once and you can use it anywhere, depending on the scope you assign it.
      Conclusion: Header files are dinosaurs and they suck.

  • @THExRISER
    @THExRISER 5 ปีที่แล้ว +12

    Game development?
    C++?
    I think I just found a gold mine.
    EDIT: I genuinely love how well explained everything is, even an absolute amateur like me understood everything, thank you, I mean it.

    • @THExRISER
      @THExRISER 4 ปีที่แล้ว +1

      @@ahmadayazamin3313 It's been a whole year (maybe more), I already made my first game and I'm now working on the second.
      (Also I know you're referencing that obnoxious ad.)

    • @voopie813
      @voopie813 2 ปีที่แล้ว +1

      @@THExRISER Hey there! I know this comment is very old, but was just scrolling down and after seeing it, I would like to ask: is it very hard to create your own games? This is the field I'm very interested in. Been learning C++ in school for around 2 years now, know the basics, but there are much more things explained in this video than my teacher ever explained and now looking to learn extra more at home:D
      Thanks for the answer in advance!

    • @THExRISER
      @THExRISER 2 ปีที่แล้ว +1

      ​@@voopie813 Hi there!
      Ah well, this is a very loaded question...
      Let me start by saying that up until this point, I've been using game development as a vehicle for learning C++, so I avoided using a game engine, since engines do most of the work for you, but as a result you wont actually learn programming on a fundamental level.
      So, there are two questions you should be asking to find out if game development is gonna be hard for you or not:
      1-Why do you want to make games? Is it because you actually want to make games? Or because you want to improve your programming skills?
      If it's the former, use an engine, I don't have a lot of experience with them but I used Unity during an internship and it's very easy to use, and there's a lot of support for it so you'll probably rarely get stuck, Unity and Unreal use C# and C++ for scripting respectively, so since you know C++ you should have an easy time with them.
      (There's also Godot which is a tiny engine you might like depending on your needs)
      But if it's the former, you might want to avoid using an engine, it'll be much harder since you'll have to work with graphic libraries/frameworks and write your own tools and stuff, but you'll learn a lot if your goal was learning.
      (Cherno actually made a video on this exact topic, might wanna watch that to get more insight)
      2-How high are you aiming? Engine or not, the difficulty of game development depends on scope of the game you wanna make, cuz don't forget, gamedev is not just programming, there's art, music, level design and so much more...so unless you're like me and you're making a game that has none of that, you might wanna bring a friend or two to help with art and stuff while you focus on programming, or learn those things yourself if you're passionate about them.
      So to recap: My goal up until now was C++, so I didn't use an engine, used a graphics framework library, and only made simple games like 2D platformers, top-down shooters and shmups due to my lack of experience, and since I only focused on programming, my games were lacking in terms of visual and other aspects.
      The difficulty of game development will depend on whether or not you use an engine, as well as how ambitious your games will be, there's a difference between making a simple 2D platfomer or an open-world RPG with 30 different enemy types, especially if you're a solo-dev.
      Sorry for the wall of text, I hope that answers your question, I'm curious to hear what your plans are, as well as willing to answer any other questions to the best of my ability.

    • @voopie813
      @voopie813 2 ปีที่แล้ว +1

      ​@@THExRISER Hello there
      Wow. First of all - thank you for your long and honest reply. Really didn't expect anything like this:D
      To start with, right now why I would like to create games is as you said - to improve my programming skills. Gaming is really a part of my life and because of that I would like to learn extra more and to be able to create something in the future by myself.
      Moving on, the aspects of gamedev you mentioned are well known to me, but for the beginning I would just like to create something functioning with the knowledge I would hopefully get.
      Finally, one question that bothers me: is there really a looot of hard maths when, for example, trying to create something while avoiding game engines?
      Thank you in advance!

    • @THExRISER
      @THExRISER 2 ปีที่แล้ว +2

      @@voopie813 Oh, so you're following the same path as me, neat.
      I am still interested in game development itself so I'm planning on working with an engine in the near future, just thought I'd mention that, I don't want to completely turn you off of engines, they're very handy tools that makes things quicker and easier.
      As for math, interestingly enough, whether you're using an engine or not, the math is gonna be the same two things, it's pretty much just Vectors (for moving stuff) and Trigonometry (for rotating stuff), there's more complex math needed for more complex aspects of gamedev (like graphics or physics, but you can get libraries for those and focus on other things, that's what I'd do), I personally haven't needed anything aside from vectors and trigonometry yet so yeah...
      (PS: Unity uses some 4-dimensional black-magic called quaternions to rotate objects but you can do that with Euler angles until you understand it so you're good, I know that's what I'm gonna do...)
      Don't let math intimidate you, I did struggle with it growing up (and I still do outside of gamedev) but learning math becomes so much more fun when you have an actual reason to learn and use it.
      If I were to recommend a starting point (on TH-cam) it would be:
      -"Essential Mathematics For Aspiring Game Developers" video by javidx9.
      -"Math For Game Devs" playlist by Freya Holmér (As well as a couple of cool talks she did if you're interested).
      You can just learn things gradually everytime you need them in a project, worked for me, I'm not even halfway through the first video of that playlist tbh.
      So to recap:
      -Is there math involved in gamedev? Yes.
      -Is it hard? No, especially not with fun, practical application involved.
      -Does the math differ if there's an engine or not? No.

  • @theglitchmindset2256
    @theglitchmindset2256 4 ปีที่แล้ว

    I love how you are finding ways to combine your passions

  • @Villentrethenmerth
    @Villentrethenmerth 5 ปีที่แล้ว +36

    "This is C++. You can do anything with anything."

    • @xrafter
      @xrafter 4 ปีที่แล้ว +2

      Can you?
      Because it said you cannot declare a function twice

    • @itsgalaxy2407
      @itsgalaxy2407 4 ปีที่แล้ว +1

      @@xrafter i use arch btw

  • @unsconi4948
    @unsconi4948 3 ปีที่แล้ว +1

    I looked over 3 books, one course, and this is the first place I felt the intuition behind header files

  • @Sauerbier_
    @Sauerbier_ 7 ปีที่แล้ว +23

    love your videos! btw "There is some kid chasing the kangaroos " is the most australian sentence i've heard xD

  • @blueguy5588
    @blueguy5588 4 ปีที่แล้ว +1

    Dude, thank you so much for this series. You are dragging me through my C++ course.

  • @PythBuster
    @PythBuster 6 ปีที่แล้ว +10

    11:25
    With #pragma once you will get in trouble if you declared the same class/function/etc. in different headers. #pragma once generates a unique identifier for each header, so the preprocessor will not realise (by including all headers with the same class declaration) that you already included the class declaration. sry for my bad english :/

  • @ayoubdouch6975
    @ayoubdouch6975 2 ปีที่แล้ว

    On god , this series is a gem. It is well paced and explanation are crystal clear.

  • @l1is1the1coolest
    @l1is1the1coolest 7 ปีที่แล้ว +4

    Fantastic work Chernostove!

  • @Steven-tw7iz
    @Steven-tw7iz 7 ปีที่แล้ว

    I love the out and about style! and despite the wind the quality is still top notch! Even as someone who has been programming in c++ for years I'm loving this series!

  • @Nicolas-gq9vu
    @Nicolas-gq9vu 7 ปีที่แล้ว +4

    Niceeeeeeeeeeeee ! a new cherno video !

  • @lewisb8634
    @lewisb8634 7 ปีที่แล้ว +1

    Fantastic video Cherno, these are really good. I'm glad the music isn't too loud anymore. Really clear and well explained! You're doing great just keep it up now! :D

  • @iamfishgiver1657
    @iamfishgiver1657 4 ปีที่แล้ว +3

    0:21 "Pedophiles" XD

  • @kalleskit
    @kalleskit 7 ปีที่แล้ว

    Please NEVER stop this series!

  • @mr.inconspicuous6395
    @mr.inconspicuous6395 5 ปีที่แล้ว +3

    Turn on autogenerated captions at 4:25. xD I heard it myself first time aswell.

  • @renatzkigab2616
    @renatzkigab2616 2 ปีที่แล้ว

    Header Files is soo important cause it serve as storage of some valuable snippets associated upon building highly complex programs of C++. It's really important maintening it so the main file will shorten its line of codes and would make it to feel at ease from finding bugs on it.

  • @NotQuiteMelvin
    @NotQuiteMelvin 7 ปีที่แล้ว +72

    What ARE pedophiles traditionally?

  • @fano72
    @fano72 ปีที่แล้ว

    Your way of teaching such a complex thing is so refreshing. Thanks!

  • @apollodw5359
    @apollodw5359 7 ปีที่แล้ว +5

    Is there a reason to *not* put all your functions under one header file (say, functions.h), and then just include the functions header file in all your .cpp files? Then, you wouldn't have to look in all your .cpp files for just one function, and also you wouldn't have to put down any declarations. It feels like that shouldn't work...

    • @Plasticcaz
      @Plasticcaz 7 ปีที่แล้ว +13

      Theoretically, you could put absolutely everything in one file. People don't tend to do that to make it easier to find things.
      There's a good reason not to though...
      Each cpp file is it's own compilation unit. If there are no changes to an already compiled cpp file, the compiler will skip that file when you press the "compile" button. If you add a function in a header file that is included in every compilation unit, it will force a recompilation of every compilation unit, even if that function is only used in one of them. In big projects, that is an unacceptable cost, as builds can be reeeeaaaallly long. This is probably the main reason why people don't put all definitions in one big header file.
      Hope that helped.
      EDIT: (Cut out a lot of rambling on mostly irrelevant stuff.)

    • @apollodw5359
      @apollodw5359 7 ปีที่แล้ว +4

      Yeah, that does make sense actually. Thanks!

    • @TheCherno
      @TheCherno  7 ปีที่แล้ว +11

      Apart from keeping your code more organised by splitting it up into multiple files, putting everything into a single header file means that each translation unit (.cpp file usually) is going to have to parse and compile that same code every time even a little bit of your header file changes.

  • @AgentM124
    @AgentM124 7 ปีที่แล้ว +1

    extensions are really only there to tell the user what type of file it is and to the computer with what program to open it. and of course you could use it to filter out specific types of files. But technically you can save a .h file with any extension, if you open it with the correct program (aka a text editor) it won't be any different.

  • @rj00a
    @rj00a 7 ปีที่แล้ว +3

    This series is going to blow up in popularity.

  • @soulsofwar8985
    @soulsofwar8985 2 ปีที่แล้ว

    This was so helpful. Been 5 years, but the way you explained this makes it make so much sense, thank you

  • @brokenbrain4254
    @brokenbrain4254 6 ปีที่แล้ว +3

    Love you bro

  • @AriTabriz
    @AriTabriz 3 ปีที่แล้ว

    Loved the idea of outside filming, the best explanation out there!

  • @kemptcode
    @kemptcode 7 ปีที่แล้ว +66

    Didn't see one kangaroo in this video. Unsubscribing.

    • @spiritwolf448
      @spiritwolf448 7 ปีที่แล้ว

      lul

    • @Jim-sf9qh
      @Jim-sf9qh 7 ปีที่แล้ว

      John Doe I see to many kangaroos ever week

    • @sal96ali
      @sal96ali 4 ปีที่แล้ว +1

      I'am reading an articles written by John Doe... Is that you?

    • @xrafter
      @xrafter 4 ปีที่แล้ว +1

      @@sal96ali
      Yes he is john do. Look at his name

    • @LikezYou
      @LikezYou 4 ปีที่แล้ว +1

      This guy is fake australian, zero kangaroos out of ten.

  • @tttopcattt
    @tttopcattt 4 ปีที่แล้ว

    I loved this style of heading out. Nice warm feel!

  • @bruhdabones
    @bruhdabones 5 ปีที่แล้ว +16

    On 2x speed I keep hearing "Pedophiles"...

    • @TukeShark
      @TukeShark 5 ปีที่แล้ว +1

      lol even in 1x

  • @NikkiMcMistie
    @NikkiMcMistie 6 ปีที่แล้ว

    I had IT school for 4 years. 4 years and our amazing professor never explained header files. Or anything more than cout , cin. Thank you for taking the time and effort to teach the people that want to learn.

    • @greg77389
      @greg77389 2 ปีที่แล้ว

      You weren't really missing out. Header files are damn near useless today since computers have exponentially more memory and processing power than they did back then.

  • @kuhluhOG
    @kuhluhOG 4 ปีที่แล้ว +7

    About header guards and pragma once:
    Please, if the project you are working on already uses one of the 2 types, please just makes sure to stay consistent.

  • @toddschmieder7873
    @toddschmieder7873 6 ปีที่แล้ว

    Thx a ton! Took a year's worth of c/c++, my instructor was good and extremely knowledgeable, but you break it down into simple terms Cherno! Awesome. Please keep up the excellent work. You're a huge help!

  • @deadyanothaikiropool1chait713
    @deadyanothaikiropool1chait713 7 ปีที่แล้ว +16

    I'm gonna code in the forest!

    • @Plasticcaz
      @Plasticcaz 7 ปีที่แล้ว +5

      apart from the fact I'd struggle to read my screen due to brightness, that sounds like a great idea!

    • @systematicloop3215
      @systematicloop3215 7 ปีที่แล้ว

      And what about power for your machine?

    • @Plasticcaz
      @Plasticcaz 7 ปีที่แล้ว

      I have a laptop. I could work for a good 3-4 hours I reckon.

    • @RAFMnBgaming
      @RAFMnBgaming 7 ปีที่แล้ว

      3-4 hours is abysmal, you should get a charging pack or something.

    • @explorerofworlds512
      @explorerofworlds512 4 ปีที่แล้ว +1

      @@RAFMnBgaming That's when he finds a stream and builds a generator. No big deal

  • @Chakaramba
    @Chakaramba ปีที่แล้ว

    That one's produced insanely good
    Thanks a lot for the whole series!

  • @Tomasxt25
    @Tomasxt25 7 ปีที่แล้ว +11

    Today he headed out of town xDDD

  • @JoseGonzalez-rt5fk
    @JoseGonzalez-rt5fk 4 ปีที่แล้ว +2

    0:00 Hey, that's the exact thing my friend Bill told me before closing the trunk as well!

    • @SankoshSaha_01
      @SankoshSaha_01 4 ปีที่แล้ว +1

      Is 5G signal able to reach the depths of hell? Amazing>>

  • @ravityagi635
    @ravityagi635 7 ปีที่แล้ว +6

    awesome.

  • @younesmdarhrialaoui643
    @younesmdarhrialaoui643 ปีที่แล้ว +1

    "Some child is chasing the kangaroos" is a sentence you can only hear from a an Australian.

  • @Jazkahn
    @Jazkahn 5 ปีที่แล้ว +6

    Watched this in 2x speed.
    I must say.
    I disagree with his views on "pedophiles".

    • @declanshort2012
      @declanshort2012 5 ปีที่แล้ว +1

      even without 2x speed... still "Pedophiles" lmao

  • @bbry323
    @bbry323 3 ปีที่แล้ว

    Solid energy and screen shots/walkthrough time- thanks my man- all the way from Central Florida

  • @zix3562
    @zix3562 7 ปีที่แล้ว +3

    holy fuck cherno is really close to where i live help

    • @TheOlian04
      @TheOlian04 7 ปีที่แล้ว +9

      Zix don't be that guy. Keep this information to your self. Not every one wants the Internet to know where they live.

    • @zix3562
      @zix3562 7 ปีที่แล้ว

      i mean like, i didn't say where he was

  • @thatluminary
    @thatluminary 2 ปีที่แล้ว

    I watched this video at 4:36AM, on pain killers and weed, and somehow you managed to explain it to me even while I was on another planet.

    • @bravefastrabbit770
      @bravefastrabbit770 2 ปีที่แล้ว

      Protip: quit being a bitch n ditch that weed at the very least. You can function on small dose opis to avoid withdrawal, but there's just no way you're gonna get anywhere & exceed at your true potential under the influence of psychoactive substances like THC. Studying after smoking is a fools errand and idgaf what rationalizations you come up with to justify the addiction, I've already heard them all.

  • @neelk2027
    @neelk2027 7 ปีที่แล้ว +4

    This series is encouraging me to quit College.
    (Cherno : I am ready to watch ads for this series)

  • @cupcakearmy
    @cupcakearmy 4 ปีที่แล้ว

    The information density on this one is insane. Amazing job!

  • @RedNapalm
    @RedNapalm 7 ปีที่แล้ว +14

    Might want to lower the music since it and your voice seems to be fighting for attention in my ears.

  • @juanpablogomezgarcia1835
    @juanpablogomezgarcia1835 4 ปีที่แล้ว +1

    This c++ series is outer world

  • @pawandeep313
    @pawandeep313 2 ปีที่แล้ว +1

    Why you’re so good in explaining the concepts. THANKS 🙏

  • @siddharthmalhotra555
    @siddharthmalhotra555 2 ปีที่แล้ว +1

    Hi Cherno, I usually don't comment in TH-cam educative videos but you nailed it bro need more educators like you 👌👌👌👌

  • @younesmdarhrialaoui643
    @younesmdarhrialaoui643 ปีที่แล้ว

    After watching this, my conclusion as a beginner is that either the community is just very ignorant about what header files are and unjustifiably finds them difficult, or that these video is so well made that it makes the matter seem way simpler than it really is and I might found out later on to my own despair.

  • @TacklessNebula3
    @TacklessNebula3 6 ปีที่แล้ว

    I paused this video at 0:38 & gave thumbs up as it started. Already liking the way its shot. Let's see what happens next!

  • @joelcoll4034
    @joelcoll4034 4 ปีที่แล้ว

    Thank you, I've been programming all day and you filming the video in the park helped me relax

  • @LearnerHarshalRajeshJain
    @LearnerHarshalRajeshJain 7 หลายเดือนก่อน +1

    Note: return 0 can be skipped in main only in modern cpp as it's by default, every other function must return what it says at least in debug configuration we will get warning ( may not in release ).

  • @awildtomappeared5925
    @awildtomappeared5925 7 ปีที่แล้ว

    The change of scenes really makes every subject individual and memorable.

  • @tenet-rotas
    @tenet-rotas 7 ปีที่แล้ว

    the lighting is gorgeous.

  • @exoticcoder5365
    @exoticcoder5365 3 ปีที่แล้ว +1

    hands down the best C++ tutorial

  • @agentnovazo
    @agentnovazo ปีที่แล้ว

    I love that the video that breaks the format is just 'we're outside now. Why? Because I wanted to be. Anyway, header files...'

  • @plethorex
    @plethorex 7 ปีที่แล้ว +1

    Loving the series so far, thanks for putting it together

  • @faeldaug9719
    @faeldaug9719 4 ปีที่แล้ว

    Best c++ tutorial series on youtube!!

  • @jakubunold5750
    @jakubunold5750 4 ปีที่แล้ว +1

    Great explanation! Thank you very much for this video. I've been trying to fully understand this concept for the past couple of years and rather badly implementing it in my programmes (3rd year Automatics and Robotics student), but here I have a feeling, thats finally I was able to understand it!
    Maybe one suggestions: really beatiful place to shoot, but if only there was not that much wind sound in the background :)
    Anyway - great vid!

  • @cryptex3151
    @cryptex3151 3 ปีที่แล้ว +1

    0:01 what i see before my step-dad takes me to his friends house

  • @PomegranateAmazing79
    @PomegranateAmazing79 2 ปีที่แล้ว

    God such clear expalnation and not at all boring. Deserved a sub!!

  • @roberthoople
    @roberthoople 3 ปีที่แล้ว

    After unsuccessfully breaking a single massive library into a "Brilliantly" ordered collection of smaller more manageable files, and creating a compiler list of errors that was persistently longer than 2,000 items, no matter how many times I recursively included each header in the other headers....
    Point is, thanks for helping me to 'notice' what my issue was (two months after first watching this vid).

  • @blake4865
    @blake4865 3 ปีที่แล้ว

    quite literally this is the most high quality coding tutorial I have ever seen

  • @adanvivero702
    @adanvivero702 2 ปีที่แล้ว

    Been following you since 2017 when I was just learning C++, now I'm back for some more.