11 years later and the next generation of programmers are still watching this. Thank you Bucky, we appreciate you.
@visit-vo8hx11 ай бұрын
Same here
@alexanderleeart13 жыл бұрын
I am always amazed by how simple you make this stuff sound, while professors make it sound technical and mysterious.
@sassy098 Жыл бұрын
they be doing that on purpose fr and how has your life been
@luckmetube11 жыл бұрын
"What's going on guys Its Bucky? " love this quote :) easy and simple explanation, thank you Bucky!!
@5H33PDAW613 жыл бұрын
read so many books so far and literally cant believe how easy it is with these videos. i wish you had the new setup when you made them, even though it doesnt really matter. Top notch man, i cant tell you how much i appreciate these.
@archavez10011 жыл бұрын
Bucky should give us homework.
@riteshyeddu4 жыл бұрын
I agree
@forevatrolling12 жыл бұрын
im surprised how quickly i am learning c++ after learning java from your tutorials. got through 22 tutorials in a day and understand all of it!
@jillanifazal33415 ай бұрын
I highly appreciate your work here, even though I am in my late 30s and it was told that it will be super hard if I go for coding now as I will not be able to grasp it but your way of teaching is simple, elegant and fun. It is a best way to develop this skill for a slow learner like me. Kudos and may Allah bless you!!!
@The_Muznick12 жыл бұрын
Didnt even need the material presented in the video, just listening to this helped me to figure out the problems I was having with my current lab. This set of videos has made what would be a rather confusing class very easy...
@noxtril13 жыл бұрын
Thank you so much they are so helpful i tried to do an online collage class but everything was left just kind of this is what it is go and figure out how to use it. it is so much easier just listening to you walk us through
@sith4life13 жыл бұрын
@Programmer142 for is a loop used when you know how many times the loop will run whereas the while loop can run unlimited times kind of... the difference is x=0; while ( x < = 5) { do stuff here; x++} and for(x = 0; x
@joshuamolina26538 жыл бұрын
Your videos are so helpful and to the point! thank you for doing this I appreciate it!
@addyy_246 жыл бұрын
you are he best c++ teacher in the whole universe
@heartking10111 жыл бұрын
u are good enough thanks Bucky. i am really appreciated for u have done .. all the best in ur life ..
@MrCanadianAviator12 жыл бұрын
I am 14 my self and I agree with you. Everything he has taught me I understood extremely fast.
@jaydinangelica672211 жыл бұрын
Thank you for these Bucky, they really do help in my class.
@TheMasterARK6 жыл бұрын
You are literally a blessing for making these videos. Really wish I had seen these at the beginning of my semester lol
@SergeantBalthazar12 жыл бұрын
Yeah, I'm 15 and have actually had programming knowledge for about a year. Programming is actually very easy to learn if you have an open mind. :)
@MathandScienceNXT11 жыл бұрын
I made a calculator with c++ as my first program :) thanks Bucky
@dex73808 жыл бұрын
Are you still coding? Im so curious how are you now about coding :D
@Siterus7 жыл бұрын
3 years have passed i wonder how good you are by now xD
@vigneshas74267 жыл бұрын
+The Flash Code Barry Code.
@maweebster84926 жыл бұрын
how good are you now?
@sumanthkomaragiri34886 жыл бұрын
Are you still coding ?
@alexishernandez-contreras3330 Жыл бұрын
I laughed out loud when you said deal with it haha love it - great video!
@drvir5 жыл бұрын
#include using namespace std; int main() { for (int x = 0; x
@tinolax77245 жыл бұрын
Its ok without return 0
@koustubhsharma28074 жыл бұрын
You did wrong! there is no end bracket for int main;
@Qazqi11 жыл бұрын
It can be any expression that results in a value convertible to bool. Your 4
@alexanderleeart12 жыл бұрын
Yes, but I was referring to the particular case where my professors were talking about these same basic fundamentals. I am completely in favor of advanced terminology and conceptual structures, when they are necessary. But I think Bucky does a better job of introducing the basics.
@AlanCarre11 жыл бұрын
Here's the thing. Code wise, it does not matter. The problem with a "while(1) {}" statement is that at warning level 4 (which is where your warning level should be and no lower) that statement issues a warning (conditional expression is constant). Now, unless you have a decent compiler there's no way to shut that warning up without disabling it. So you've lost the benefit of the warning. for(;;) {} OTOH does not issue any warning, so you can keep the warning on and allow it to do its job.
@BradenBest8 жыл бұрын
I call them the initialization, test, and post sections. Because while you can (and typically will) control a for loop with an iterator, that's not always the case. For example: char array[9999], *ap = array, c; for(read(0, ap, 9999); c = *ap; ap++) will give you a char array populated by stdin where for each iteration, you get a single char from said array (what you do with c in the body of the loop is up to you). There's also the comma operator, which lets you do things like this: for(int i = 0, j = strlen(string) - 1; i != j; i++, j--) which would loop from both ends to the middle of a string. And then there's codegolf, where the objective is to solve a problem with the shortest amount of code possible. For example... main(c,r,t){for(scanf("%d",&t),r=5527;scanf("%d",&c),t--;abs(c)^abs(r)?abs(c)r&&(r=c));printf("%i ",r^5527?r:0);} That whole thing is a program in which 90% of the code consists of a giant for loop (and conversely, the for loop doesn't even have a body; it's all happening in the header). The program takes an array of temperatures (in the format "length n1 n2 n3 ... nlength") from stdin, and outputs the temperature with the lowest absolute value (or in the case of two numbers that are "polar opposites", the positive) So `echo -ne "5 5 4 -2 15 7" | ./a.out` would print out "-2"
@BradenBest8 жыл бұрын
dex 1 That's because it IS C, genius. I wrote it for a code golf competition where the program's stdin is pre-filled with text and your job is to parse it and output the correct temperature. And I never said it was C++. This is a programming discussion and is not limited to C++ just because the video targets C++. Get your narrow-minded object oriented rhetoric out of here. C++ is a horrible language and I don't endorse it. Also, work on your insults. When I criticize code, I provide reasons for why it is shitty. The reasons give my criticism credibility rather than leaving it up to the reader to figure out what I think is shitty about it. In the words of Linus Torvalds, * YOU * are full of bullshit. Continuing... C++ is like KZbin, It's old, with a ton of crap in it that makes it convoluted as hell, and they keep adding crap to it in an attempt to cover up the old wrinkles with makeup. But in the end, you still have an old wrinkly hag. Don't believe me about C++ being convoluted? How do you explain the illogical decision to overload
@BradenBest8 жыл бұрын
dex 1 "that's nice considering nobody has ever stated that C++ is trash or that 'experienced' c programmers refuse to use C++." Oh really? "C++ is a horrible language. It's made more horrible by the fact that a lot of substandard programmers use it, to the point where it's much much easier to generate total and utter crap with it. Quite frankly, even if the choice of C were to do *nothing* but keep the C++ programmers out, that in itself would be a huge reason to use C. In other words: the choice of C is the only sane choice. I know Miles Bader jokingly said "to piss you off", but it's actually true. I've come to the conclusion that any programmer that would prefer the project to be in C++ over C is likely a programmer that I really *would* prefer to piss off, so that he doesn't come and screw up any project I'm involved with. C++ leads to really really bad design choices. You invariably start using the "nice" library features of the language like STL and Boost and other total and utter crap, that may "help" you program, but causes: - infinite amounts of pain when they don't work (and anybody who tells me that STL and especially Boost are stable and portable is just so full of BS that it's not even funny) - inefficient abstracted programming models where two years down the road you notice that some abstraction wasn't very efficient, but now all your code depends on all the nice object models around it, and you cannot fix it without rewriting your app. In other words, the only way to do good, efficient, and system-level and portable C++ ends up to limit yourself to all the things that are basically available in C. And limiting your project to C means that people don't screw that up, and also means that you get a lot of programmers that do actually understand low-level issues and don't screw things up with any idiotic "object model" crap. So I'm sorry, but for something like git, where efficiency was a primary objective, the "advantages" of C++ is just a huge mistake. The fact that we also piss off people who cannot see that is just a big additional advantage. If you want a VCS that is written in C++, go play with Monotone. Really. They use a "real database". They use "nice object-oriented libraries". They use "nice C++ abstractions". And quite frankly, as a result of all these design decisions that sound so appealing to some CS people, the end result is a horrible and unmaintainable mess. But I'm sure you'd like it more than git." -Linus Torvalds, a programmer with 25+ years of project maintenance, management and programming experience with assembly, C, and C++ "C++ is a badly designed and ugly language. It would be a shame to use it in Emacs." -Richard Stallman, a programmer with 30-40+ years of programming experience Spend 15 seconds on Google and you'll find plenty more discourse. And I agree with all of it, because they are speaking truth. C++ is an ugly clusterfuck of a language with an abundance of ill-conceived features. You're the mindless drone. "again, please first understand the differences between C and C++ before spewing nonsense. you're the reason people write shitty and unsafe C code, literally slit your wrists and stop programming." Literally that whole paragraph applies to you.
@FingersBlazin8 жыл бұрын
C++ is probably crappy as hell but I'm here just because a job I'm applying for requires some knowledge of it for hardware test automation. I know C also so I understood your code, it looked fine. There is a lot of similarity so I'm getting the feeling that my C is actually getting more solid while studying C++.
@BradenBest8 жыл бұрын
FingersBlazin Fair observation. Thanks for the mini peer-review...and for not flipping out on an insane C++-worshipping rant like that other guy.
@Allyg300011 жыл бұрын
Wow, C++ has so many things like Lua. Yes that's right, I'm one of the far and few Lua programmers!
@ThirtyVirus12 жыл бұрын
can you please have an extension of this series that goes into game programming?
@jamesnorth412212 жыл бұрын
He is saying that his professor makes this stuff, the fundamentals sound super complicated when bucky makes it sound as it is supposed to sound, simple.
@shatley12312 жыл бұрын
yeah tuna sandwiches and fish and stuff like that make it so much easier man
@koustubhsharma28074 жыл бұрын
Thanks for clearing my doubt
@gonzo19113 жыл бұрын
@broadude well in general c++ is used mainly for all systems, there's also c#(XNA) for xbox specific games, java for games dev is slowly on the rise with minecraft. To make that decision its always best to determine if a language has suitable game making libraries documentation & help forums on such topics. C++ - lazyfoo dot net (SDL, OpenGL) C# - microsoft provides links on their site Java - lwjgl dot org hint you can also just youtube\google 'language' game tutorial
@lazzerbear12 жыл бұрын
God nothing but watching C++ and java tutorial for 2 days now.
@timlyo12 жыл бұрын
4:06 the boop continuation condition? did I miss hear or is it really that cool?
@Moon_Rose달장미4 жыл бұрын
sorry to say but u misheard it, it's loop continuation condition....ik it has been 8 years since u asked this, so by now u probably and obviously know that..
@SeanRamey13 жыл бұрын
@Programmer142 the for loop is more limited with stuff you can do and is more compact. The while loop is easier to understand and deal with I think so I never use for loops.
@Grimm_6th11 жыл бұрын
Very helpful, and very easy to understand and put into use. Thank you good sir.
@toxictriggeredgamer5 жыл бұрын
#include using namespace std; int main() { for (int x = 1; x >0; x++) { cout
@stefomc12286 жыл бұрын
2019?
@ملاحظةبارعة5 жыл бұрын
2020 huh
@rngnodal93164 жыл бұрын
2040 huh
@priyanksisodia4 жыл бұрын
huhhhhhh watch dark
@mantiquenawaz8234 жыл бұрын
2021 here
@donovanelliott90603 жыл бұрын
2021 now :)
@popescudenis75624 жыл бұрын
thanks, i had problems understanding loops
@zy.r.43233 жыл бұрын
U just need some time to understand loops. Keep watching
@Remychels10 жыл бұрын
basically the same thing as a while loop. Good video.
@NikorasuChan12 жыл бұрын
I used this alot in GML before, so this is as easy as pie to me XD
@calccalccalc13 жыл бұрын
You're awesome dude!
@syntheticworlds3 жыл бұрын
This really helped! thank you!
@skychy13 жыл бұрын
@gonzo191 C++ also has the Allegro library which is good for game programming
@ckingz85058713 жыл бұрын
Bucky the legend should build an operating system and you bet me pc is going to be running it.
@rohangupta14995 жыл бұрын
Bucky bhai is awesome..!!
@AlanCarre11 жыл бұрын
Forgot this goes ahead of that 00402403 stc
@grahamcracker-inc10 жыл бұрын
I have a couple questions. Can the variable be declared outside of the for function, and isn't the middle/second part of the for function just a while function squeezed in there.
@7873109 жыл бұрын
+THE UNIVERSE probably too late to reply but 1. yes and 2. most for functions can be rewritten as a while statement, so yeah basically. for functions are just "all in one" so to speak
@samiamiax6 жыл бұрын
Thanks for replying anyway, it really helps future viewers like me with the same questions.
@TheBurgdorferi11 жыл бұрын
Does loop continuiation condition must have variable that is defined for the 'FOR' loop or it can be any logical operation such as for(int x = 1; 4
@TheTechSpaceUS8 жыл бұрын
When declaring an object do I have to put it on top the where the objects is being used to call a function? Because when the object declaration is on the bottom it seems to not work.
@Qazqi11 жыл бұрын
C++ is already hard enough to parse, but for (int i : boost::irange(0, 10))
@MrTom175012 жыл бұрын
Im 12 and this is very easy to learn. I had a Lua teacher and he said that it would be very hard for me :) But its not ;D
@xCr0nus12 жыл бұрын
i made a simple program to output a sequence of fibonacci numbers up to the number inputted by the user. how can i make this program loop repeatedly, instead of only allowing the user to "press any key to continue. . ." and exit when it is done?
@niceheadcrab3422512 жыл бұрын
Sounds more awesome than weird :)
@MrPedala9411 жыл бұрын
@zszs100 perhaps you run a different program such as microsoft visual studio?
@dragonishu12 жыл бұрын
what compiler are you using???
@vplof13 жыл бұрын
What should i do to print a series of character using the for loop. # ## ### #### ##### something like this
@gonzo19113 жыл бұрын
wow its been a while since i used c++ as school focused on java
@priyanksisodia4 жыл бұрын
i just realize that ,your comment is 9 years old, can i expect a reply
@jmc88963 жыл бұрын
can you give me app in android for looping? because i can't compile that in c++ coding
@PossibleTango7 жыл бұрын
I'm learning
@lastofthestars64817 жыл бұрын
where are you now in your programming journey :))
@DJLad1612 жыл бұрын
I love you, got so annoyed about have to keep switching back to my mouse :D
@XxnitroxXxwarrenxX12 жыл бұрын
Thanks soo much !! really helped !!
@3dUber12 жыл бұрын
is there a way to change the increment each time it loops? thx
@virendermohan70307 жыл бұрын
In the 'for' loop, does the order of the conditions matter? eg-(1) for (x=1 ; x
@totsuzo75826 жыл бұрын
It does matter. afaik
@KonradCha6 жыл бұрын
I think the order is essential here. It defines what you are going to get in result of execution such command.
@BP28Gamingsxz6 жыл бұрын
Can you please do a asterisk pyramid using for loop plssss
@PixelPulse16812 жыл бұрын
I want to know how to use pointer and array.
@zszs10011 жыл бұрын
Why i copied it exactly the same but it doesn't work for me I get error? I did something wrong when starting a new project?
@aronreviour91649 жыл бұрын
this can be done in a while loop extremely easily
@dvorapat10 жыл бұрын
if _x++_ => _x+=1_ => _x = x+1_ What is _++x_ equal to? Thanks for answer :-)
@puffbluesam02110 жыл бұрын
Example: if x = 1; Then "cout
@BradenBest8 жыл бұрын
x++ is the odd one out, not ++x. All other expressions return the result of the expression after evaluation. x++ and x-- are the only operations that return the value _before_ the operation is done. Thus, (x++) < (++x) == (x += 1) == (x = x + 1) Another way to think about it is to look at the order of the tokens: x++ -- return value, then increment ++x -- increment, then return value
@DeividasGedgaudas11 жыл бұрын
To infinity and beyond
@mcg20k13 жыл бұрын
I sent you a message with the code to make that pattern due to youtube not letting me put code in the comments.
@lazyblaze50810 жыл бұрын
How can I get this loop to start with a number that I want to put in myself? So instead of x=1 i want to be able to put in any value for x and it still do this loop.
@mariioji359810 жыл бұрын
are you looking for something like this int x; cin>> x; for(x; x < 10; x++){ cout
@TheDiamondGames10 жыл бұрын
write it in main like so: int count; cin >> count; for(int x = 1; x < count; x++){ //yourcodehere }
@FingersBlazin8 жыл бұрын
I tried doing this the way we were doing them a few lessons ago: why no workey? #include using namespace std; int main() { int x=1; for(x < 10){ cout
@acrazyindian12 жыл бұрын
looks cool, but would work with any integer which is positive :D
@GobbleDGoopple12 жыл бұрын
won't that crash a computer
@tourist1r12 жыл бұрын
Sometimes I feel we should be in the matrix world where over 9000 copies of Bucky can be made so we can all have a Bucky in colleges...etc
@H2kPrograming13 жыл бұрын
is there any enhanced for loops in C++ like in java?
@DJLad1612 жыл бұрын
I wish there was a shortcut for build and run
@AlanCarre11 жыл бұрын
You know ... it's too bad you were so rude. Because in fact what you have *is* the correct way of doing it, but nobody will see the comment because it's been voted down too many times. I clicked it because I was curious about what could possibly get people so worked up about a simple while loop. - A
@605jik11 жыл бұрын
start at 1 and increment by 2?
@thomasabramson10010 жыл бұрын
code did not run nothing outputed on screen used your code #include using namespace std; int main() { for (int x = 10; x < 10; x++){ cout
@damianmatthews295410 жыл бұрын
check the variables within you for loop parameters. It should read for(x=1; x
@thomasabramson10010 жыл бұрын
Damian Matthews thanks got it
@meganathansubramani207012 жыл бұрын
what is the code for show only odd or even numbers?
@cjmproduction12 жыл бұрын
Am I weird because I click his ads as a way of saying thanks?
@koustubhsharma28074 жыл бұрын
Bro , U did not declare x but it still worked. BUT HOW??????????????
@MrMitmit12313 жыл бұрын
do this set the variable to 0 set the test to < 100 and set the incrament x+= -1
@babylongate11 жыл бұрын
best video
@DJLad1612 жыл бұрын
I wanted him to do that as well, but then I thought he might not know how :(
@JelaniLeBourne10 жыл бұрын
I don't get how people use c++ to do windows programs :/
@Almin009710 жыл бұрын
They use visual programming languages, like visual c++, it has the same syntacs and stuff but with some graphics etc...
@Almin00979 жыл бұрын
haha sorry, I watch Bucky so I can also spell some words wrong
@BradenBest8 жыл бұрын
+AlminPython Visual C++ is an IDE, not a PL. And the GUI toolkit that lets you draw windows and crap comes from the Windows API (which is a library, whose API is found in windows.h), not from the IDE. The IDE is just there to provide you a text editor, a compiler, and some other stuff (like a debugger). Because it is low level, WinAPI is about as difficult to program with as libX11. They both give you low level access to the system GUI. It's preferred to use a proper toolkit like GTK (C/C++) or Qt (C++), though, since they are portable and OS-agnostic. Whereas WinAPI is exclusively windows and libX11 is exclusively Linux/UNIX.
@omegapixelled8 жыл бұрын
AlminPython, you're kidding, right? Visual C++ is NOT a "visual programming language..." it's a compiler.
@BradenBest8 жыл бұрын
omegapixel wtf is a "visual programming language" anyway? The only languages I can think of that might match that description are befunge, Piet, and funciton (actual spelling). And they are all joke languages designed to be cryptic and difficult to program in.
@a_wise_person4 жыл бұрын
is it intermediate level or beginner level please answer guys.
@hetaeramancer2 жыл бұрын
EXPERT LEVER!LL
@nivednambiar68456 жыл бұрын
what is the difference between for and while loop
@AGerde6 жыл бұрын
NIVED NAMBIAR while loop is usually based off a user input, so while this do that. While (x >1) {logic} For is more defined by you when to exit. For(your integer, when exit, How much count each iteration) {logic} I usually will use a for loop to gather information into an array, and a while loop to keep a program going. Like his tutorial that talked about Sentinal operators.
@augustehrlich14706 жыл бұрын
Honestly I think that for loops are just condensed versions of while loop. THey can be used for the same things, its just a matter of preference.
@abhishekkulkarni70577 жыл бұрын
but why not use the RETURN value? Can someone tell me?
@abhishekkulkarni70577 жыл бұрын
Peterolen So there is no need to return value if the function is main() ?
@abhishekkulkarni70577 жыл бұрын
Peterolen Thanks buddy! You helped a lot.
@namelast-name6167 жыл бұрын
run it and wait till it ends: #include using namespace std; int main() { for(int x=1; 10
@yasmindamia81808 жыл бұрын
how to use in stdio.h??
@awesomelemonade13 жыл бұрын
@MrMitmit123 or you can do x-=1
@Direwolf5612 жыл бұрын
Half of their job is to project their professional egos, the other one's for teaching.
@evannera207712 жыл бұрын
buena esa
@m14k15ts2911 жыл бұрын
It would have been funny if you called the int C instead of X, then it would say C++ at the end of your argument. Wow I have a bad sense of humor.
@woodivan10 жыл бұрын
really helpful, thanks!!
@mrreflecting46914 жыл бұрын
"Basic Bucky terms" hahahahha
@68ncom8611 жыл бұрын
It would be a lot simpler if you could just do for(10){ Come on, C++!