Loops in C++ (for loops, while loops)

preview_player
Показать описание


Рекомендации по теме
Комментарии
Автор

When your professor from one of the best universities in the US sends you to a video from the Cherno to explain a CS principle :')

ignacior.dealmeida
Автор

Learn more in 12 minutes than in a 80 minute lecture with my professor

gykg
Автор

"game done, i rendered my one frame, we're done here"
XD

ETXAlienRobot
Автор

For C++20 users, with the std::ranges & views library you can also use std::iota to iterate a certain bounds, eg:
for(const auto& value : std::views::iota(0, 100))
std::cout << value << std::endl;

Will produce a list from 0 to 99

Zorrr
Автор

excellent video! perfect amount of detail and moves at a good pace.

grhp
Автор

Thank you so much! This is my first week of coding and this video really helped solidify my new knowledge. Definitely gonna check out your other videos

alexandercourtney
Автор

thanks man! I got sick and I missed 2 days of class and for and while loops were discussed and of course I had to miss it so when I came back I was confused af.

groverkennedy
Автор

For loops in depth with disassembly? We're waiting for it! :D

SrbijaaBree
Автор

Thank you, what an excellent explanation!

figorachman
Автор

I have noticed that when writing programs that ask the user to input whether or not they want to run the program again, do-while loops are perfect for this because you always run the program at least once, but at the end, you can check the condition of whether the user wants to run the program again, and if it’s false, you don’t, or if it’s true, then the program repeats. You can do the same thing in for or while loops, but the advantage is that the compiler doesn’t need to check the condition for the first run of the loop in the do-while loop, whereas in for and while loops, you do. Very minor optimization, but it all adds up in the end. Great vid by the way.

hlybehgeZuZ
Автор

This is explained so well, thanks man

syednouman
Автор

that for loop tricks are not only just beautiful, but it does also bring me the openings of viewing codes in a much bigger picture. I very carefully watched, practiced, and took notes of every single vid in your watchlist so far. And in my perspective, and in my mother tongue: “自从看了你的片子,现在我程序写得越来越浪了。。。” 🤣🤣🤣🤣😂

jeremygong
Автор

after watching this video I felt no need to watch another
you have a nice talent to explain anything in just a simple way😊😊😊😀😀
this video is really helpful and informative

aarushiagarwal
Автор

Really loving this tutorial as it generates interest, Thanks Cherno <3

unsalad
Автор

bro u are amaizing i was not undrstanding loop explained in my school. this was giving me a hard time. but u saved the day. thanks for explaining things this good .

deeplodh
Автор

for each loops are also very nice even tho they are also just a fancy for loop. Anyway i just like the syntactic sugar and the legibility "do this for every element of this list/array". I just rewatch this whole series in 2021and I still love it.

BossBeneBaby
Автор

The best video series I ever had seen! Thanks From Brasil!

ReginaldoTrindadeXXI
Автор

Very well explained. Awesome video as usual :)

loryon
Автор

Thank you sir love you every much for saving my day with this tutorial keep up the excellent work! 😃

notdeeq
Автор

this is the best video in youtube explains loops, KEEP GOING DUDE

gsvwuyv