How C++ Works

Поделиться
HTML-код
  • Опубликовано: 6 июн 2024
  • Twitter ► / thecherno
    Instagram ► / thecherno
    Patreon ► / thecherno
    Series Playlist ► • C++
    How the C++ Compiler Works ► • How the C++ Compiler W...
    How the C++ Linker Works ► • How the C++ Linker Works
    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
  • ХоббиХобби

Комментарии • 1 тыс.

  • @samdavepollard
    @samdavepollard Год назад +168

    I was at school when pocket calculators first appeared.
    Now 65, sitting here on a Saturday morning, learning c++ from a young man who's worked in the games industry. Amazing what is possible on the internet.
    I remember when the only hope you had of learning this kind of thing was getting hold of a good book (and that was when libraries closed early on Saturday and were closed on Sunday)
    Many Thanks for sharing your knowledge.

    • @mastershooter64
      @mastershooter64 Год назад +14

      When I was in school smartphones came along, The knowledge of the world in the palm of your hand! I bet when I'm 65 We'll have room temperature quantum computers in our homes

    • @SecuredConnection-jg7yv
      @SecuredConnection-jg7yv 15 дней назад

      @@mastershooter64 When I'm 65, I'll most likely be immortal because of how rapidly AI and tech is evolving ((14 btw))

  • @daylen577
    @daylen577 7 лет назад +1094

    Damn dude, it's insane to see how you've gone from doing some low quality code rambling to neat, organized and well edited professional tutorials, and from a couple hundred to over 50k subscribers! Great job man, you've helped me tons in the past, keep doing what you're doing!

    • @jrippee05
      @jrippee05 5 лет назад +13

      What'd you expect, he's not an armature. He's a pro! Don't forget it. And it is Mr. Dude. Get it right! "Respecto, holmes. You have to give it, to get it."

    • @dylanpatel9295
      @dylanpatel9295 4 года назад +3

      150k now!

    • @jscorpio1987
      @jscorpio1987 4 года назад +11

      Douchbag alert! James R, take your own advice, you pretentious asshole! The guy was just giving a compliment. The way you tell people what they should have said, you might as well just write everybody’s comments for them so you approve.

    • @moar-chan1060
      @moar-chan1060 4 года назад +13

      @@jscorpio1987 It's Mr. James R to you sir.

    • @ron3060
      @ron3060 4 года назад

      How did he become so good?

  • @freeman1884
    @freeman1884 5 лет назад +550

    I've done C++ for years. And yep, I didn't know how C++ works. Thank you!

    • @mrreflecting4691
      @mrreflecting4691 3 года назад +17

      I said "whhaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaat"

    • @z1lla4
      @z1lla4 3 года назад +7

      @@mrreflecting4691 I said
      "wwwwwwwwhhhhhhhhhhhhhhhhhhhhhhhhhhhhaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaatttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt"

    • @mastershooter64
      @mastershooter64 3 года назад +18

      billions of people use smartphones but they don't know how it works, they don't know the physics behind it

    • @69bruh
      @69bruh 3 года назад +18

      @@mastershooter64 ... physics... mhm

    • @mastershooter64
      @mastershooter64 3 года назад +1

      @@69bruh what?

  • @thedreameater
    @thedreameater 5 лет назад +1414

    Udemy ad: "Hi! Would you like to pay for some crappy, inferior class to teach you what you're learning here for free?"

    • @martingaens2073
      @martingaens2073 4 года назад +32

      duuude exactly. I'm getting Udemy ads 9 months later still

    • @unlikelysalmon786
      @unlikelysalmon786 4 года назад +85

      I got one for Python.
      Fucking python.
      On a cpp tutorial.

    • @andreidodu5581
      @andreidodu5581 4 года назад +3

      Use Add block dude.

    • @hokhyt
      @hokhyt 4 года назад +89

      @@andreidodu5581 I usually use ads block, but whenever I watch the Cherno video I don't activate it so that he can get ad revenues.

    • @glpinho
      @glpinho 4 года назад +49

      @@hokhyt

  • @thetutbanana
    @thetutbanana 4 года назад +17

    I have watched manu C++ tutotials on youtube in my professional career and I have never come across anyone who can do such a great job at breaking down complicated concepts into a very concise and easy to follow short lectures. You helped me to really understand how this stuff works. I wish that my university professors who taught/teach programming had half of teaching talent you have. Thank you!

  • @themodernshoe2466
    @themodernshoe2466 7 лет назад +54

    I love that you're going into all the details of IDE shortcuts and structure as well as C++ technicalities. Keep it up!

  • @nailbomb420
    @nailbomb420 7 лет назад +28

    Liking the quality of this series - you seem to have really upped your game. Love the ambient music, cool touch :)

  • @SlipperyBrick89
    @SlipperyBrick89 6 лет назад +14

    Dude this is high quality stuff! I'm studying Computer Games Development at University and have learnt more from your C++ series than I have all year! Really looking forwards to digging into your OpenGL series. Thanks so much for bringing this great content man and please keep it up :D

  • @user-qi6fj4gy1j
    @user-qi6fj4gy1j 7 лет назад +14

    This is probably the best programming tutorial I've watched! It explains everything! Keep up the good work.

  • @cryptosecuritytools
    @cryptosecuritytools 3 года назад +154

    I found Cherno yesterday and coming in, my thinking was that C++ was super hard core and probably beyond me at this point. I have to say, after watching this video, I understood everything. I'm not saying I'm smart, I am saying this dude is a great teacher. Clarity, repetition, efficiency of explanations. I am almost thinking C++ might be a better first language to learn than Java. I've learned the basics of Java already as part of my bachelors degree. At this point I'm on the fence about which way to go. But if the lessons are like this one, I don't see C++ being that scary hard language to learn that everyone says it is. And that would be a testament to the teacher. Great work.

    • @SwagHorse
      @SwagHorse 3 года назад +15

      I learned C++ as my first language and altough it was quite tricky to wrap your head around some of it’s concepts in the beggining, it made it really easy for me to later learn new languages such as Javascript and Python.

    • @hulk6315
      @hulk6315 2 года назад +6

      Hey quite a lot of time passed
      Update would be awesome

    • @intuit13
      @intuit13 2 года назад +4

      yea, late reply here....but Java as a first language has been considered a pretty bad idea for quite some time now. But don't get me wrong, I'm not one of those folks who thinks if you start off in the "wrong" language that you're RUINED FOREVER (!! -- seriously, some ppl think like this). Java is cool. I think the top2 languages for first timers atm would be Python (by a huge margin) or C (for the "bottom-up" approach).

    • @identitymatrix
      @identitymatrix 2 года назад

      Actually I think Python is best to learn first, which I luckily did. I think C++ ist more important than Java so I am actually planning on learning C++

    • @mcbedo6568
      @mcbedo6568 3 месяца назад

      @@intuit13 started off with C as part of my bachelor's degree. Makes it way easier to grasp C++ in my opinion. Using Python as a starting point works but the way it's written (and in some cases the way it works) is pretty different to C++. I'd recommend it as a starter but not if your final aim is learning C++.

  • @JFP-Knives
    @JFP-Knives 2 года назад +12

    After many tries to get into coding, I again started an approach and found your series here. Well done! As you start with the basics, it feels like it gives me the right entry point to finally understand some fundamental layers I didn't have in the past. So my hope now is, to finally get deeper into coding. Good job!

    • @thechosenone729
      @thechosenone729 9 месяцев назад

      Once you are past tutorial level throw tutorials into trash and start working on your projects tutorials are going to help you with basics but after that you need to start working on your own with help of google maybe but tutorials shouldn't be part of your daily life anymore.

  • @ultrawelfaredev
    @ultrawelfaredev 7 лет назад +13

    Wow TheChernoProject, I just currently came along this video and I must say it got my attention. Even though I like to code in C# (as a hobby in my free time, I am not any professional or something), after watching this video you really caught my interest in watching how the whole c++ thingie works and how everything in programming ties together to create an executable file. I was so hyped watching on how the linker and the compiler works, but then saw that they are coming soon and this video just came 4 days ago. However I subscribed and turned on notifications so I don't miss the next one. Keep up the good job, you're awesome! :)

  • @rogerasupply942
    @rogerasupply942 6 лет назад +265

    Wow dude... just wow.
    I was about 12 or 13 when I first heard of C++... I had found out that its used for video games which instantly struck my interest... but it wasnt until I was about 16 or 17 that I started dabbling in it and I thought it was too difficult for me to understand, and I thought you had to be extremely smart.. I am now 19... and have no idea where my life is going, I have always LOVED the idea of writing my own code, because its the closest thing to actual magic.. I’ve recently started trying to understand the concepts of c++ and how it all works.. I have a basic understanding of it all, and I really really wanna learn it. I’m going to go to college to get a BA in computer science. Whether I help make the next AAA title, or the next microsoft... I just want to code.. I’m very entrepreneurial as well so I don’t see myself working for someone
    This is the first tutorial of yours that I’ve seen, and you made me understand the most basic c++ program even more than before. I’m looking forward to watching the rest of this series and I hope you continue it.

    • @arcticheroh
      @arcticheroh 5 лет назад +16

      I personally would have started with Python as the first language. The simplicity of its syntax really helps new developers.

    • @hitlard5305
      @hitlard5305 5 лет назад +2

      How's programming going?

    • @TantawyAhmad
      @TantawyAhmad 5 лет назад

      @@LeeroyFan101😂😂😂

    • @studyagain8701
      @studyagain8701 4 года назад +2

      im 19 too and i feel like we twins because everything you said was like me talking about my life but i actually went for civil engineering but still wanna learn C++

    • @SameerKhan-nd5qb
      @SameerKhan-nd5qb 4 года назад

      @@studyagain8701 Me too bro

  • @ilikeshred
    @ilikeshred 7 лет назад +16

    I really love how you explain things. It's very precise and simple. I really need to thank you for that :)! Keep up the good work.

  • @Jackaldev
    @Jackaldev 4 года назад +7

    Your videos should have been the first thing that popped up when I searched C++ tutorial. I went through a 100 video course that skimmed over very important concepts I wish I learned sooner. You're doing a great job!

  • @DigitalAwareness
    @DigitalAwareness 6 лет назад +2

    Just started this series and loving it. You explain things so well, it makes it so much easier to grasp and learn. thank you so much.

  • @thelowendstudio
    @thelowendstudio 2 года назад +9

    "Compiler trusts you.."
    finally someone who trusts me:')

    • @thelowendstudio
      @thelowendstudio 2 года назад

      @Ahmed M :')

    • @kti5682
      @kti5682 Год назад

      Just turn on warnings with -Wall -Wextra -Wconversion and you will see how much the compiler really trusts you by showing you how many checks it performs.

  • @zuhairmehdee
    @zuhairmehdee 7 лет назад +4

    Woah man, you have improved so much from before, its amazing. Keep up the good work.

  • @jerrylin5089
    @jerrylin5089 5 лет назад

    I love how your videos contain epic background music. It makes your tutorials and explanations significantly more engaging than anything else I have seen on youtube.

  • @primarycachemusic3237
    @primarycachemusic3237 6 лет назад +2

    Thank you so much for this video series! It is helping me connect so many dots in game and general programming - concepts that I couldn’t quite grasp from others’ explanations - much appreciated!

  • @socheddar3709
    @socheddar3709 2 года назад +7

    Just wanted to say thank you. I tried coding when I was a teen but failed and quit (there was no RUclips back then). My son is interested and I thought we could learn together. Your videos are very well explained and I really appreciate the effort that you put into you videos.

  • @sommarbee6101
    @sommarbee6101 3 года назад +4

    this is series is great so far. I have zero experience in programming, and you've explained everything so well so far. I dont feel lost. thank you!

  • @ComplexFailure
    @ComplexFailure 6 лет назад

    This video helps me understand all of the stuff my professors just kinda brushed over in their lectures I love it! This is the first time I've seen this channel, but I am already a loyal subscriber! Please continue to output this quality content!

  • @mirthemw
    @mirthemw 2 месяца назад

    The way you anticipate the questions is really nice, and I like the way you talk. Very nice quality, looking forward to watching your other videos!

  • @BeatSmokerFactory
    @BeatSmokerFactory 7 лет назад +3

    i have been watching ur Videos for a few years now but you reached a New quality level with this Video. very nice :)

  • @pablovent8059
    @pablovent8059 7 лет назад +4

    Thanks for your videos; they're very good. Please continue with the C++ series.

  • @meh1672
    @meh1672 7 лет назад +6

    Your tutorials are amazing!!! Thank you so much

  • @alangauld6079
    @alangauld6079 4 года назад +5

    I’ve been using C++ for 35 years but that’s one of the best intros I’ve seen, couldn’t have done it better myself.

  • @bluesillybeard
    @bluesillybeard 2 года назад

    This is the best tutorial series for C++ in existence..
    No seriously, this guy is the ultimate tutorial master! The way he explains things is extremely easy to follow and understand!

  • @visuallization
    @visuallization Год назад

    I think this is the first time, I hear someone explaining as simple & understandable as possible, how compiling and linking works in cpp! really great videos!

  • @unrealdevop
    @unrealdevop 3 месяца назад +3

    All I can say is that these are hands down the best C++ videos I have came across. Nobody else even comes close.

  • @SimarMannSingh
    @SimarMannSingh 5 лет назад +135

    So, I am a working professional. But I had to teach a friend of mine, the basics of C++. For that, I was looking for some easy videos.
    Man, This guy explains so well.
    One thing is for sure when I get married and if I have kids and if they choose to become a Software engineer, this guy is the one I am gonna send my kids for tuitions.

  • @mrgetrext297
    @mrgetrext297 2 года назад

    I've watched so many courses on different programming languages, and they're always so boring, they don't engage me and keep my attention, but everyone of your videos have held my attention and I'm so thankful to have you as a resource.

  • @timizzard4317
    @timizzard4317 4 года назад +2

    I appreciate your videos, very thorough, concise and organized! ive been learning alot about c++ because of you and these videos

  • @sgtrumbi2265
    @sgtrumbi2265 7 лет назад +17

    Excellent video. I know C++, but I love the way you teach this -> I watch it. Can't wait to see more and getting into more advanced topics (maybe some topics like engine design, optimization or targeting multiple platforms...). When can I expect some of these topics to come (if you plan on making a video about them)? (take your time, I fully understand that you want to teach C++ from the very basics, I am just interested... ^^) Thank you for this video and keep up the good work, looking forward to the next episode. :)

  • @aubb7126
    @aubb7126 5 лет назад +8

    Why did it take so long to find this course through youtube search?? Thank you so much!

  • @dankusanovic
    @dankusanovic 4 года назад

    Cherno, I haven't seen so far such a great explanation of how C++ works! Thanks for the video. Watching and liking your videos from now on.

  • @naughtrussel5787
    @naughtrussel5787 6 лет назад

    This video left me speechless. Very, VERY useful, brief and qualitative. One of rare treasures on RUclips. It's a big luck for us to have such vids, so we can learn complicated stuff in such pleasant way (remember those old youtube screencasts made on mobile camera and that murmuring). Good-looking guy with nice recording stuff and speech together with laconic information mixed with really suitable background music. It seems I have no way not to learn c++ :-)

  • @voze1905
    @voze1905 7 лет назад +7

    I DONT WANT TO WAIT FOR THE NEXT VIDEO PLEASE.

  • @juleswinnfield1437
    @juleswinnfield1437 4 года назад +7

    Damn man, starting to learn C++ this week - what an exceptional video! Can’t wait to binge your entire series.

    • @TeeHeeWinning
      @TeeHeeWinning 3 года назад

      did you learn c++???

    • @juleswinnfield1437
      @juleswinnfield1437 3 года назад

      @@TeeHeeWinning I didn't... However please don't let this put you off. I didn't because I was a Python programmer and was learning C++ for the wrong reasons, and so my motivation failed me, or itself. I'm waiting until I get a project idea and then I'll learn around that. If you know one programming language well, the rest fall in line. Good luck :)

    • @juleswinnfield1437
      @juleswinnfield1437 3 года назад

      @axedow Sorry I didn't see this notification. I always wish people replied to these comments, looks like it's a RUclips problem. See my other reply if you're still interested :). Hope you're well.

    • @TeeHeeWinning
      @TeeHeeWinning 3 года назад

      @@juleswinnfield1437 The only programming language I’m decent at is the lua version of roblox. My motivation for learning c++ is to learn how to make ESP in other games. Cuz I don’t really know what else I would do with c++. Anyways good luck with learning more languages.

    • @juleswinnfield1437
      @juleswinnfield1437 3 года назад

      @@TeeHeeWinning Funny you should say that, because I was originally learning C++ to make cheats for CS:GO. It didn't work out for me, as understanding the tricky aspects of C++ is hard, especially for a kid tryna make CS:GO cheats. People learn differently though!

  • @krisitak
    @krisitak 5 лет назад

    What a great channel... I'm in awe. The quality of editing is great! You deserve even more subscribers!

  • @NeoKailthas
    @NeoKailthas 3 года назад

    This is so amazing. I wasn't looking to learn about how C++ works right now but this was so engaging and informative. I was hooked the whole time. well done.

  • @loryon
    @loryon 7 лет назад +6

    Excellent video ! That was extremely helpful. This basics stuff is so poorly taught in most tutorials.

  • @dmaster20ify
    @dmaster20ify 6 лет назад +14

    The man said that the compiler will trust us! Classic.

  • @shikharmishra1
    @shikharmishra1 4 года назад

    The explaination is so neat! Really helped me understand what compilers and linkers do. I am definitely going to check out the in depth videos !

  • @bencraig638
    @bencraig638 5 лет назад

    I'm taking an online intro to programming class, and you are so much more helpful than my professor! Thanks for your uploads!

  • @mrclucky1516
    @mrclucky1516 4 года назад +8

    Dude, I just have to say THANK YOU!! I've been struggling to learn C++ on my own for a length of time which I'd rather not admit lol and sometimes books and forums just don't cut it. I've been looking for something exactly like this for so long, and here it finally is. So far I've only watched this and your video on templates, but you have a knack for explaining things in such a way that it's all finally starting to make sense to me. So again, thank you for the awesome content.

    • @gamejochie5204
      @gamejochie5204 4 года назад

      Bro just download solarlearn :/ or run of on youre browser.

  • @mohammadfathi5205
    @mohammadfathi5205 7 лет назад +4

    that was nice. just like always.

  • @aniketphatak951
    @aniketphatak951 5 лет назад

    love the depth of your tutorials!

  • @Cynokine
    @Cynokine 7 лет назад +2

    Really like this new series, I can see all the work you put into it so that it becomes a reference in the future. Good plan imo. Looking forward to learn things though :P

  • @kelticvibe
    @kelticvibe 4 года назад +7

    Love the background music - is this a playlist you have. could you drop artist in here?

  • @lukenukem8028
    @lukenukem8028 7 лет назад +4

    Hail, Cherno!
    Woo! I now have VS 2017. I certainly have been enjoying VS 2015.
    VS 2017 looks way better and is way cooler.
    I love your video style, the quick short talks with cuts and the music.
    (5/5)

  • @tttmarcel2777
    @tttmarcel2777 4 года назад

    Cherno you deserve more subscribers, this stuff is crazy good. The style is actually pretty cool too.

  • @kuriatsu
    @kuriatsu 3 года назад +2

    I've been trying to learn a coding language for years. This stuff is actually making sense and I can actually make decent notes. Thank you for explaining this stuff simply.

  • @sanjacobs6261
    @sanjacobs6261 2 года назад +4

    The music here makes me feel like I'm planning to sneak into a top secret military base

  • @stevewagner5036
    @stevewagner5036 4 года назад +3

    Thank you for this great video! I have a question: instead of a declaration of a function in another file, can you use #include and then the file name? What if you had a file with ten functions, do you need to declare each function, or can you just #include the file containing the ten functions?

  • @PneumaLights
    @PneumaLights 2 года назад

    dayum, you are a life saver! providing such background music was very ingenious touch - puts you in a state of productive trance

  • @RandomGuyyy
    @RandomGuyyy 7 лет назад

    Loving the detailed pace

  • @exoticcoder5365
    @exoticcoder5365 3 года назад +4

    Your background music is saving my life, thanks for making "easy to swallow" videos for average audience like me 🙏🏻 the music is making me more focused on the content, other channels without music is boring and easy to be distracted

    • @soulninjadev
      @soulninjadev 3 года назад +3

      omg exactly, the music blends in with the tension of the explanation sooo well

  • @ThinkingPenguin
    @ThinkingPenguin 7 лет назад +22

    MORE MORE MORE!

  • @juancornejo1476
    @juancornejo1476 4 года назад

    Great job! I was completely lost before watching this video, even though I am attending C++ classes. Thank you and continue doing what are you doing

  • @furqansial6975
    @furqansial6975 5 лет назад +2

    Amazing Work ! this is the best tutorial I've ever seen on youtube.

  • @doctor60fps43
    @doctor60fps43 7 лет назад +4

    Great explanation. Thank you.
    What is the name of music in background?

  • @user-xc5xf8gp8n
    @user-xc5xf8gp8n 4 года назад +11

    summary:
    Our code gets translated into a binary, and the binary can be either a library or an executable file.
    x86 = win32
    There are 2 main options that we can choose when building our code in visual studio. One is the platform, and one is the mode of building.
    Platform refers to the operating system that we are targeting our app for. It can be either android, windows, mac(?) and so on.
    Mode of building refers to whether we are building the executable file in debug mode or release mode. Building on release mode runs much faster than debug mode, but is less helpful when debugging. For devlopers until the release of the game, they will be using debug mode untill the project is complete.
    For each building mode, we can see the micro settings when we right click the project and go to settings. We also take a look at the linker settings in the same window.
    The output window shows all the errors, and we are expected to debug using the information provided there. We do not want to rely on the error list, since they just display what the machine can understand from the output screen, which is too superficial for actual developers.
    #include is something that is called a pre-processed statement, meaning that it is being compiled before our main body of code. In this case, #include means that copy and paste everything in a file named to this file.
    //I believe #include command is something similar to the 'import' command that is used in python to call for modules. Cherno explains that #include is copy and pasting the file into the current file, which is exactly how a module is imported in python through *import library* command. Python also runs the whole code that is in the stated library before running our main code, if we import something from a library!
    In a project, it is very likely that we will have multiple cpp files. Those cpp files will be converted in to an object file. These have their file extensions as obj, and can be found at certain directories. Those obj files can then be stitched together using the linker.
    Cherno demonstrates how to use this kind of system. He uses the common 'hello world' code. He then chooses to define a function that prints out hello world, instead of using the common cout

    • @karanmehta5753
      @karanmehta5753 4 года назад

      thank you

    • @bluezz5002
      @bluezz5002 3 года назад +1

      why couldn't they have combined the simplicity of python with the power of c++

    • @claudedu2114
      @claudedu2114 3 года назад

      Salute!

    • @johntony366
      @johntony366 3 года назад

      Thank you very much! This was very useful.

  • @PCGamer1732
    @PCGamer1732 6 лет назад +2

    This video is extremely helpful and in depth, good stuff!

  • @saikirangattu2924
    @saikirangattu2924 6 лет назад

    the energy you show is incredible other videos make you lose interest and make you sleep, your videos are engaging and the content is amazing, great job cherno :) I can watch these videos all day long... good stuff

  • @rdwells
    @rdwells 2 года назад +5

    Finally, a C++ tutorial I can recommend to my students. Very well done.
    One minor nit: stop using std::endl. Just use '
    '. '
    ' does the same thing as std::endl, and doesn't have the side effect of flushing the output buffer. Normally this won't matter, but if you're writing a large file over, say, a very slow VPN, it can take forever. Besides, it's less to type.

  • @FaizaanDatoo
    @FaizaanDatoo 6 лет назад +226

    4:35 I wasn't paying attention and heard "Pedophiles" instead of "header files"

    • @camranh_royal
      @camranh_royal 6 лет назад +13

      same here.. been spending way too much time on pizzagate and qanon vids

    • @ChucksSEADnDEAD
      @ChucksSEADnDEAD 6 лет назад +20

      Do pedos keep their CP in a folder named Pedo Files? It's 3AM and this is keeping me up.

    • @Gizego
      @Gizego 6 лет назад +2

      Polluted mind test

    • @OddStare
      @OddStare 4 года назад +5

      Ah yes the famous Pedophiles subject of the C++ language, every developers goes through it

    • @DheerajAeshdj
      @DheerajAeshdj 4 года назад +2

      will talk about "pedophiles" in more depth. :)

  • @user-nu2sz2wg3i
    @user-nu2sz2wg3i 2 года назад +2

    One month of agony with c++ is neatly compacted in 20 min video. thanks Cherno

  • @RaymundoGabriel
    @RaymundoGabriel 2 года назад +1

    Omg, this is insane, years learning programming and nothing like this, well explained and makes you think about the real power of c++, DAAM! Thank you so much.

  • @FcSteezey
    @FcSteezey 7 лет назад +5

    For larger projects, do you still use forward declaration?

    • @MsJavaWolf
      @MsJavaWolf 5 лет назад +5

      You wouldn't do it this way normally. You declare the function in something called a header file, so you still use a declaration but in this case it's usually not called a forward declaration.
      You would have a file called Log.h and there you would write the declaration, then you would have a file called Log.cpp where you write the actual code of the log function. Then you include Log.h in all the .cpp file that use that function.
      Actually when you include iostream, you basically include all the declarations of the iostream header file, which is not that different from including header files that you have written yourself.

  • @ZombieAssassin7777
    @ZombieAssassin7777 7 лет назад +5

    Great background music choice.

  • @tntzx6311
    @tntzx6311 Год назад

    Background music and your voice made this explanation truly incredible! Thanks ☺

  • @XDrumble3
    @XDrumble3 3 года назад

    Thank you so much for the video! Never knew coding could actually be simplified in a way I understand, will be checking out more of your videos!

  • @alixaprodev
    @alixaprodev 5 лет назад +30

    *cin.get()*
    For entering any character not only enter button.

    • @Dannnneh
      @Dannnneh 4 года назад +1

      Thank you, was wondering how the enter button was specified.

    • @Deservetobedead
      @Deservetobedead 3 года назад

      Cool channel C 4 Code I subed

  • @thx4nothing
    @thx4nothing 7 лет назад +13

    What happens if you have another cpp file with another "Log" function that has a different body? Which function will be executed?

    • @zeejenkins
      @zeejenkins 7 лет назад +8

      hululu36 it will throw an error about redeclaration of a function.

    • @Plasticcaz
      @Plasticcaz 7 лет назад +17

      If you need two different log functions that have the same parameters, you need to either rename the function, or use a namespace (like the std:: thing in front of cout).
      Another thing that C++ has is function overloading, which enables you to have multiple functions named "Log" as long as they have different parameters to the function. (ie. Log(int i); or Log(char *str);)
      I'm sure Yan will cover this eventually.

    • @AgentM124
      @AgentM124 7 лет назад

      ^ ^ ^ CLIFFHANGER COMMENT ^ ^ ^

    • @Freelancerk1bbles
      @Freelancerk1bbles 7 лет назад

      there are ways to make that work, but I don't think it's important just yet.

    • @sgtrumbi2265
      @sgtrumbi2265 7 лет назад

      Maybe the linker complains about an ambiguous reference? sry, idk.

  • @AZOHA
    @AZOHA 6 лет назад

    Wonderful and neat tutorial.
    I liked the music in background. Keep going man

  • @miguelbarroso_
    @miguelbarroso_ 3 года назад

    3 years later and this still being the best C++ course! Thanks you!

  • @666CoDFREAK
    @666CoDFREAK 7 лет назад +4

    where did you learn all of this?

  • @TonyBai
    @TonyBai 4 года назад +3

    Small correction: 1:33 cout is an object, not a function

  • @AntonKimS
    @AntonKimS 2 года назад

    Just amazingly well explained! The lowkey background music is so relaxing, thus enabling better earning.

  • @17reason
    @17reason 3 года назад

    You have no idea how much this helps people man. Thank you so much. I'll hope my determination won't die in few weeks later on.

  • @cat47
    @cat47 3 года назад +3

    I feel like with a big c++ project you should just put "using namespace std;" line in the top of your code.

    • @reiter2148
      @reiter2148 3 года назад +4

      He made a video explaining why it might actually be _worse_ to use "using namespace std;".

    • @ScotHenderson
      @ScotHenderson 3 года назад

      i cant implement the solution here once i add the void function and debug .. it throws Compiler Error C2882 .. our code is exactly the same. i am wondering if things have changed since he made the video set?

    • @ScotHenderson
      @ScotHenderson 3 года назад

      @@reiter2148 link?

  • @tezza48
    @tezza48 7 лет назад +15

    I had no idea you could do cout.print(). Makes sense but woah.

    • @namanmehta5243
      @namanmehta5243 6 лет назад +5

      LOL

    • @nacl3470
      @nacl3470 6 лет назад +5

      In actually std::cout makes use of something called operator overloading. But in essence, somewhere in the iostream library is a function that does the printing. And so, writing std::cout

    • @aliterawi8427
      @aliterawi8427 5 лет назад

      Me too LOL .i was shocked ,i always hated these two arrows

    • @aliterawi8427
      @aliterawi8427 5 лет назад

      But we can't use print instead :(

    • @MsJavaWolf
      @MsJavaWolf 5 лет назад +1

      It's not code that will actually work, it's more like a mental model that can help with understanding it.

  • @12thy4
    @12thy4 3 года назад

    You've covered the topic brilliantly! It addresses the title of the video perfectly. Nothing more, nothing less! Keep it up!

  • @ryanfarrell153
    @ryanfarrell153 5 лет назад

    Where was this tutorial when I needed it haha. Great video! Gonna watch the entire series I think

  • @gabrieljohn5823
    @gabrieljohn5823 6 лет назад +6

    c++ is the hardest language when you do it youll find c# java easier atleast i did

    • @mikevasiljevs412
      @mikevasiljevs412 6 лет назад

      Pulsxr, not really. You can do faster with C++, but you can do just as much in Python, Haskell or Lisp

    • @MsJavaWolf
      @MsJavaWolf 5 лет назад +1

      There are some things that you can not do in Python, like custom memory management. Now you can say that is not really something that the user will be aware of, but then there are also some OS functions and access to hardware, that can not be done directly in Python.
      You can always write a C library and load it into Python, but that is no longer pure Python.

    • @mikevasiljevs412
      @mikevasiljevs412 5 лет назад

      MsJavaWof, you do not really need to access memory directly, unless you are confident enough you will do a better job than the GC, again trying to make things faster! Also, I am talking about working on a hypothetical problem rather than extending or interfacing with an existing solution... how many Linux kernel driver writers have you actually met in person so far? ;)

  • @creativity4395
    @creativity4395 5 лет назад +3

    int main(){
    court
    }
    is it true or false

  • @thomaszito3019
    @thomaszito3019 5 лет назад

    Wow. I found this very informative and well done, I learned a lot. The music in the background was a nice touch too.

  • @MuhammadAwais-rp8po
    @MuhammadAwais-rp8po 4 года назад +1

    i'm so amazed that i found this you tube channel, you are such a brilliant mentor! God bless you!

  • @minecraftcookie2929
    @minecraftcookie2929 11 месяцев назад +3

    Feels complicated as a beginner

  • @911bbw
    @911bbw 5 лет назад +29

    music is kinda distracting.. I feel like I'm in a mission impossible movie bahaha

  • @James-ys2dd
    @James-ys2dd 3 года назад

    Only finding this series today and its brilliant, so simple the way you explain the concepts which shows how well you know C++. Looking forward to catching up on the other 90+ videos 😂

    • @niralivaghela8510
      @niralivaghela8510 3 года назад

      Me too 4 years late😐 and I'm gonna complete this 90+ videos🙆

  • @ranjitroshan3101
    @ranjitroshan3101 2 года назад

    Thank you so muchhh! Was searching for something like this for a long time!!

  • @awesomeman710
    @awesomeman710 7 лет назад +6

    Please come into frame differently every time. Please. For me.

  • @gregorytippett9692
    @gregorytippett9692 5 лет назад +12

    Terrific tutorials, except for the distracting background music...

  • @sve560
    @sve560 7 лет назад +2

    Hi, keep up the great work. I have found your videos extremely useful, but I was recently on your game programming series, but I have seen that you haven't finished it. I was wondering if you had any intentions to resume that series because I love how you explain everything in detail in that series. You have gone so far, so don't quit now.

  • @corvidconsumer
    @corvidconsumer 3 года назад

    you make such great videos! I've only watched 2 videos and I already think that you could teach anything!

  • @ThaRSGeek
    @ThaRSGeek 7 лет назад +3

    I'm on Linux, I will be using CLion instead of CodeLite

    • @spartacuspro88
      @spartacuspro88 7 лет назад +3

      CodeLite works with Linux. I would recommend using a text editor on Linux though; like vim, emacs, atom or visual studio code

    • @spartacuspro88
      @spartacuspro88 7 лет назад

      @alexboz why would you want MSVC

    • @spartacuspro88
      @spartacuspro88 7 лет назад

      @alexboz I don't see how MinGW is any harder to use though

    • @OGBhyve
      @OGBhyve 7 лет назад

      I've tested many IDEs and text editors. I think CodeLite sucks. I'd probably go the CLion, Netbeans, or VS Code route.

    • @BlackJar72
      @BlackJar72 7 лет назад +1

      For C++ I've been using Code::Blocks, it seems pretty good. (Exception, if Qt is involved I use QtCreator, but not for non-Qt stuff).

  • @Matyniov
    @Matyniov 6 лет назад +26

    why dont you blink