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

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

Комментарии •

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

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

    You explain things very clearly, thank you for this

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

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

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

    Love it, keep going Tim!

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

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

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

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

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

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

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

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

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

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

  • @SonuYadav-fx3bq
    @SonuYadav-fx3bq 3 года назад +1

    Could you please upload more tutorials about go lang ?

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

    Ayo thanks Tim

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

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

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

    U r amazing ♥️

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

    well done

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

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

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

    thanks

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

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

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

    viewer : ah, this sponsor breaks my flow

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

  • @Victor-ev3vu
    @Victor-ev3vu 3 года назад +1

    Hey little Timmy

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

    Add was not defind it tells

  • @Victor-ev3vu
    @Victor-ev3vu 3 года назад +1

    Hi

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

    Hit up Stephen Bowen!

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

    First

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

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

    I Am 167th Wooho

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

    First 25 seconds ago!

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

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

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

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

    Thanks