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!
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!
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)
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.
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.
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"; )
@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.
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...
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...
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.
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?
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?
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. :)
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.
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!
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;".
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
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)
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.
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
Smokers cough.... Bad ass XD
lmaowrecked 2 weeks ago
What is the difference between a While and a do-While loop?
PlasmaGenerator 2 weeks ago in playlist C++ Programming Tutorials from thenewboston
@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
BlackBird941 1 week ago in playlist C++ Programming Tutorials from thenewboston
Thks that's good.
knom7jean 3 weeks ago
x=SCHIFTY FIVE!!!!!!!!!!!!!!
dee187 1 month ago
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!
xelnos21 1 month ago
Execute, compile and run. I love how he says that.
gofukgoat 2 months ago
Thank you, this was very useful and straightforward. Better than reading a dull 2000 page long book about programming keep it up anyway.
SuperBestguru 2 months ago
Comment removed
SuperBestguru 2 months ago
thanks Bucky, exams tomorrow :)
firari1cars 2 months ago
Awesome man!!!
kabilan83 2 months ago
do not smoke to much is not good
a09z71 2 months ago
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!
TheDigitalToaster 3 months ago
Enough with the chit chat..lets JUST DO IT!!!
theman1992 3 months ago
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 3 months ago
@Airone199 instead of int = 1; change it to double = 1;
Gadessa01 3 months ago
Comment removed
Permafrostrock 4 months ago
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 4 months ago
@somerandomjedi same thing though. When you type x=x+1 so much it kinda just seems easier
JoelakaDamian 4 months ago in playlist C++ Programming Tutorials from thenewboston
\n bro
Danka420 5 months ago
WTF Is there video ads on the side bar for?!?! they interrupt my video youtube!
pigcow1 5 months ago in playlist Bucky C++
AKA Two Thirty!
MOTRBOATmyBALLS 6 months ago
Judging from all the comments, man im gonna pwn the beginners stage in college xD
H3nryTheChief 7 months ago 14
@H3nryTheChief RIGHT?!
NehiThompson 6 months ago
whooping cough, smokers cough, what's next?
TheMinecrafteer 7 months ago 33
This has been flagged as spam show
Check out my channel
I'll be going over C++, computer engineering courses and other related courses. I upload videos daily.
SebastianRoces 7 months ago
Thumbs up if you put this: cout << "something clever" << endl;
MrVBMagic 8 months ago
what programming software are u using, it doesnt look like Visual Studio
Vortex233 8 months ago
the software is called dev c++ its free . i know because it came with a book i got called begenning programming for dummys
jonasonwudi 8 months ago
@Vortex233 Dev-C++
SYNYSTER311 8 months ago
Hmm. There is no 5 star option. Can I give it a like?
Kulopto 8 months ago
last time he had wooping cough, now he has smokers cough, lol
jaybow1982 9 months ago
@jaybow1982 i thought it was going to become a thing, a cough in every video with a different reason why.
SocialDiseaseTV 9 months ago
i dont get it... OOOH. i get it now. :D:D:D
sciman001 10 months ago
i dont get it...
sciman001 10 months ago
@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.
izumichan31 10 months ago
is it just me or am i the only person that puts a space before endl
grodiusx 10 months ago
7 people couldn't remember "do"
rorcopter 11 months ago
bloody legend, better than my lec :) thumbs up :)
hurtlikeu 11 months ago
Please stop smoking. :(
PinkYakRC 11 months ago
This has been flagged as spam show
..while am busy for a while with ma while dont try to while my loop for a while:D
muddybajoh 11 months ago
..while am busy for a while with ma while dont try to while my loop for a while:D
muddybajoh 11 months ago
why does it loop for me?
Bob8673 11 months ago
@Bob8673 lol i had 1 instead of +1
Bob8673 11 months ago
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:)
wonderboi6 1 year ago 3
I clicked the ad to support you :)
TutNuke 1 year ago
You kinda suck at indenting your code.
KillerMars1 1 year ago
@KillerMars1 Except it worked. So he didn't need to. >.>
ToasterWithWings 1 year ago
@ToasterWithWings It's always recommended to indent your code, to get it readable.
Bad indenting causes obvious errors. It works though.
KillerMars1 7 months ago
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"; )
powerbolt09 1 year ago
Good stuff
r2d3gs 1 year ago
it just keep running.
jeee92 1 year ago
why i cant put x=x++ instead of x= x+1 ?
jeee92 1 year ago
@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.
WildWolfNick 1 year ago
@jeee92
x=x+1 can be replaced with either x+=1 or x++
eliscmj 1 year ago
can you put up videos with more complex programs on loops?
lilwestsideazn 1 year ago
"tooth hurty". lmfao.
FallofDarkness55 1 year ago
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...
SuperWatru 1 year ago
x++ is more easy !
manga103 1 year ago
0:53 - 0:58 = That is what she said. Sorry, just had to say it :P
TheAlascar 1 year ago
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 1 year ago
@Koliter1 I would also like to know this. So few languages have proper support for pausing a set amount of times.
trappingnoobs 1 year ago
This has been flagged as spam show
Best C tutorials at programmingforfreshers.blogspot.com
raghuace 1 year ago
This has been flagged as spam show
My name is Mike from LA Although there busizz4me.info
karoletoledo 1 year ago
This has been flagged as spam show
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...
gen2221 1 year ago
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...
gen2221 1 year ago
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...
gen2221 1 year ago
lol, you went from whooping cough to smokers cough
DRUGMONSTER 1 year ago
thanks master!
Yengetto 1 year ago
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?
icekat83 1 year ago
the funny thing is that yesturday i was at the dentist...she pulled one of my teeth out...at tooth hurty... creapy.:S
ThePeeenut 1 year ago
i think he uses a dev c++
GeorgePantazis1 1 year ago
what kinda c++ version r u using?? is it borland's 5.02 or somethin else??
trinidad143 1 year ago
@trinidad143 watch the first tutorial of his c++ series.
TheFiendishFive 1 year ago
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.
DarkerThanLucifer 1 year ago
Great videos!
litlabarn 1 year ago
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?
ztsb45 1 year ago
"compile, compile, no whammie" Great way to make that Do..While interesting. Reminds me of the rullet table in Vegas......
loydcanal 1 year ago
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 1 year ago
@IamDuhmb
are you sure you included namespace std??
thats i think the most obvious error you could make...
tHaH4x0r 1 year ago
@IamDuhmb What error does it show
jeffery12108 1 year ago
ok man is very cool but its hard to see the text. in first videos it was better
blacktener 1 year ago
Very good vid! great teacher :D
baabaa33 1 year ago
Great stuff man I learning alot from your videos
colomghetto 1 year ago
This guy is entertaining and a good teacher at the same time
mnmboy9147 1 year ago 3
lol smokers cough XD
awsomguitarman 1 year ago
lol :30
tubeyourway 1 year ago
you are best!
swemovimaker 1 year ago
No sound?!?
asgerregsa 1 year ago
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!
cembry90 1 year ago
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.
cembry90 1 year ago
smokers cough? haha lol... that was funny
skatefast08 2 years ago
thank u sir gee
i learn it now
frm peshawar pakistan
salmansafi1986 2 years ago
hey your vids are really helpful
thanks
from Pakistan
sheaky420 2 years ago
nice videos. REally liken them
wambululu16 2 years ago
if you wanna increment just by one, its better if you use x++;... and not x = x+1;
programmer1905 2 years ago
Or
x += 1;
cembry90 1 year ago
at 3:25, "run this baby"
bojanglesme 2 years ago
your tutorials are so awesome! brilliant, just 5 stars and a new subscriber ;-) keep up the great work!
ArmadaWixxi 2 years ago
Comment removed
MeneerJK 2 years ago
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!
blackdefender 2 years ago 53
i agree completely!
nvidiaskater989 2 years ago
@blackdefender Maybe your teacher doesn't want you to understand at all. Maybe he wants you to think that programming is really that hard.
xXEviLIntenTXx 9 months ago
Really nice :)
Urketadic 2 years ago
his sister is probably like
"I didnt tell him that joke!! he told it to me!"
JeremytheAutoCot 2 years ago 69
ur so cool !
NFSprostreet98 2 years ago
so helpful , thnx
5*
Danasqu 2 years ago
putting "using namespace std" is not the best practice... instead (for example) use:
std::cout << "blah" << std::endl;
hackerpro1011 2 years ago
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;".
kevindgreat3315 2 years ago
the idea is to not overrun your global function namespace with functions...
hackerpro1011 2 years ago
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..
lykanwitch 2 years ago
i failez math :( anyways that's how i understood it unless x=x telling it what to add 1 to. Thanks for the tutorial
crpsmoky 2 years ago
could of made c++ easier , why x=x+1? better x+1
crpsmoky 2 years ago
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
mrperfect44550 2 years ago
this guy should sell tutorials
bobbytmathew 2 years ago
You speak good and I can clearly see the text thanks
master10123 2 years ago
Comment removed
HaatoSK 2 years ago
Comment removed
HaatoSK 2 years ago
what is the difference of while LOOP, do while, and for loop?????????????
sharpenbullet3193 2 years ago
Comment removed
kriegor191 2 years ago
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)
kriegor191 2 years ago
Thanks thenewboston for all your videos, they really are a fun way of learning c++
ach301176 2 years ago 4
lol I used the same libraries and now he says that cout is "undeclared". ??????
xistoxs 2 years ago
what is undeclared?
BackRaw 2 years ago
u prolly forgot to add:
using namespace std;
KwiggleyStudios 2 years ago
instead of putting x=x+1 in the body you can just put x++;
Retard0800 2 years ago
Thanks a ton for taking the time to make these tutorials. You teach them so a noob even like myself can learn. :D
ninjaboyjeff 2 years ago
lol he got a different cough in every tut.
UpWithTheClouds 2 years ago
can i use" \n" instead of endl
altu892 2 years ago
yes you can that's what i use
mjsdabeast 2 years ago
90% of the time I use "\n" :)
hebronsawyers 2 years ago 3
ur awesome.
lol last vid it was whooping cough.
now its smoking cough
GNSstudios 2 years ago
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?
papano12 2 years ago
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.
GNSstudios 2 years ago
i dont beliv u do dis for free. i have followed up ur tutorials from C and now am at the point. thank men
davemaze1989 2 years ago
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.
GNSstudios 2 years ago
Wow are you seriously using system("pause")?? Use cin.get() D:
xXNek0jinXx 2 years ago
"tooth hurty" lol thats funny
btw ur vids are helpful.
deem7293 2 years ago
tnx
hotshot2443 2 years ago
OMG YOU ARE FRICKEN AWESOME!!!!!!
poingsdefureur 2 years ago
lol smoker's cough
dechicken 2 years ago
lmao, come on baby no whammy no whammy, you are great.
Czubachowskii 2 years ago
THANKS
coolbahraini 2 years ago
u r amazing!keep it up!
fajamamu1 2 years ago
look whoopinh cough now smokers cough!
i like you!
royerbiatch 2 years ago
Thanks a lot, I appreciate you making these vids!
olympiawa 3 years ago
zoom more in :D
JulianBabe321 3 years ago 3
do u smoke?
unstman12 3 years ago
your tutorial is the best man, easy to understand the idea, many thanks !
shinnyn1njaman 3 years ago 3
Thanks for that, I learnt more in those five minutes than in an hours lecture.
RadioTails 3 years ago
ahaa! Now I know what does the 'do while' do, thanx aloOot!! ur tutorial is awesome!! Great for noobs like me lol!
NightwingGurl 3 years ago
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 =)
bloodkiller731 3 years ago 2
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 ?
casandramar 3 years ago 7
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 3 years ago
@thenewboston Can u create programs with Dev++ or u'll have to use Visual C# or Visual basic or Visual C++
TheRealAuxiliary 1 year ago
@TheRealAuxiliary you can use either, but VS has a better debug and etc than Dev ++.
jeffery12108 1 year ago
@TheRealAuxiliary You have to make a GUI which stands for graphics user interface I think. dev c++ shows an example of a window code.
mangopearandapples 1 year ago
@casandramar you can get compile errors, or logic errors. for example, this will compile, but would you want to?
while (1)
{ delete fucking everything
}
SuperFeimer 1 year ago
This has been flagged as spam show
this video is an awful lot of rambling. i fell asleep a little
marymeg522 3 years ago
This has been flagged as spam show
this is an awful lot of rambling sir. i fell asleep a little thanks.
marymeg522 3 years ago
This has been flagged as spam show
do{
cout<<"YOUR A FAGGOT\n";
while(1);
bigfaggykitty 3 years ago
Comment removed
WrestlingFanUploader 2 years ago
This comment has received too many negative votes show
Way to fail, you didn't even declare x retard.
bigfaggykitty 2 years ago