Learn C++ With Me #10 - For Loops

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

КОМЕНТАРІ • 65

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

    The usage of ++i and i++ defer in many situations. If you say cout

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

      I never saw anyone use ++i

    • @MixedByTheScientist
      @MixedByTheScientist 3 місяці тому

      Apparently it’s a subtle performance thing. Pretty much irrelevant in in everyday coding but I guess in large scale projects, it’s just enough to make a slight difference? Idk I’m just reiterating what someone told me who works for as a C++ software engineer.

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

    Love the new office look, and of course the great tutorial! Would love to see this series continue further! :)

  • @cloudietech5825
    @cloudietech5825 3 роки тому +14

    Tim, you’re an inspiration for us tech youtubers!

    • @Spluub
      @Spluub 8 місяців тому

      wasn't enough to keep you going though.

  • @manuelhorvey-daniels688
    @manuelhorvey-daniels688 2 роки тому +2

    You’re one of my greatest inspiration right now , I love the way you explain the code easily.

  • @ikecodes
    @ikecodes 2 роки тому +1

    Mic is even better, and camera is even better.

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

    Thank you for explaining this. I can't wait to hear about the while loop now. Once I find out about that I can probably get started making a number guessing game or whatever. (well as long as I can find out how to spit out random numbers as well. But I could probably figure that out online. )

  • @Abner2648
    @Abner2648 Рік тому +1

    11/10 subscribed! lol Thank you for the clarity of when to use a for loop over the while loop. ive been through a few different c++ training videos about iteration. But i was having trouble knowing when to use it or even what it was really saying in the syntax. But i get it now courtesy of this video. just clicked! lol So thanks for explaining it in a clear, makes sense, kinda way! appreciate you dude!

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

    Bro you are awesome...plz take this tutorial to beginner to advance level .. I have believe in you bro.

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

    Thanks for sharing good quality content with us, Tim.

  • @wizard-cs2st
    @wizard-cs2st 3 роки тому +2

    just ctrl-shift-b and choose the run option and you'll run it in sublime text by using just ctrl-b after

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

    Very nice setup! I like your videos very much!
    Also, a question, could you make also a C++ advanced programming tutorial series? Because I already know the basics and want to get into more advanced stuff with C++!

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

    Good evening Tim, this is Edward from H.K

  • @OmarMohamed-bk8xh
    @OmarMohamed-bk8xh 3 роки тому +1

    Hi Tim, When are you going to finsh this series I am really excited to learn C++

  • @KamutangaKawina
    @KamutangaKawina 4 місяці тому

    keep up the good work tim

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

    Waiting for this video for long time thankx

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

    please make Learn C With Me Series.

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

    thank you so much for these videos

  • @mishotsonkov1986
    @mishotsonkov1986 3 місяці тому

    very good room

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

    do you have a video on what you are using to code and how to set that program up

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

    Are you going to do a serie for developing backend with c++ ?

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

    Nice video, Well explained loved it.

  • @rezarg
    @rezarg Рік тому +1

    There's a rumor going around that yandere dev hates this guy

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

    Thanks!

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

    thanks Tim

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

    Thanks

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

    very much better cam

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

    You inspire me to be just like you. I know you might not see this comment but moving forward im taking all your python courses. I think python is really good and i have a strong background in java so im hoping its easy to convert to.

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

    Hay Tim can you make a video about using flask together with react?

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

    Hey Tim, what Laptop do you use?

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

      He uses a computer

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

    very helpful

  • @gshsenpai6446
    @gshsenpai6446 2 роки тому +1

    Why is this code giving me a error undeclared identifier i?
    # include
    # include
    using namespace std;
    int main(){
    int myArray[5];
    for(i=0 ; i < sizeof(myArray)/sizeof(myArray[0]) ; i++){
    myArray[i] = i;
    }
    for(i=0 ; i < sizeof(myArray)/sizeof(myArray[0]) ; i++){
    cout

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

      It is a little bit late but the problem is because i is an integer too and you didnt initialized it so program doesnt know what is i to solve the problem you could just do
      # include
      # include
      using namespace std;
      int main(){
      int myArray[5];
      int i;
      for(i=0 ; i < sizeof(myArray)/sizeof(myArray[0]) ; i++){
      myArray[i] = i;
      }

      for(i=0 ; i < sizeof(myArray)/sizeof(myArray[0]) ; i++){
      cout

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

    Best content ever :)

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

    Hey tim.. Which editor you like?
    Sublime text or vs code(with sublime theme)

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

    you used the the sublime🙄 to run the code rather than from cmd
    i also want it any help:

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

    good for me

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

    tim, have you ever used kali linux

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

    loops !

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

    Hey Tim can you develop Competitive programming tutorials with C++ .

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

    what ver. of C++ are u using ?

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

      They are versions of C++?

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

      @@pilote111 No. There are only versions of the compilers.

    • @user-sy3ny1sz2w
      @user-sy3ny1sz2w 3 роки тому +1

      Yes, C++ has many versions Including C++98, C++03, C++11, C++14, C++17, and the newer one C++20. Yes compiler also have a version. I think for most compilers including GCC, MSVC, or Clang the default version of C++ is C++14.

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

      @@user-sy3ny1sz2w Yes, How to upgrade from c++17 to c++20? That'd help me

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

      @@vaibhavrahal9711 If you're compiler is either GCC or Clang you can append this command: "-std=c++"
      For example if you want to use C++20: "g++ -std=c++20 -o test test.cpp" or if you're using Clang: "clang++ -std=c++20 -o test test.cpp"
      If you're compiler is MSVC you can append this command: "/std:c++" or "/std:c++latest" to get the latest and greatest version of C++.
      For example: "cl /std:c++20 test.cpp"
      Note: Don't use quotes or double quotes to the command.

  • @killershark90
    @killershark90 21 день тому

    I was curious so I started an endless loop of 3s on purpose, holy crap.... a ryzen 7600x delidded and liquid cooled hit 71c ....

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

    Cpp for loop similar to JS for loop.

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

    Wow

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

    So I understand what's happening with
    i % 2 == 0
    but I'm confused why it's "equals zero". Dividing an even number by two doesn't result in zero.

    • @Abner2648
      @Abner2648 Рік тому +1

      the operator he's using is "%". It still does division but its actual job is to show us the remainder. so 11 divided by 2 is 5 with a remainder of 1. the "%" operator checks for a remainder. I think it's called the modulo operator if you wanted to look it up for yourself or haven't already found the answer. but basically, "i % 2 ==0 is actually checking for a remainder and if there is or isn't one, it's doing something. in this case, it is actually saying, "if i divided by 2 has no remainder, cout this number" Hopefully that makes sense!

  • @acearorong6536
    @acearorong6536 3 місяці тому

    noice

  • @TheBeast-qm4de
    @TheBeast-qm4de 3 роки тому

    Second

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

    Wow i am first

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

    Iam third lol

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

    You should go to University to TEACH programming.