Added: 3 years ago
From: thenewboston
Views: 63,670
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (168)

Sign In or Sign Up now to post a comment!
  • Smokers cough.... Bad ass XD

  • What is the difference between a While and a do-While loop?

  • @PlasmaGenerator do-while runs at least once no matter what.

    if you do a while and the condition is false, it will just skip over it and not run it

  • Thks that's good.

  • x=SCHIFTY FIVE!!!!!!!!!!!!!!

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

  • Execute, compile and run. I love how he says that.

  • Thank you, this was very useful and straightforward. Better than reading a dull 2000 page long book about programming keep it up anyway.

  • Comment removed

  • thanks Bucky, exams tomorrow :)

  • Awesome man!!!

  • do not smoke to much is not good

  • I need to say you something:

    I have a test tomorrow on school it's about the loops and I really didn't get it but then I watched your loop tutorials and really THANK YOU I fully understand it now!

  • Enough with the chit chat..lets JUST DO IT!!!

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

  • @Airone199 instead of int = 1; change it to double = 1;

  • Comment removed

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

  • @somerandomjedi same thing though. When you type x=x+1 so much it kinda just seems easier

  • \n bro

    

  • WTF Is there video ads on the side bar for?!?! they interrupt my video youtube!

  • AKA Two Thirty!

  • Judging from all the comments, man im gonna pwn the beginners stage in college xD

  • @H3nryTheChief RIGHT?!

  • whooping cough, smokers cough, what's next?

  • Thumbs up if you put this: cout << "something clever" << endl;

    

  • what programming software are u using, it doesnt look like Visual Studio

  • the software is called dev c++ its free . i know because it came with a book i got called begenning programming for dummys

  • @Vortex233 Dev-C++

  • Hmm. There is no 5 star option. Can I give it a like?

  • last time he had wooping cough, now he has smokers cough, lol

  • @jaybow1982 i thought it was going to become a thing, a cough in every video with a different reason why.

  • i dont get it... OOOH. i get it now. :D:D:D

  • i dont get it...

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

  • is it just me or am i the only person that puts a space before endl

  • 7 people couldn't remember "do"

  • bloody legend, better than my lec :) thumbs up :)

  • Please stop smoking. :(

  • ..while am busy for a while with ma while dont try to while my loop for a while:D

  • why does it loop for me?

  • @Bob8673 lol i had 1 instead of +1

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

  • I clicked the ad to support you :)

  • You kinda suck at indenting your code. 

  • @KillerMars1 Except it worked. So he didn't need to. >.>

  • @ToasterWithWings It's always recommended to indent your code, to get it readable.

    Bad indenting causes obvious errors. It works though.

  • Just a little something I picked up doing Java, you can replace "endl;" with "\n" in quotes to create a new line. Turning ( cout << "Hi" << endl; ) into (cout << "Hi\n"; )

  • Good stuff

  • it just keep running.

  • why i cant put x=x++ instead of x= x+1 ?

    

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

  • @jeee92

    x=x+1 can be replaced with either x+=1 or x++

  • can you put up videos with more complex programs on loops?

  • "tooth hurty". lmfao.

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

  • x++ is more easy !

  • 0:53 - 0:58 = That is what she said. Sorry, just had to say it :P

  • hi i would like to know if theres a way to do : sleep(1000); in a place to do that the loops wait for 1 sec before doing it again.

    Btw i love your tutorial! They are easy and we can understand what every fonction or variable do in it.

    thanks :)

  • @Koliter1 I would also like to know this. So few languages have proper support for pausing a set amount of times.

  • helo thenewboston, thank you so much for all your tutorials its amazing i really really like it. you teach much better than my instructor here. you made programming easy for me. i hate that subject but because of you, it seems like it just easy at all.. thank you for your help...

  • helo thenewboston, thank you so much for all your tutorials its amazing i really really like it. you teach much better than my instructor here. you made programming easy for me. i hate that subject but because of you, it seems like it just easy at all.. thank you for your help...

  • lol, you went from whooping cough to smokers cough

  • thanks master!

  • Ok. I get how this works but what I've never understood is WHY! I mean it's essentially the same as the while loop...so why have a different one?

  • the funny thing is that yesturday i was at the dentist...she pulled one of my teeth out...at tooth hurty... creapy.:S

  • i think he uses a dev c++

  • what kinda c++ version r u using?? is it borland's 5.02 or somethin else??

  • @trinidad143 watch the first tutorial of his c++ series.

  • I have seen many tutorials that show you how it works and everything, but can you make a video on a DO loop, that allows a user to input something, rather than the letting the program do everything?

    Like "How old are you", and showing us what a possible error a person can input, and the do loop working on rejecting the persons entry. A video like that would be very helpful.

  • Great videos!

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

  • "compile, compile, no whammie" Great way to make that Do..While interesting. Reminds me of the rullet table in Vegas......

  • my

    cout << "Blah Blah" << endl;

    always comes out with an error... I look back at the code and I match it exactly to the code shown in the video but I do not get the results a seen. Can anyone help me?

  • @IamDuhmb

    are you sure you included namespace std??

    thats i think the most obvious error you could make...

  • @IamDuhmb What error does it show

  • ok man is very cool but its hard to see the text. in first videos it was better

  • Very good vid! great teacher :D

  • Great stuff man I learning alot from your videos

  • This guy is entertaining and a good teacher at the same time

  • lol smokers cough XD

  • lol :30

  • you are best!

  • No sound?!?

  • Think of how long it took to learn English and multiply that by two or three even (pending you're probably not going to work on this 10 hours every day). Software programmers and engineers don't become professionals overnight, so just remember this and keep focused. :)

    Good luck! Study, study, study!

  • Everyone starts knowing nothing (or close to nothing). Personally, I recommend reading eBooks or books from a local Library and studying videos on YouTube. This will improve your skills and you can study the thing(s) you wish to learn on your own time, at a pace you set.

    I suggest you not jump into what you are studying with the expectation to learn everything there is to know overnight (or even over a week of time). It takes time to learn something well enough to use it fluently.

  • smokers cough? haha lol... that was funny

  • thank u sir gee

    i learn it now

    frm peshawar pakistan

  • hey your vids are really helpful

    thanks

    from Pakistan

  • nice videos. REally liken them

  • if you wanna increment just by one, its better if you use x++;... and not x = x+1;

  • Or

    x += 1;

  • at 3:25, "run this baby"

  • your tutorials are so awesome! brilliant, just 5 stars and a new subscriber ;-) keep up the great work!

  • Comment removed

  • you teach better than my teacher, that's for sure...

    I literally can't understand what my teacher's trying to teach us but with your tutorials, I kinda got the hang of it and I really understood it better from you..(hope there's no grammar corrections) anyway,...thanks for the tutorial!

  • i agree completely!

  • @blackdefender Maybe your teacher doesn't want you to understand at all. Maybe he wants you to think that programming is really that hard.

  • Really nice :)

  • his sister is probably like

    "I didnt tell him that joke!! he told it to me!"

  • ur so cool !

  • so helpful , thnx

    5*

  • putting "using namespace std" is not the best practice... instead (for example) use:

    std::cout << "blah" << std::endl;

  • 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;".

  • the idea is to not overrun your global function namespace with functions...

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

  • i failez math :( anyways that's how i understood it unless x=x telling it what to add 1 to. Thanks for the tutorial

  • could of made c++ easier , why x=x+1? better x+1

  • 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<10) then cout<<"Mynumber"; if the code is like this..then mynumber is =1..but "while" re run the code..there for its 1 everytime..therefore u use x++ if want to increse mynumber by 1 eveytime

  • this guy should sell tutorials

  • You speak good and I can clearly see the text thanks

  • Comment removed

  • Comment removed

  • what is the difference of while LOOP, do while, and for loop?????????????

  • Comment removed

  • Maybe my first comment will work this time.

    A "For" loop is more useful (imo) for making and reading items from arrays. Doesn't mean while and do while loops can't do them, the syntax in a "For" loop is made for it. "While" and "Do/While" don't have much difference except "Do/While" loops use braces so they allow only a block of code to be repeated as opposed to an entire code. (I'm still new and self-taught so I may be wrong. thenewboston keep up the good work and thank you)

  • Thanks thenewboston for all your videos, they really are a fun way of learning c++

  • lol I used the same libraries and now he says that cout is "undeclared". ??????

  • what is undeclared?

  • u prolly forgot to add:

    using namespace std;

  • instead of putting x=x+1 in the body you can just put x++;

  • Thanks a ton for taking the time to make these tutorials. You teach them so a noob even like myself can learn. :D

  • lol he got a different cough in every tut.

  • can i use" \n" instead of endl

  • yes you can that's what i use

  • 90% of the time I use "\n" :)

  • ur awesome.

    lol last vid it was whooping cough.

    now its smoking cough

  • The for, while, do while, seem to all give the same repeating results.

    All repeat the cout << Text the amount you asked them to.. Can someone explain why it might be preferable to use one not the other?

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

  • i dont beliv u do dis for free. i have followed up ur tutorials from C and now am at the point. thank men

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

  • Wow are you seriously using system("pause")?? Use cin.get() D:

  • "tooth hurty" lol thats funny

    btw ur vids are helpful.

  • tnx

  • OMG YOU ARE FRICKEN AWESOME!!!!!!

  • lol smoker's cough

  • lmao, come on baby no whammy no whammy, you are great.

  • THANKS

  • u r amazing!keep it up!

  • look whoopinh cough now smokers cough!

    i like you!

  • Thanks a lot, I appreciate you making these vids!

  • zoom more in :D

  • do u smoke?

  • your tutorial is the best man, easy to understand the idea, many thanks !

  • Thanks for that, I learnt more in those five minutes than in an hours lecture.

  • ahaa! Now I know what does the 'do while' do, thanx aloOot!! ur tutorial is awesome!! Great for noobs like me lol!

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

  • great tutorial but i got a question, since this lets you exicute the code without testing it does it allow you to bypass any errors ?

  • 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

  • @thenewboston Can u create programs with Dev++ or u'll have to use Visual C# or Visual basic or Visual C++

  • @TheRealAuxiliary you can use either, but VS has a better debug and etc than Dev ++.

  • @TheRealAuxiliary You have to make a GUI which stands for graphics user interface I think. dev c++ shows an example of a window code.

  • @casandramar you can get compile errors, or logic errors. for example, this will compile, but would you want to?

    while (1)

    { delete fucking everything

    }

  • Comment removed

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more