How C++ Works

Поделиться
HTML-код
  • Опубликовано: 15 янв 2025

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

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

    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 Год назад +19

      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 7 месяцев назад +3

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

    • @WladylawGomulka
      @WladylawGomulka 6 месяцев назад

      @@SecuredConnection-jg7yv current AI is not real AI its far from it.

    • @SurabBarve
      @SurabBarve 6 месяцев назад

      @@SecuredConnection-jg7yv yeah then we will wake up from sleep.

    • @sazawa__
      @sazawa__ Месяц назад +1

      my guy is NOT 65

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

    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 лет назад +14

      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 5 лет назад +3

      150k now!

    • @jscorpio1987
      @jscorpio1987 5 лет назад +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.

    • @LongLiveIsrael-c7y
      @LongLiveIsrael-c7y 4 года назад

      How did he become so good?

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

    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 5 лет назад +36

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

    • @unlikelysalmon786
      @unlikelysalmon786 5 лет назад +93

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

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

      Use Add block dude.

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

      @@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 года назад +54

      @@hokhyt

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

    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!

  • @cryptosecuritytools
    @cryptosecuritytools 4 года назад +160

    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 4 года назад +17

      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 3 года назад +6

      Hey quite a lot of time passed
      Update would be awesome

    • @intuit13
      @intuit13 3 года назад +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 10 месяцев назад +1

      @@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++.

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

    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 6 лет назад +16

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

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

      How's programming going?

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

      @@LeeroyFan101😂😂😂

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

      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 5 лет назад

      @@studyagain8701 Me too bro

  • @freeman1884
    @freeman1884 6 лет назад +581

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

    • @mrreflecting4691
      @mrreflecting4691 4 года назад +18

      I said "whhaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaat"

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

      @@mrreflecting4691 I said
      "wwwwwwwwhhhhhhhhhhhhhhhhhhhhhhhhhhhhaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaatttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt"

    • @mastershooter64
      @mastershooter64 4 года назад +22

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

    • @aw1lt
      @aw1lt 4 года назад +19

      @@mastershooter64 ... physics... mhm

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

      @@aw1lt what?

  • @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!

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

    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.

  • @unrealdevop
    @unrealdevop 11 месяцев назад +7

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

  • @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

  • @alangauld6079
    @alangauld6079 5 лет назад +9

    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.

  • @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.

  • @Christian___
    @Christian___ Месяц назад +2

    My third time going through this series, I wish I could thumb it up again. Thanks Yan.

  • @JFP-Knives
    @JFP-Knives 3 года назад +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 Год назад

      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.

  • @ΓρηγόρηςΑδαλής
    @ΓρηγόρηςΑδαλής 7 лет назад +15

    This is probably the best programming tutorial I've watched! It explains everything! 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!

  • @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! :)

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

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

  • @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!

  • @SolInanem
    @SolInanem 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.

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

    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!

  • @thelowendstudio
    @thelowendstudio 3 года назад +12

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

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

    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.

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

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

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

    Finally a cpp tutorial that doesn't treat me like a dumbass, I am an intermediate coder in lua so I know a lot of programming practices and what it means, your videos are good unlike those videos who waste your time by teaching you like you never touched a computer

  • @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. :)

  • @이택영-l9h
    @이택영-l9h 3 года назад +2

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

  • @ViorelMoschoi
    @ViorelMoschoi 9 месяцев назад +4

    For those who dont run Visual Studio IDE, you need to include the log file in your main.cpp like this: #include "Log.cpp"

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

    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 :)

  • @kuriatsu
    @kuriatsu 4 года назад +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.

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

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

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

    Great scott. You have earn 1 subscriber today. I'm going through you're all the 97 c++ based videos. Thank you very much.

  • @mrclucky1516
    @mrclucky1516 5 лет назад +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 5 лет назад

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

  • @PrateekBhat-n6x
    @PrateekBhat-n6x Год назад +1

    13:09 "Just to make sure that it still works " 😂

  • @juleswinnfield1437
    @juleswinnfield1437 5 лет назад +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!

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

    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!

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

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

  • @tntzx-real
    @tntzx-real 2 года назад

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

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

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

    • @camranh_royal
      @camranh_royal 7 лет назад +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 лет назад +3

      Polluted mind test

    • @OddStare
      @OddStare 5 лет назад +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. :)

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

    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.

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

    Your tutorials are amazing!!! Thank you so much

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

    I've been coding in C++ for 6 years now and this is the first time I know these information in this video. Thanks cherno

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

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

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

    I DONT WANT TO WAIT FOR THE NEXT VIDEO PLEASE.

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

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

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

    At 17:00 , If you're compiling this code on VS Code Editor, you might get an error saying :
    error :
    c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: C:\Users\ASUS\AppData\Local\Temp\ccoFOfoQ.o:main.cpp:(.text+0x16): undefined reference to `log(char const*)'
    collect2.exe: error: ld returned 1 exit status
    Reason : We are getting this error because the text editor (like VS Code) sees different files rather than seeing it as one unit (like in Visual Studio IDE)
    Solution :
    If you have two files, 1) main.cpp (includes declaration & calling of function which is situated on other file).
    2) log.cpp (definition of the function which wil be used in "main.cpp")
    Now , use just need to add (#include "log.cpp") in the main.cpp file to include all the function defined in log.cpp at the runtime.
    also, try changing "#include log.cpp" to "#include log.h" (also rename "log.cpp" to "log.h"), So that the compiler wil take it as a header file.
    code :
    > main.cpp
    #include
    #include "log.cpp"
    void log(const char* message);
    int main(){
    log("Hello World");
    return 0;
    }
    -------------------------------------------------------------
    log.cpp
    #include
    void log(const char* message){
    std::cout

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

    Revisiting all these first videos months after starting learning C++ are so important and so much more informative. Now we can add all the pieces together and finally understand something. That's not possible in the beginning.

  • @sanjacobs6261
    @sanjacobs6261 3 года назад +5

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

  • @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.

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

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

  • @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!

  • @mracipayam
    @mracipayam Год назад +11

    Dude when you type c++ in youtube your channel does not appear any soon, i found you on a twitter mention. Why youtube is doing this to us?

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

    Have to learn C++ for a class that the teacher does not know how to code in C++. Your videos are the only ones that aren't hours upon hours long. Cheno you are my only hope.

  • @팍준하
    @팍준하 4 года назад +12

    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 4 года назад +1

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

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

      Salute!

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

      Thank you very much! This was very useful.

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

    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!

  • @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

  • @ultimatesoup
    @ultimatesoup Год назад +1

    Small caveat, the computer doesn't start running main right away. There is a bunch of code that c++ inserts before the call to main to set some things up and then it calls main. Same thing happens once main terminates. There is some code c++ inserts to restore state and put the return value in a register

  • @rdwells
    @rdwells 3 года назад +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.

  • @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++ :-)

  • @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)

  • @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 5 лет назад +7

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

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

    The next two videos are sooo important. They will give you hip boots to wade around in the error swamps that you will cause in the future.

  • @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.

    • @0Seekhim0
      @0Seekhim0 3 года назад

      Cool channel C 4 Code I subed

  • @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

  • @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?

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

    I love your teaching style and easy to understand explanations. One suggestion (for me personally) would be to slow down just slightly (rewinding to listen and understand gets annoying after a while) and turn the music down a little (maybe lower 10-20%). Keep up the great work!

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

    MORE MORE MORE!

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

    It is profound that you include how #includes are preprocessed, pun intended. This becomes very important later in the linking video. Your ability to teach what you understand is very impressive and very helpful to us that are just learning C++. You clearly understand what we need to know. Notice my grey beard; this is not my first C++ rodeo! Thanks.

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

    that was nice. just like always.

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

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

  • @TonyBai
    @TonyBai 5 лет назад +4

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

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

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

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

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

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

    I have started with your training. I have experience in C# and I want to jump to C++. You explain everything very good. Thank you.

  • @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 лет назад +9

      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.

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

    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.

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

    where did you learn all of this?

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

    Ther Cherno is the only RUclipsr where you have to slow down his videos because he gets straight to the point so fast xD

  • @cat47
    @cat47 4 года назад +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 4 года назад +4

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

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

      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 4 года назад

      @@reiter2148 link?

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

    You are like a fresh breeze. I am a software engineer. I came here through PS5 tech demo and saw you are an X EA developer. Your teaching style is just amazing. Really liked your videos.

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

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

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

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

  • @minecraftcookie2929
    @minecraftcookie2929 Год назад +3

    Feels complicated as a beginner

  • @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.

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

    For larger projects, do you still use forward declaration?

    • @MsJavaWolf
      @MsJavaWolf 6 лет назад +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.

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

    wow, this is very well explained. Music in the background is also to the point. Hats down. Thanks

  • @gabrieljohn5823
    @gabrieljohn5823 7 лет назад +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 6 лет назад +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 6 лет назад

      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? ;)

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

    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.

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

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

  • @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.

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

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

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

      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 6 лет назад

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

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

      But we can't use print instead :(

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

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

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

    Great background music choice.

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

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

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

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

  • @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.

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

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

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

    why dont you blink