Learn C++ With Me #11 - While, Do While Loops & Break/Continue

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ม.ค. 2025

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

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

    I am proud to still be here, just after the halfway mark of the series! Thanks for this awesome tutorial, Tim!

  • @user-sy3ny1sz2w
    @user-sy3ny1sz2w 3 ปีที่แล้ว +21

    FYI: For loop is so flexible. You can do something like:
    int i = 0;
    for(; i < 10; i++)
    {
    // Code here.
    }
    Or even like this to do infinite loop:
    for(;;)
    {
    // Code here.
    }

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

      you can also do it like this right?
      int i = 0;
      for(; i < 10;)
      {
      // Code here.
      i++
      }

    • @user-sy3ny1sz2w
      @user-sy3ny1sz2w 3 ปีที่แล้ว +1

      @@mastershooter64 Yes. That's valid to do.

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

    good tip on the logical not effecting everything in the statement. I always have to sit there for a few seconds and really think about it. Your tip will save me precious seconds I'm sure.

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

    Thanks 😊, it's really the best Playlist for learn c++

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

      Yes , He is a good friend to us .

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

    You explain things very clearly, thank you for this

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

    Love it, keep going Tim!

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

    Really good TH-camr! I found your channel and love it absolutely. You make exactly the videos that i am interested in. Kepp going bro

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

    Thanks Tim I love watching your video

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

    i can think of 1 very useful thing about "continue;" when you're doing a sort & it just so happens when the element just happens to be in the correct position, u don't want to swap say the element in position 7 to position 7. Instead, u just "continue"

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

    love this

  • @Jeff--vq4zb
    @Jeff--vq4zb ปีที่แล้ว

    Ranged for-loops are a nice modern feature, but you can go old skool, like Steve at Parallel Realities UK, and make complex games with c lang (structures and classic for-loops).

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

    This series is really great, second only to The Cherno's in my opinion.

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

    can you do another setup tour please...i m really interested of what you have done in the new room.Thank you! Oh and why aren t you still using the tkl keyboard?

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

    U r amazing ♥️

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

    Can you read my mind? I was actually thinking it would be nice if Tim could do a C++ series

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

    I have one question. How do you generate random numbers with C++?

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

    well done

  • @SonuYadav-fx3bq
    @SonuYadav-fx3bq 3 ปีที่แล้ว +1

    Could you please upload more tutorials about go lang ?

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

    Ayo thanks Tim

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

    Aside from learning C++, I am also learning English here because English is not my first language.

  • @saulthetaxidriver6100
    @saulthetaxidriver6100 9 หลายเดือนก่อน

    While loop is more used when you want a consisting input from user
    Like walking i game
    Example while user holds w run forward (in more humanistic manner)

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

    Hey Tim, enjoying your videos so far, and i'm almost a bit afraid of asking this: Since you made awesome tutorials for Java, maybe you could go into some frameworks for Java, how to use them, what they're made for etc. Maybe something like Hibernate, Spring and so on. Should be some interesting and advancing content for you and your follower (including me) :).
    Thank you for your work!

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

    Can we also break out of multiple loops at once without a breakout flag? Like in php you can write break 2 and it breaks out of 2 loops

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

      @Peterolen thanks :)

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

    thanks

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

    hey man can you make a series just django-rest-framework
    yo know like authentication, requests, response, serializers, class based views

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

    I like Python, so I want to create a game with Python. But Python does not have a 3D game engine to support all devices, especially Android. But its ok, so I want to study the "Ursina" engine. Will you prepare the series to learn the "Ursina" engine ?

    • @user-sy3ny1sz2w
      @user-sy3ny1sz2w 3 ปีที่แล้ว +1

      Unreal Engine

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

      @@user-sy3ny1sz2w The unreal engine is c ++ based. ursina is based on Python, so I need to create games with ursina engine.

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

    Could you address why it appears to take 0.8 seconds for your code to compile? Shouldn't it take 0.000000008 seconds for such a simple code?

  • @அட்
    @அட் 3 ปีที่แล้ว +1

    Hi bro😍

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

    viewer : ah, this sponsor breaks my flow

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

    Add was not defind it tells

  • @Victor-ev3vu
    @Victor-ev3vu 3 ปีที่แล้ว +1

    Hi

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

    oh my god run the code at 11:18 and type the word "break" instead of any valid input, it loops "type the number 1 or 2" hahahaha EDIT: happens with any invalid input and its funny.

  • @Victor-ev3vu
    @Victor-ev3vu 3 ปีที่แล้ว +1

    Hey little Timmy

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

    First

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

    Hit up Stephen Bowen!

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

    I Am 167th Wooho

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

    First 25 seconds ago!

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

    No offence to Tim, but has he gotten a bit more chubbier?

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

    Please stop C++ and continue python please :(

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

      so you are saying that python is better than c++?

    • @user-sy3ny1sz2w
      @user-sy3ny1sz2w 3 ปีที่แล้ว +3

      This is why I don't like Python programmers

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

      @Peterolen so you are the type of people to support peace over righteousness

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

    Thanks