C++ Tutorial - 14 - Do While Loop

  Рет қаралды 201,353

thenewboston

thenewboston

Күн бұрын

Пікірлер: 126
@wonderboi6
@wonderboi6 14 жыл бұрын
this guy just explained me an 80min lecture in less than 15mins and it made more sense than my teacher Thanks much! keep doing what you know best:)
@asadnaqviii
@asadnaqviii 4 жыл бұрын
True
@camilzarif9392
@camilzarif9392 Жыл бұрын
@@asadnaqviii buddy idk if this guy s still alive
@asadnaqviii
@asadnaqviii Жыл бұрын
@@camilzarif9392 well I'm still alive after 2 years, dont know about him F
@camilzarif9392
@camilzarif9392 Жыл бұрын
@@asadnaqviii oh my god, he acually responded, i didn't even know that you get notification after that long, imagine if the other guy responds, that would be impressive.🤯🤯
@asadnaqviii
@asadnaqviii Жыл бұрын
@@camilzarif9392 let's keep each other updated about our mortality status every year
@tracymitzi
@tracymitzi 10 жыл бұрын
Hey Bucky your videos helped me get through java class and now you're helping me with c++. Try to quit smoking so you can keep up the good work lol.
@bishoyyouhanna9189
@bishoyyouhanna9189 7 жыл бұрын
9 years and this is still the best programming channel on youtube (along with derek banas )
@sandily90
@sandily90 9 жыл бұрын
this is so much easier than reading the book! thanks :D
@jvkanonhall5083
@jvkanonhall5083 8 жыл бұрын
lol "smoker's cough," i feel yah bud, ty for upload using this for my C++ midterm!
@nn-eq2rt
@nn-eq2rt 8 жыл бұрын
bucky you have no idea how much you help me on my exams ... like ur the best at this
@SuperPirate90
@SuperPirate90 10 жыл бұрын
i am very weak in coding sir, but your lecture really help me alot,, thanks alot sir, im gonna learn alot from you.. thanks
@Rawoonah2cool
@Rawoonah2cool 8 жыл бұрын
What I like about your videos so for is you just do it and you don't make it seem so difficult like our instructor does.
@ach301176
@ach301176 15 жыл бұрын
Thanks thenewboston for all your videos, they really are a fun way of learning c++
@lykanwitch
@lykanwitch 15 жыл бұрын
whoa.. now i understand the concept.. thanks a lot.. it really helped me.. because our do while loop practical exam last friday made me cry..
@SuperWatru
@SuperWatru 14 жыл бұрын
Just finished the 14th tut. And i only got one thing to say. Please DONT stop posting these videos. They are so noob frendly, mutch bether then reading. Thanks for the great work...
@nigelwhelan6436
@nigelwhelan6436 11 жыл бұрын
I have been watching and learning , your a good teacher. Tried to watch a different tutorial and he confused the shit out of me. Thanks just learning this stuff cause computer building has slowed down. I will keep watching and maybe learn something new....
@davemaze1989
@davemaze1989 15 жыл бұрын
i dont beliv u do dis for free. i have followed up ur tutorials from C and now am at the point. thank men
@loydcanal
@loydcanal 14 жыл бұрын
"compile, compile, no whammie" Great way to make that Do..While interesting. Reminds me of the rullet table in Vegas......
@hannahbrakefield5076
@hannahbrakefield5076 Жыл бұрын
Great explanation! Was so confused, but now I am not! Thank you!
@GNSstudios
@GNSstudios 15 жыл бұрын
Use while loop when you want the loop to end when a certain condition is met Use a for loop when you want to control how many times the loop runs Use do while when you want the loop to run atleast once. Do while is a huge difference in in my opinion from the others.
@bcgoette
@bcgoette 12 жыл бұрын
Thank You so much for your help. I would not have been able to finish my homework without it. I checked out your website too. I can't wait until I can get some time to check it out better. It looks like you have everything there.
@NovaStormHub
@NovaStormHub 11 жыл бұрын
Great tutorials! So useful. Oh, and that dentist pun was hilarious.
@ninjaboyjeff
@ninjaboyjeff 15 жыл бұрын
Thanks a ton for taking the time to make these tutorials. You teach them so a noob even like myself can learn. :D
@mrperfect44550
@mrperfect44550 15 жыл бұрын
it means x is= to x+1..as in if x is = to 2 its goin cout 3 .its mostly used in while loop bcaz its a endles loop without it..c++ reads code from top to bottom.nd while loop helps rerun the code from top when it finishes readin..nd if everytime the answer is same its a endless code..for e..x=1; while(x
@ZachWGTV
@ZachWGTV 11 жыл бұрын
Not bad, interesting, engaging and useful for my studies. Thanks!
@sadnessinmylife
@sadnessinmylife 12 жыл бұрын
x = x + 1 tells the loop to keep moving up, it is the increment. If we delete this line, then the do loop will turn into an infinite loop because there is nothing stopping it from running.
@thenewboston
@thenewboston 16 жыл бұрын
well when you compile your program, thats when it checks for errors. but if you have messed up code that doesnt fit your condition at all then yes, its going to run anyway first
@Dakb1000
@Dakb1000 3 жыл бұрын
These tutorials are oldies but goodies buddy!!! You still smoking brother?
@colomghetto
@colomghetto 14 жыл бұрын
Great stuff man I learning alot from your videos
@Gooneryz
@Gooneryz 12 жыл бұрын
@thenewboston dude you explain things really well,thanks for the cool tutorials they saved me a lot of time and struggle to understand the concepts.Job well done =]
@master10123
@master10123 15 жыл бұрын
You speak good and I can clearly see the text thanks
@ArmadaWixxi
@ArmadaWixxi 15 жыл бұрын
your tutorials are so awesome! brilliant, just 5 stars and a new subscriber ;-) keep up the great work!
@priscillacruz5475
@priscillacruz5475 Жыл бұрын
Homie, in while video; "Sorry, I got whooping cough" Homie in do while: "Sorry I got smoker's cough" BRUH
@WildWolfNick
@WildWolfNick 14 жыл бұрын
@jeee92 actually just x++; is enough if you would like to increment by one. He is probably continually using x=x+1; so that you will know how to increment by something other than one.
@olympiawa
@olympiawa 16 жыл бұрын
Thanks a lot, I appreciate you making these vids!
@carloshernanreyesruiz2513
@carloshernanreyesruiz2513 2 жыл бұрын
I love your sarcasm when teaching hahhhhahaha
@ovuncsimsek4423
@ovuncsimsek4423 5 жыл бұрын
Thank for your helps. Its easy to understand
@hurtlikeu
@hurtlikeu 14 жыл бұрын
bloody legend, better than my lec :) thumbs up :)
@KillerMars1
@KillerMars1 13 жыл бұрын
@ToasterWithWings It's always recommended to indent your code, to get it readable. Bad indenting causes obvious errors. It works though.
@SC-zp8mx
@SC-zp8mx 10 жыл бұрын
Thanks Brother; I like the way you help us in here mayne.
@samechfar4536
@samechfar4536 9 жыл бұрын
thanks alot ! very easy to understand, keep going ...
@drugmonster6743
@drugmonster6743 14 жыл бұрын
lol, you went from whooping cough to smokers cough
@GNSstudios
@GNSstudios 15 жыл бұрын
actually he does make money from doing tihs. he's a youtube partner all these views generate him some profit.. also that's he he can afford to give away ps3 and xbox sweepstakes. but still he puts more effort into these than he profits from, meaning he's actually doing this because he's a very good person willing to take the time and share his knowledge.
@papano12
@papano12 15 жыл бұрын
The for, while, do while, seem to all give the same repeating results. All repeat the cout
@izumichan31
@izumichan31 14 жыл бұрын
@Mahiz96 Well when it comes to c++ technically you don't have to indent... as long as you have the semicolon at the end of the line within a function, you technically don't even have to put code on another line. But yes, I agree that it is a lot cleaner to 'indent' which is the word you're looking for not 'intend'. And it does save a lot of problems in the long run.
@PrinceBejita
@PrinceBejita 4 жыл бұрын
5/5 star video! thx
@NovaStormHub
@NovaStormHub 11 жыл бұрын
Does anyone else remember when KZbin videos were rated out of 5 instead of Liked/Disliked? Good times, my friends. Good times.
@xelnos21
@xelnos21 13 жыл бұрын
I don't understand why i would need this, is my problem. Bucky, i would appreciate it if in future videos you were to explain why each thing would be useful at the end. Thanks! Great tutorials otherwise!
@3n8r28
@3n8r28 3 ай бұрын
the way that this is 15 years ago and I said"owwwwwwhh" is crazy
@litlabarn
@litlabarn 14 жыл бұрын
Great videos!
@Airone199
@Airone199 13 жыл бұрын
i have just one little question.. how can we enter the code so we actually make x=x+0.5 (whitout changing the while loop requirments to 20 and making x=x+1)
@baabaa33
@baabaa33 14 жыл бұрын
Very good vid! great teacher :D
@programmer1905
@programmer1905 15 жыл бұрын
if you wanna increment just by one, its better if you use x++;... and not x = x+1;
@LeonLam7
@LeonLam7 Ай бұрын
i laughed way too hard at "tooth hurty"
@ztsb45
@ztsb45 14 жыл бұрын
not to be obnoxious, but nothing about sounds fun >.> its all really confusing... the outcome is really cool and fun. btw i thought u had whooping cough. now its smokers cough?
@tHaH4x0r
@tHaH4x0r 14 жыл бұрын
@IamDuhmb are you sure you included namespace std?? thats i think the most obvious error you could make...
@kabilan83
@kabilan83 13 жыл бұрын
Awesome man!!!
@lhx0591
@lhx0591 12 жыл бұрын
if we put x=x+2 or mor than 2 digit what does it mean,and will be case somting happen??
@Czubachowskii
@Czubachowskii 16 жыл бұрын
lmao, come on baby no whammy no whammy, you are great.
@itskiefer
@itskiefer 14 жыл бұрын
@TheRealAuxiliary You have to make a GUI which stands for graphics user interface I think. dev c++ shows an example of a window code.
@jeffery12108
@jeffery12108 14 жыл бұрын
@TheRealAuxiliary you can use either, but VS has a better debug and etc than Dev ++.
@PlasmaGenerator
@PlasmaGenerator 13 жыл бұрын
What is the difference between a While and a do-While loop?
@vincentromano936
@vincentromano936 9 жыл бұрын
One of my homework assignments requires me to use a do-while loop to execute the ASCII code. Does anyone know how to do that? I am starting to get to the point where I need help on things like this. I would appreciate it if anyone can help me. I have tried to figure out how to do it, and I'm not having the best of luck.
@deem7293
@deem7293 15 жыл бұрын
"tooth hurty" lol thats funny btw ur vids are helpful.
@sharpenbullet3193
@sharpenbullet3193 15 жыл бұрын
what is the difference of while LOOP, do while, and for loop?????????????
@lhx0591
@lhx0591 12 жыл бұрын
what is x=x+1 doing here ,if we delete this line,will be still runing
@GNSstudios
@GNSstudios 15 жыл бұрын
ur awesome. lol last vid it was whooping cough. now its smoking cough
@DEADmetal3
@DEADmetal3 11 жыл бұрын
i dont get the down votes. It's actually funny that no matter how good the video would be or how nice as a person the uploader would be, there are always going to be some percentage of down votes. LOL
@mistersir3185
@mistersir3185 8 жыл бұрын
there are plenty of people out there who are mentally unstable like they may not want to click on the dislike button but their brain keeps insisting them so they have no option but to do so. But on the other hand those who are able to judge rationally know when to like a video and when to dislike a video.
@amyo
@amyo 6 жыл бұрын
Unless he’s a hot girl who has her boobs out, but even then some salty person will still downvote. Resistance is futile
@bloodkiller731
@bloodkiller731 16 жыл бұрын
good videos as usual later on give us tuts on how to make certain programs like calculators web browsers ETC u will get more views =)
@Urketadic
@Urketadic 15 жыл бұрын
Really nice :)
@joshgoldstein8309
@joshgoldstein8309 11 жыл бұрын
Thanks really helped!
@lilwestsideazn
@lilwestsideazn 14 жыл бұрын
can you put up videos with more complex programs on loops?
@NehiThompson
@NehiThompson 13 жыл бұрын
@H3nryTheChief RIGHT?!
@Gadessa01
@Gadessa01 13 жыл бұрын
@Airone199 instead of int = 1; change it to double = 1;
@michysatchi
@michysatchi 12 жыл бұрын
x=x+1 is the same as x++ RIGHT??
@jeffery12108
@jeffery12108 14 жыл бұрын
@IamDuhmb What error does it show
@mjsdabeast
@mjsdabeast 15 жыл бұрын
yes you can that's what i use
@somerandomjedi
@somerandomjedi 13 жыл бұрын
Bucky i have the highest respect for you (you tought me everything i know about programming) but x=x+1; is just bad programming you would be better off with x++ instead.
@TwoMods
@TwoMods 12 жыл бұрын
Guys, hint: X = x + 1; is the same as x += 1; :)
@Bob8673
@Bob8673 14 жыл бұрын
why does it loop for me?
@Burndwing
@Burndwing 12 жыл бұрын
for loop is best loop
@manojsaravana3877
@manojsaravana3877 2 жыл бұрын
Thank you
@eljavvi3108
@eljavvi3108 10 жыл бұрын
Tnx for this Tutorial Do While Loop is my next Subject I hope I get it rite Tnx very much
@amyo
@amyo 6 жыл бұрын
Smokers cough and whooping cough. You should go see Doogie howser
@idkcloudy
@idkcloudy 8 жыл бұрын
wait can't you do this with just a while loop?
@josephnasr3385
@josephnasr3385 8 жыл бұрын
Tyrann Mathieu yes you can. You can also do it with a for loop.
@0085746005861
@0085746005861 8 жыл бұрын
so that it will do the loop at least once.
@josephnasr3385
@josephnasr3385 8 жыл бұрын
michelle l yupp. That's the good thing about the Do while loop.. it executes at least once before checking if the condition is true and iterating in case it is true
11 жыл бұрын
You commented this 2 years ago... how did you get on in college? :p
@TheFiendishFive
@TheFiendishFive 14 жыл бұрын
@trinidad143 watch the first tutorial of his c++ series.
@Jayawe24
@Jayawe24 7 ай бұрын
❤💯
@kevindgreat3315
@kevindgreat3315 15 жыл бұрын
no dude.that is one other way but it wil take too much time.let's say we have lots of cout's and cin's.you would have to type them as much too instead of just typing "using namespace std;".
@SYNYST3R1
@SYNYST3R1 13 жыл бұрын
@Vortex233 Dev-C++
@MOTRBOATmyBALLS
@MOTRBOATmyBALLS 13 жыл бұрын
AKA Two Thirty!
@TheMinecrafteer
@TheMinecrafteer 13 жыл бұрын
whooping cough, smokers cough, what's next?
@grodiusx
@grodiusx 14 жыл бұрын
is it just me or am i the only person that puts a space before endl
@hadyhambaly94
@hadyhambaly94 11 жыл бұрын
what does x++ means??
@Sarki234
@Sarki234 7 жыл бұрын
increase whatever the value of x is by 1. same as x= x+1. I'm sure by now u are a pro tho lol
@SocialDiseaseTV
@SocialDiseaseTV 13 жыл бұрын
@jaybow1982 i thought it was going to become a thing, a cough in every video with a different reason why.
@TheKingkhan72
@TheKingkhan72 12 жыл бұрын
Great
@NFSprostreet98
@NFSprostreet98 15 жыл бұрын
ur so cool !
@Bob8673
@Bob8673 14 жыл бұрын
@Bob8673 lol i had 1 instead of +1
@qasem9549
@qasem9549 8 жыл бұрын
you smoke?
@dylman9055
@dylman9055 6 жыл бұрын
no he just has a cough you would develop if you smoke.
@hebronsawyers
@hebronsawyers 15 жыл бұрын
90% of the time I use " " :)
@dechicken
@dechicken 15 жыл бұрын
lol smoker's cough
@ToasterWithWings
@ToasterWithWings 14 жыл бұрын
@KillerMars1 Except it worked. So he didn't need to. >.>
@GivenFailure
@GivenFailure 12 жыл бұрын
yes
@princebradly9165
@princebradly9165 12 жыл бұрын
thx dude , that help me for assignment @@
C++ Tutorial - 15 - Address Operator
3:56
thenewboston
Рет қаралды 92 М.
C++   Tutorial - 21 - Switch Statement
5:35
thenewboston
Рет қаралды 393 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
C++   Tutorial - 13 - While Loop
4:46
thenewboston
Рет қаралды 186 М.
C++ Tutorial - 19 - The if else if else Statement
5:38
thenewboston
Рет қаралды 121 М.
C++ Tutorial - 18 - The if else Statement
4:41
thenewboston
Рет қаралды 152 М.
I Animated VIDEOGAME Icons in Blender 3D
17:59
bytedozer
Рет қаралды 1 М.
Easy English Speaking: Conversations, Vocabulary, and Grammar Tips | Episode 15
17:59
Easy English Speaking Podcast
Рет қаралды 625
The 7 Levels of Math Symbols
14:03
The Unqualified Tutor
Рет қаралды 4,6 М.
If you are a Big Dreamer but Lazy, Please watch this video
2:31