Learn C++ With Me #1 - How to Compile and Run C++ Code

Поділитися
Вставка
  • Опубліковано 27 лис 2024

КОМЕНТАРІ • 437

  • @TechWithTim
    @TechWithTim  3 роки тому +116

    Just a reminder that this is for beginners! If you’d still like to follow along and already know a language try watching the videos in 2x speed!!

    • @riyaanthemann
      @riyaanthemann 3 роки тому +2

      Thanks man

    • @notvarun1757
      @notvarun1757 2 роки тому

      nice like counter!

    • @athiraathi5104
      @athiraathi5104 2 роки тому

      @@riyaanthemann iiii

    • @StarlightUltra
      @StarlightUltra 2 роки тому

      it says im downloading ming64 incorrectly it wont let me install it

    • @Danilla229
      @Danilla229 5 місяців тому

      when clicked the link to minGW, it automatically downloaded me (mingw-w64-install). What is it? anybody knows?

  • @chunchuenhui4651
    @chunchuenhui4651 3 роки тому +1

    I watch Tim's video because of Python and before that I was a C++ user on embedded systems. Finally, my time has come

  • @andreas_tech
    @andreas_tech 2 роки тому

    I think you are the only one,
    who is explaining C++ with dark mode background :)
    this is why you are my hero

  • @fabriciosaum9789
    @fabriciosaum9789 3 роки тому

    OMG! What you just told me in 18 minutes took me 4 hours before. I have a really old mac so I thought it wasn't possible to learn C++ on it, as I don't have Xcode. I was considering pirating a newer macOS, just to be able to learn C++, and then you just come along to tell me that I don't need all of that. Words can't express my gratitude! Thank you so much and keep up the good work! Your videos are better than all of the other ones combined

  • @markadyash
    @markadyash 3 роки тому +19

    tim I don't know what to say is it coincident or what
    when I wanted to learn opencv suddenly your cv tutorial1 pops on
    and now a few days ago I wanted to learn c++ for Arduino so see you are making a video omg
    thank you so much

  • @sakshamdogra
    @sakshamdogra 3 роки тому +1

    THIS GUY NEVER LEAVES ANYTHING

  • @pagnonig
    @pagnonig 3 роки тому +3

    Back on C++, last time for me was 35 yrs ago as a kid on the Commodore Amiga...😅 Don't worry about being verbose... This is great!

  • @celystal2831
    @celystal2831 3 роки тому

    you are the first tutorial that i follow that did not require intervention by my tech savy father.
    thank you so much

  • @tanmaydeshpande
    @tanmaydeshpande 3 роки тому +22

    Oooooh. Hells to the yeah boiss. I know this gonna be good because TWT is teaching it

  • @johnng7344
    @johnng7344 3 роки тому

    I love YOU Tim! Im planning on becoming a Cyber Security Officer in the Army after college. I really like programming.

  • @xend_er6975
    @xend_er6975 3 роки тому +27

    Oh man this is gonna be so good!! I know I'm gonna love this series

  • @guesttox
    @guesttox 2 роки тому

    i was so intimidated because everyone said it's super hard and its syntax is so complicated but now i'm super good at it. Thanks tim!

  • @ladywebber1726
    @ladywebber1726 3 роки тому +2

    just in time...i have been looking for a c++ class but i will come back here after completing your django/js course which is really awesome...thank you.

  • @adampoper1475
    @adampoper1475 3 роки тому +19

    You're in for an exciting journey Tim. C++ is my favorite language!

  • @godnezha1870
    @godnezha1870 2 роки тому

    i was looking for a video for four hours on UA-cam and finally found this one that only works thanks bro.

  • @karjun4644
    @karjun4644 3 роки тому +1

    Oh my god just now I was searching and wondering that he didn't uploaded any c++ video but now my man Tim got my back with my studies!

  • @kiravd5392
    @kiravd5392 3 роки тому +1

    This is exactly what I needed to refresh on c++

  • @tristan481
    @tristan481 3 роки тому +11

    Wow, those last days I was thinking about C++, but I was a bit discouraged to find a good and complete tutorial as I could find for Python... Well, thank you ! And I can't wait to follow this series all along :D
    PS: I'm back after completing the video, I really like this way of teaching, it reminds me of friends teaching each others !

  • @teneshvignesan6227
    @teneshvignesan6227 3 роки тому +5

    Dude, are you serious? I just thought of learning c++ for my cfd tools and now you are doing tutorial series on it! Man, you are god

  • @Mal-nf2sp
    @Mal-nf2sp 3 роки тому

    Biggest youtube channel to cover c++. Thanks.

  • @WeAreBlank18
    @WeAreBlank18 3 роки тому +13

    for those that have their .cpp file with spaces, e.g. My first program.cpp, be sure to include the name and .cpp within quotation marks - when compiling the code (as seen in the second last part of the video). I looked this one up while following along, felt like helping out.

  • @alitabaker99
    @alitabaker99 2 роки тому +3

    Perfectly paced for beginners. I'm excited to finish this series.

  • @Davidku632
    @Davidku632 3 роки тому +1

    I just had an Olympics today in c++ and I'm so excited you are learning it too. I agree with you that people are exaggerating with it's learning curve.
    It was my actual first language and it helped me a lot for learning basics. Tho I'm 12 y/o and just like you I started eary. (3 years ago I think), I know 3 programming languages : c++, HTML and python , guess wich of them you teached me.

  • @OCEAN-fc9wl
    @OCEAN-fc9wl 2 роки тому

    I just learned C and now im trying to get into C++. Its gonna be easier to learn since I know C so im hella excited. After C++ im gonna continue learning python from where I left off.

  • @eltonstalspets45
    @eltonstalspets45 3 роки тому

    A tip if you want to compile and run with one single command: g++ {sourceFile}.cpp -o {outputFile} && {outputFile}
    Replace everything inside curly braces with information that is correct and run. And also, Mac and Linux might have to type "&& {./outputFile}.

  • @sleepinversace8270
    @sleepinversace8270 3 роки тому +1

    literally the best most informative and most useful tutorial ive ever watched , thank u dude

  • @prayagsapar1969
    @prayagsapar1969 3 роки тому +1

    Tim sir, make this c++ series basic to pro level... Love from India

  • @diegomartin6332
    @diegomartin6332 3 роки тому +75

    Extra info: Python was coded in C

  • @varunananthakrishnan9414
    @varunananthakrishnan9414 3 роки тому +3

    Great tutorial!! Two recommendations though:
    1. Do not use "using namespace std" because it can cause name ambiguity. instead of doing "using namespace std and cout

    • @user-id5qq6ov3w
      @user-id5qq6ov3w 3 роки тому

      Tip 1 doesn't matter if you are only gonna code a small program.

    • @varunananthakrishnan9414
      @varunananthakrishnan9414 3 роки тому

      It 's just good syntax.

    • @user-id5qq6ov3w
      @user-id5qq6ov3w 3 роки тому

      @@varunananthakrishnan9414 What? That doesn't make any sense.

    • @varunananthakrishnan9414
      @varunananthakrishnan9414 3 роки тому

      I mean that it’s said to be good convention from where I learned. Sorry if that was not clear.

  • @Msr94145
    @Msr94145 3 роки тому +2

    I wasn’t into learning another language, you’ve just changed that!!
    I’m very excited for the series!! Thank you 😀

  • @WeAreBlank18
    @WeAreBlank18 3 роки тому +1

    Thanks man, I did the same steps before, but downloaded the same compiler from the original site recommended by visual studio, and the bin was EMPTY. So the link you gave for the third-party download DEFINITELY helped!

  • @c4g3dB34st
    @c4g3dB34st 3 роки тому +1

    I was just thinking today of making a video like this where I learn before I make the video and make a tutorial, so that I will help others while learning the concepts myself, and by explaining it further raises doubts to me and I will research that and explain too. Great work

  • @royholman3467
    @royholman3467 3 роки тому +1

    Great video Tim, i'm locked in ready to go for the next one.

  • @jodmatthewaclan5869
    @jodmatthewaclan5869 3 роки тому +1

    Woah dude, this is what I'm waiting for in your channel, we have this as our language in our subject

  • @mortuumhagl8012
    @mortuumhagl8012 3 роки тому +3

    Omg dude, I was just looking up to some SFML and C++ tutorials and you uploaded this. Thank you!

  • @gio3012
    @gio3012 3 роки тому +1

    I wanted to learn c++, this makes it even more interesting!

  • @karlguzman9775
    @karlguzman9775 3 роки тому +3

    This has been very thorough and well-explained. I have not touched C++ in awhile and this would be a good refresher following along. Thanks!

  • @BiminKoju
    @BiminKoju 3 роки тому +1

    i wanted to learn c++ for a while, now i can learn it with you :) HAPPY CODING

  • @snapcaselled1201
    @snapcaselled1201 3 роки тому +1

    Many thanks Tim! looking forward to this series awoo!!! :D

  • @ryanm314
    @ryanm314 Рік тому

    This is the best tutorial I've seen yet

  • @amberniesalting9011
    @amberniesalting9011 3 роки тому +4

    wow that was so easy to understand compared to other tutorials, I've wanted to learn it for a long time but I just can't figure out how to set it up. Thanks for this!

  • @_The_Crafter_
    @_The_Crafter_ 3 роки тому +2

    I love the fact that i really need this video right now😂 thank you tim you are an amazing teacher🔥

  • @JimPageGD
    @JimPageGD 3 роки тому +1

    FINALLY!!!!! I was waiting for this for so long

    • @windwardhive7363
      @windwardhive7363 3 роки тому

      you didn't even know he was gonna upload this so how were you waiting for it? quit lying

  • @towsikcr7526
    @towsikcr7526 3 роки тому +2

    This is Lit ! I was waiting for this from you I'm also beginner in CSE

  • @DGHere12
    @DGHere12 3 роки тому +1

    I was waiting for this only pls complete whole series.

  • @李伶俐-u1e
    @李伶俐-u1e Рік тому +1

    FINALLY some one that uses subline and teaches C++....my gosh....

  • @armaghansarvar2874
    @armaghansarvar2874 3 роки тому +1

    Looking forward to the next videos!!

  • @sunwukong6268
    @sunwukong6268 3 роки тому +5

    Another awesome tutorial and perfectly timed for me. I have gotten a bit into tinkering with my RaspberryPi and Pico lately and I wanted to try some Arduinos, too. So I wanted to learn C++ and there you are, making it easier for me to start. Thanks again.
    I really liked your explanations on how to setup all this right at the start. I think there is nothing more frustrating, than trying something new and getting stuck, because you forgot something at the beginning.
    It was really kind to explain the shortcuts and different ways for the shells. Those might be very helpful for people, who are not yet familiar with command lines and how to navigate there.

    • @rikthecuber
      @rikthecuber 2 роки тому

      Honestly same. The main motivation for me to learn c++ is arduino, and learning a lower level language to understand optimizations.

  • @dantheman92003
    @dantheman92003 3 роки тому +1

    Let's go. Was waiting for this to happen.

  • @ludvigrigger
    @ludvigrigger Рік тому

    Thank you! Finally, I managed to configure my system for c/c++.

  • @ajinkyakahane6880
    @ajinkyakahane6880 3 роки тому +2

    Woah.. Eagerly waited...
    Now..waits over

  • @nicholassalmon8054
    @nicholassalmon8054 Рік тому

    I need this for an exam next year. Not sure how advanced the course will be but best to be prepared.

  • @HDbIce-oj3wv
    @HDbIce-oj3wv 3 роки тому +3

    Tim pls do a tutorial on lambda expression in c++ in one of the coming tutorials. You explain things really good.

  • @NinjaAhmed-cp3pe
    @NinjaAhmed-cp3pe 3 роки тому +33

    youtube: 6 comments
    me: can i see them?
    youtube: no

  • @jyotiwaghmare5567
    @jyotiwaghmare5567 3 роки тому +2

    Eagerly waiting for second tutorial !

  • @gabitzu3456
    @gabitzu3456 3 роки тому +1

    Nice video Tim! I love it. Keep doing these!

  • @krultu
    @krultu 3 роки тому +1

    That's the day I've been waiting for.

  • @ayan3789
    @ayan3789 3 роки тому +1

    Wow I was thinking about learning game engine development with C++ and OpenGL. This is gonna be helpful as I am new to C++ thank you ❤️

  • @dhruvatreya
    @dhruvatreya 3 роки тому +1

    I was waiting for this for a long time

  • @nickochoa2480
    @nickochoa2480 2 роки тому +4

    Trying to install mingw says “downloaded incorrectly” on install.
    Now I will try to learn something easier, like how to play a C chord on a guitar.

  • @RandomShowerThoughts
    @RandomShowerThoughts 3 роки тому +1

    Good Ole C++, I started with it back in college and then switched to python lol. Definitely need to circle back to it

  • @lokeshwaran8388
    @lokeshwaran8388 3 роки тому +1

    Correct video at correct time

  • @Saad-hi1zz
    @Saad-hi1zz 3 роки тому

    I would be grateful to a Rust course because it is kind off an easy version of c++, and it has a more easy syntax than c or c++
    You will always have a choice to write complex programs but you can also do the simple things in an easy and understandable program.
    The best thing about rust is how safe it is and it has a wide community who are always willing to help.

  • @Unpronounceable_H
    @Unpronounceable_H 3 роки тому +1

    if g++ doesn't work on mac, try running xcode-select --install to install the xcode toolkit. That made it work for me :-)
    Also, ./ in front of your compiled codes name is necessary if your compiled program is not in your PATH variable

  • @kiu8179
    @kiu8179 11 місяців тому

    You have no idea how good was this video, seriously. Only thing I would have like to learn in this video was how to compile in a .exe Sry for my broken english.

  • @sruthiki4050
    @sruthiki4050 3 роки тому +2

    Just what I wanted, THANKS TIM

  • @pimpwiththis8885
    @pimpwiththis8885 3 роки тому

    Outstanding brother, thanks... your voice is so easy to understand... You should be in radio...

  • @antwidavid389
    @antwidavid389 3 роки тому

    Just when I started learning C++🤩🤩

  • @outloud_overthinking
    @outloud_overthinking 11 місяців тому +1

    It was a very comprehensive guide, thank you. I also appreciate sound and video quality, it's quite important for me. I had some problem with installing MiniGW, but apart from that everything worked well

    • @Bellsaur
      @Bellsaur 10 місяців тому

      how'd u end up installing it

    • @SiphonRayzar
      @SiphonRayzar 6 місяців тому

      How did you get the MinGW to install? I'm getting an "file was installed incorrectly" error.

  • @adarshchhokar3818
    @adarshchhokar3818 3 роки тому +1

    Elite tutorial. Loved the style!

  • @techwithgantavya6381
    @techwithgantavya6381 3 роки тому +1

    Oh Yes I was wanting this from you Thanks A Lot Tim

  • @berksaliu7196
    @berksaliu7196 3 роки тому

    Use Code::Blocks it's easier than opening the Command Prompt manually. By the way great job explaining it.

  • @Shmevin
    @Shmevin 3 роки тому

    thank you so much for this video. I couldn't find any other video that explains the steps so well.

  • @kostantinosalexandrostsaou3533
    @kostantinosalexandrostsaou3533 3 роки тому +1

    Tim we love you

  • @Jaksa1703
    @Jaksa1703 3 роки тому

    Nice, just started to learn C and C++ for my uni classes. At least there will be some good materials for c++. Just need to find smth for C
    Thanks Man, keep it up
    You are doing great

  • @DiT-d2h
    @DiT-d2h Рік тому +1

    Thank you for useful information. You help a lot👍

  • @saeed5508
    @saeed5508 3 роки тому

    Thank you for creating these videos... Also, the 2x speed suggestion was great. I used 1.5x speed

  • @frxsty3513
    @frxsty3513 3 роки тому

    so far just got through the first tutorial lmao but ur a legend

  • @arandomboredindividual7855
    @arandomboredindividual7855 3 роки тому +11

    top 10 reasons why c is better than c++:
    1 - it takes less energy to say c than c plus plus
    2 - ...
    thank you for coming to my ted talk

  • @yashindane2844
    @yashindane2844 3 роки тому +5

    I was waiting for this, from India🙏

  • @harshithn4582
    @harshithn4582 3 роки тому +1

    Man you have owesome teaching skills 👍👍👍

  • @par-th1
    @par-th1 3 роки тому +1

    I was going to start learning c# but since u r learning cpp imma 2 :)

  • @zekenacho
    @zekenacho 3 роки тому

    Always wanted to learn C++ keep it up!

  • @alivingbrick
    @alivingbrick Рік тому

    Hey guys if you happen to not be able to open the same window during the "path" stage 7:56. Don't worry nothing is wrong with your computer. Do the same thing Tim says click path then edit and make sure you have the path of the bin folder of MINGW copied. If something pops up named "Variable Value" thats great. What you need to do is go to the end of the text inside of Variable Value then type in this symbol ( ; ) then paste your MINGW path. Press ok and it should create the path. Bonus: If you press edit again you will get a similar window to 7:56.

    • @Papi_RySukuna
      @Papi_RySukuna Рік тому

      what about finding the actual folder in the c drive becuase when i try to look for it i cant find

    • @alivingbrick
      @alivingbrick Рік тому

      @@Papi_RySukuna depends on where you installed it. The default install is programs 64 or programs 80 something

  • @XinhLe
    @XinhLe 3 роки тому

    How to use C++ and Python together.
    Code by C++,
    Python for interface.
    Please make a series of tutorials on this if possible

  • @-C3S1UM-
    @-C3S1UM- 2 роки тому

    Thanks! I actually tought that this tutorial was going to be a lot harder! :P

  • @shubhamplayz1431
    @shubhamplayz1431 3 роки тому +8

    You literally posted this when I needed it what witchcraft are you performing?!

    • @windwardhive7363
      @windwardhive7363 3 роки тому +2

      no you weren't. quit lying

    • @mastershooter64
      @mastershooter64 3 роки тому +2

      I'm convinced that Tim uses some sort of advanced mind-reading device like Professors X's cerebro to find what most people need and then makes those videos lol

  • @hosseinzakariaee5465
    @hosseinzakariaee5465 3 роки тому +1

    oh man that was very good

  • @guitarman813
    @guitarman813 3 роки тому

    To be honest, I've always wanted to add C++ to my personal programming language arsenal. But I would have to really put in the time to learn it. It's certainly not a language that one can pick up quickly. Like Python or JavaScript for example. Enjoy learning the language Tim and hopefully I'll be there at some point learning C++.

  • @highwayflammable4212
    @highwayflammable4212 3 роки тому

    wow i was just looking to learn c++ and i found ou ,the different just i use visual studio code
    thank you for this tutorial ,have nice day

  • @servicer6969
    @servicer6969 3 роки тому

    IT IS HERE

  • @sominnarain1368
    @sominnarain1368 3 роки тому +1

    This is what we needed

  • @veerajaveeraesh4356
    @veerajaveeraesh4356 3 роки тому +2

    Will the OpenCV tutorials be continued????pls pls continue it.....I know not many people know what OpenCV is, so they don't search for tutorials on it on UA-cam which might be why your series is not as popular as your python tutorial etc. I hope you continue the series cuz I was really overjoyed🎉 when u said this was going to be a long series ~from an enthusiastic OpenCV learner

    • @veerajaveeraesh4356
      @veerajaveeraesh4356 3 роки тому

      I really hoped that there would be more to the series than just ending on face detection....which other youtubers have also done in the past, so I really wanted something new and exciting.....btw Tim, you explain the concepts better than any other youtuber

    • @user-id5qq6ov3w
      @user-id5qq6ov3w 3 роки тому

      Probably worst place to post that

  • @myownthoughts969
    @myownthoughts969 3 роки тому

    Hey it’s the python guy... was up Tim... Is this new content... I guess so, the video Was published on March 6 2021... awesome I’m glad... I’m trying to learn c++ for several several months now and I have a course on Udemy I was going threw but it just got to hard to quickly ... so....I have not been working on any problems lately... but now hopefully you can show me good content I can keep up with

  • @abhimanyunegi4382
    @abhimanyunegi4382 3 роки тому +1

    Finally😍

  • @thealdoc
    @thealdoc 3 роки тому

    i opened up my text editor after pressing play and you were using the same as me :D

  • @rudro314
    @rudro314 3 роки тому

    Its gonna be a great series

  • @Aiovo
    @Aiovo 3 роки тому

    Hey, just wanted to say GREAT video!

  • @blakeraika5068
    @blakeraika5068 Рік тому

    You're the dopest, Tim.

  • @lucky-bj9de
    @lucky-bj9de 3 роки тому +1

    It's probably easier to use an IDE. Good luck!