I'm sorry, but this is literally the clearest 360p video I have ever seen in my life.
@laurelclementedinopol36159 жыл бұрын
+Jacques West (West Coast Aviation) yeah... check out his other video showing his house... and you'll know why... :D
@wafflez98888 жыл бұрын
+Laurel Clemente Dinopol Link please :D
@zapxcero7 жыл бұрын
LMFAO YOU SAID IT
@yosansu4 жыл бұрын
ikr
@beastgod555410 жыл бұрын
your tutorials>college
@JonathanPunti7 жыл бұрын
Yes!!!
@ian314156 жыл бұрын
not really, you are just learning syntax here.
@shutdahellup694206 жыл бұрын
@@ian31415 thats all you really need and some examples... then rest depends upon your creativity and practice.
@ian314156 жыл бұрын
@@shutdahellup69420 cool, so can you help me parse a string of the form [-]n1 / [-]d1 op [-]n2 / [-]d2 where n and m are denominators and the negative signs may or may not be there and op is + - / or * from these tutorials? What about doing it with tree's? Can you explain a tree from watching these videos? They're pretty useful.. pretty sure a B+ tree is used to store files on Microsoft so it's not just theory. But not the kind of thing you can realistically come up with creativity unless you have a math PhD.
@hutlazzz5 жыл бұрын
@@ian31415 Internet tutorial will make current academia education useless. Eventually will turn out just like this in future,ton of lecture and exemple from home... Thats the future of learning.
@Galluxi9 жыл бұрын
Btw guys, you can just type total += number;
@river66348 жыл бұрын
+Geometry Dash Galluxi Nice to know it works for C++
@Galluxi8 жыл бұрын
+Riverreed Ward :)
@dereklampa45448 жыл бұрын
+Geometry Dash Galluxi That'll work. Although thenewboston only kept it simple, not efficient and quicker.
@Galluxi8 жыл бұрын
+Derek Lampa (Trackten369) "+=" is simplier
@dereklampa45448 жыл бұрын
Geometry Dash Galluxi I know. Most newbies do not know "+=" so they use it basic ways like "x = x + y" since that looks very basic while we use "+=" for more efficient in writing codes.
@davidmuhs45908 жыл бұрын
OH MY GOSH I LOVE THIS. PROGRAMING IS GONNA BE SO FUN SO GLAD I HAVE THIS VIDEO SERIES.
@GJH4659 жыл бұрын
Been watching you on solo learn to learn c++ and you are great. Sir a applaud you
@JowyFull478 жыл бұрын
Thanks man, I just started programming about 1 year ago, I'm 25 now and thanks to you I have been able to keep up in class. currently studying to be a software engineer. thanks bro, wish all the professors were like you.
@RangerMcFriendly Жыл бұрын
1st year here, how did it all go? Did you end up as a software engineer?
@chicharhon1351 Жыл бұрын
@@RangerMcFriendlyman me too i wanna know
@vicda59418 жыл бұрын
bucky, your videos are awesome. I really enjoy them. I've been struggling in my c++ class, but after watching them, everything in class starts to make sense.
@alisonmcewin635210 жыл бұрын
You are the sole reason I'm understanding programming. Paid wayyyy to much for this class
@cristiannaziru19878 жыл бұрын
Alright this is a bit confusing now. We didn't even need the "(x
@shadane14368 жыл бұрын
better than my professor
@Benjy18 жыл бұрын
I wish he was my professor
@usmankhalifa56998 жыл бұрын
same
@beri41387 жыл бұрын
+Benjy L Oh my god that would be so awesome!
@DimitrisBoump12 жыл бұрын
I think you forgot to day "Pretty cool aha?" :P
@AsadAli-om9ir2 жыл бұрын
The name C++ actually came from the concept of Unary Arithmetic Operator ++. So, C++ actually means C+1. 1:30
@nightprogrammer74748 жыл бұрын
just a couple million of dollar :)
@Vorbis513 жыл бұрын
Bucky, you gatta be the coolest guy on the internet. All your little quirky things just make you so awesome.
@exsertchillax13 жыл бұрын
Finally, I learned something useful and something that is not advanced to remember, such as classes. ;)
@Double_Wood12 жыл бұрын
"total += number;" ... is another nice way of writing... "total = total + number;" ... a lot of languages don't offer these nice shortcuts so i like to use it where ever possible!
@hello83812 жыл бұрын
This is a good reminder and a wake up call for me :)
@SeifOrabi11 жыл бұрын
Couple of million dollars, and you call this a calculator? LOL! Love your tutorials Buckey.
@safrinabohel73246 жыл бұрын
your video really help me a lot i watched it from the first tutorial and i'm gonna finish it..than sitting in the class almost 3 or 4 week and i don't get anything from it....anyway thank u..your video is the best and it's really easy to understand..
@danieldimitrov656211 жыл бұрын
I FINALLY UNDERSTANT IT. THANK TOU SO MUCH BUCKY !!!!!!!!!!!!!!
@2marshtomp12 жыл бұрын
I can explain Bucky's life in 3 words : Awesome Bacon and "So you're sayin alright...."
@heisenberg79453 жыл бұрын
Pretty cool huh
@marcus93933 жыл бұрын
Bucky after 19 tutorials : Okay! Lets do something useful now
@johnmurphy12486 жыл бұрын
"So our program is working five and dandy so far." - This is why I enjoy watching Bucky.
@TheVincenthwind12 жыл бұрын
After hearing the problem, I paused the video and tried to figure it out myself. To my grand surprise, I succeeded. I decided to watch the video anyway and found that what took me 40 lines of code to do (granted, I had extra some extra cout lines), took Bucky only 15. So I can code, I just manage to do it in the most inefficient way possible.
@hungrygrimalkin561010 жыл бұрын
Always declare variables with default values for better memory managing.
@HexPlays13 жыл бұрын
for those of you looking to get the average number of the 5 put this below you cout
@Dansscreen13 жыл бұрын
6:35 lol that cracked me up.. such a casual 19 episode build up to this moment
@devChoco2 жыл бұрын
Thank you Bucky for the advice especially.
@lickguitars1276 Жыл бұрын
great tutorial, it help me alot in understanding how to think logically
@rbrik47479 жыл бұрын
Just to point out, Bucky, using ++ as an easy and quick increment also seems to be less CPU intensive therefore this is now considered a good practise :)
@BradenBest8 жыл бұрын
Okay...I don't know why my comment disappeared with an "unknown error". So I guess I'll just post it again - - - - 1:22 `x++` and `x = x + 1` are not the same. x++ is actually a very unusual operator that, unlike every other type of assignment there is in C, returns the value of x BEFORE performing the operation If x is 1... int y = x++; // y = 1 int y = ++x; // y = 2 int y = x = x + 1; // y = 2 int y = x += 1; // y = 2 The way you can tell the difference between x++ and ++x, if "x++ is a post-increment and that is unusual" isn't good enough, is in the order of the tokens: x++ return and then increment ++x increment and then return The "expression returns its result" trick works very well with another fairly obscure language feature most often seen in obfuscated/golf'd code: the comma operator If you can figure out the results of this expression, then you have a decent understanding of the comma operator: result = ((a < b ? (puts("complexity!"), c = a + b, d = c * b, d + c + b + a) : (puts("simplicity!"), result +=b)), 20 + 10 + 12); ...for (a,b) in (4,5), (7,6), (0,0), and (12,9) If you can understand the source code for Muller's original brainfuck interpreter*, then you don't even need to be reading this. * For some reason, it's really hard to find online. It looks like the original distribution is no longer around. I happen to have the source code lying around, though, so here it is: pastebin.com/X04CiBX9 Lots of clever tricks in there. From the header of the for loop and how it combines assignment with the base case, to using pointer arithmetic to share memory (bf source code and "user memory") and step through the source code, to using && and || and ?: in place of if/else, to abusing the comma operator to avoid writing {} brackets for the for loop. It's got it all, and is an excellent showcase for how expressive C is.
@superstudent2808 жыл бұрын
Damn!
@ahmedhamdy81212 жыл бұрын
The two teachers that were disliking each video, got tired because of the large number of videos. Bucky wins.
@casperes091211 жыл бұрын
English is not just words put together, it basically also has something called grammar. Try it out, it makes reading messages a lot easier
@Arthurk3465 жыл бұрын
"...wecome to your 19th tutorial. And you know what? The bacon from previous tutorial was tasty."
@tlita9310 жыл бұрын
Shorter version of total = total + number is total += number :)
@dibbiepk12 жыл бұрын
@TheBeuteOffical Yes, its possible, if you use a String instead of a Int, Strings hold 1 letter, ints hold numbers, you might learn about that later on
@evanmastermind11 жыл бұрын
x++ adds 1 to the variable "x"... x
@aether-s28426 жыл бұрын
So whats the point of "x" being there after you have made the int "number"?
@patricengao94154 ай бұрын
Anyone noticed that the number of integers you enter has to coincide with the test, otherwise if you enter fewer integers, the program iterates addition of the last integer up until the test is met? Good one though, Bucky!
@TsvetomirLazarov12 жыл бұрын
No, because it will increment it only by 1. But you can make it like this: total+=number; That will add number to the total.
@ianiket00139 жыл бұрын
Thank you bucky for sharing the video..........................
@mokomamaminecraft10 жыл бұрын
you could just do "total += number"
@LukasTeeVee10 жыл бұрын
And I thought people telling him to use "bacon++" in the last tutorial were sad...
@SirRobbStarkGamin10 жыл бұрын
***** you have to keep in mind, these tut's are for complete noobs to c++, so they way he does it explains it better, bacon ++ is just a shortcut.
@Rahulbajaj5615 жыл бұрын
I'm very sure that he knows different ways of writing the same code, but remember he's making these tutorials for complete beginners who have zero knowledge about programming. so he knows what is the best. you don't have to tell him what he needs to do just to look smart . and if this wasn't your intention re-frame your sentence.
@Rahulbajaj5615 жыл бұрын
jeez, why am i even replying to a 4 year old comment?
@catlover4ever1045 жыл бұрын
@@Rahulbajaj561 hey dude I like ur username
@marko444913 жыл бұрын
holy shit!!! i just made a stone aged calculator :D im starting to like this tutorial a lot :D
@Phl3xable13 жыл бұрын
cheers, can't wait for more!
@venkateshkulkarni22275 жыл бұрын
Shouldn't an error be shown if I enter more than 6 numbers as the input?
@timlyo12 жыл бұрын
Good to know Your comment made me feel warm and fuzzy inside too :D
@gnaneshg76636 жыл бұрын
Best c++ tutorials
@TheCosmicChicken12 жыл бұрын
I put on captions; here's a sampling of the gems I got: "Let's go ahead and just give him a nice little pronounced rain [...] mom" "The first time the user anti remember it was ten so the total which was a hero before is now equal to zero plus ten so now totally host ten the next summer they entered was aids" "Now it it was twenty five blasphemous five also" "You guys in goa injected on calculator into words enemies who just build the best calculator unearth"
@lx63818 жыл бұрын
3:00 i dont understand how you could enter 5 different numbers. wtf ?
@firebirdyt91508 жыл бұрын
Because the line : cin >> number; runs 5 times, although the new number will replace the previous number, the while loop (x
@fatemonkey8 жыл бұрын
***** Nope.
@fatemonkey8 жыл бұрын
***** Still nope.
@fatemonkey8 жыл бұрын
***** I'm the child even though you don't even understand what the term "weeaboo" means?
@fatemonkey8 жыл бұрын
***** Any particular reason? Or are you just calling me an idiot as a way of trying to back out because you have no idea what the hell you're talking about?
@kyy61508 жыл бұрын
Why when i position "int total=0;" inside the While loop function , i get an error?
@MAlicechan8 жыл бұрын
If you declare a variable inside the loop, it will only be defined as a local variable within that loop, meaning that it will not work in the main function. Also it will initialize it every time the loop repeats (which means it will return back to being = 0). tl;dr it's bad practice to initialize variables within loops (exception is for loop counter)
@dibbiepk12 жыл бұрын
LOL!!!! Love the ending "Ill see you next time when im a millionare!" :P By the way, to clear up some questions you may have he missed: What if they enter 6 numbers? Then you need an else statement, somthing like else() { cout "You can only enter 5 numbers man... dont chate me!" } or whatever
@iaybalac78747 жыл бұрын
I understood everything in the tutorial but still, I have a question: So i, didn't set a number for total at first, just out of curiosity, i left it as just a variable like int total; and then everything went perfectly fine but it just calculated the whole thing wrong. Why exactly is that?
@TheBscit13 жыл бұрын
@bKfASSASSIN I dont think he said it wasnt in C. I think the C++ thing pretty much means that C++ is a simpler and faster way than C just like how n++ is a a simpler way of n = n+1
@ste54027 жыл бұрын
Someone explain this tutorial to me, please? I understood the thing about the total, but I don't quite get the stuff he wrote about the x variable. Especially, I didn't get why int x must be set to 1.
@olivebates13 жыл бұрын
you can also do x+=1, same outcome
@seaverschultz9329 жыл бұрын
i need help. A message keeps appearing saying that "cannot open output file bin elease\trivia game. exe access denied" the program is called trivia game. What does this mean?
@MultiThunder5412 жыл бұрын
total+=number; works the same way and saves you keystrokes.
@belgacuervo12 жыл бұрын
to keep it simple, this is basic programming. But total +=number is legit.
@zeustheboerboel37948 жыл бұрын
You already are a millionaire for me!!!! ;)
@crjacinro13 жыл бұрын
Hey MR. Bucky Roberts,, how many c++ tutorials have you made so far??? So far, i have seen 3 series tutorials on C++ : - Bucky's C++ Programming Tutorial (Code:Blocks, 2011) - C++ Tutorial (dev C++, 2008) - C++ Programming Tutorial (Code Blocks , 2010) so which of these tutorials am i gonna watch first as a beginner?? whats d diff between the 2010 and 2011 tutorial?? thanks..i just want to learn c++ .. NICe VIDs by the way...
@josejaimefelixgarciagarcia888410 жыл бұрын
Hahahaha nice folder name bucky. 5:22
@DromeG6010 жыл бұрын
Have you skipped half the tutorials?
@abirishtiaque974910 жыл бұрын
Hey Bucky where are your tutorials about converting strings to lower case or upper case letters and finding out their lengths and all those stuff ?
@pabloolbap64782 жыл бұрын
cout
@hildamartinez87788 жыл бұрын
You would not need 5 different integers to save the cin values?
@ouisabughazaleh11875 жыл бұрын
"let's just copy this and email this to microsoft and hopefully they pay me you know just couple of million dollars for it " i actually laughed so hard and paused the video for a bit
@TheElectronics012 жыл бұрын
You must use #include -LSS-string-GTR- and replace any int with string
@creehoggan432710 жыл бұрын
when you enter a number over 9 digits, the computer explodes.
@mohiuddinopu11 жыл бұрын
if um not declaring total = 0, the final value of total is 2 short ( if the sum of 5 number is 10, but shows 8, ). whats the reason?
@1234321jack11 жыл бұрын
When you define a new variable, your telling your computer to pick a small piece of memory to put something in. This piece of memory will have some old number left in it. If you don't set the variable equal to something, it will stay set as the old random number as default. So, in your case, the piece of memory total was assigned to had -2 left in it, and since you didn't reset it to 0, this subtracted 2 from the total.
@IReDoXI11 жыл бұрын
*INCLUDE AND NAMESPACE* int main() { int x; cout
@KingKilleer968 жыл бұрын
best calculator on earth xdxdxdxd
@mrbeantje113 жыл бұрын
@SuperHappyvideo x++ adds 1 to x if x = 1 and u do x++ cout
@lelegricc152010 жыл бұрын
How come if u dont do total = 0; you get a really weird long number?
@P4INKiller12 жыл бұрын
Because it was TOO AWESOME.
@SmithsRichard12 жыл бұрын
You can also do total += number;
@armasxu8 жыл бұрын
i like your good commendatory!!! copy and paste it to microsoft and be a millionaire hahaha
@vailynx13 жыл бұрын
What if I want to show me al the numbers that I introduced in ascending order??
@neo0719919 жыл бұрын
i tried making: int total not equal to 0, i didnt assign a value to total. im trying to figure out the difference in putting an assigned value of 0 to total vs. just 'int total' itself. int total; vs. int total = 0; anyone care to explain it to me, im just really curious.
@MrOlympus2239 жыл бұрын
+NeO Kun i dont know about c++, but in Java, if you dont assign a value to a variable, it will either be "null" (wich means it has no value) or you get an error that the variable might not have been initialized. In the last case your program terminates. So i would recommend to always assign a default value to your variables.
@daanleiva9 жыл бұрын
+NeO Kun It's slightly different in c++ than in Java but MrOlympus223 is right, you should always initialize your variables. Basically this falls under the "undepredicatble behavior" category, meaning that the value for total could be anything (typically based on old values that your stack had). Normally you'll get some trash value like -151981498 something. Better to always initalize to have a guaranteed behavior. Hope that helped!!
@neo0719919 жыл бұрын
Thanks for the reply guys, still a newb here :)
@leenminr65536 жыл бұрын
They added a two plus signs, they thought it was cute hahahahahahah
@IReDoXI11 жыл бұрын
When you do "int x;" the value of x is not 0 by default. Its some random number.
@klodiqoshku43155 жыл бұрын
by using the knowledge I gained by bucky (untill now) I managed to create this: #include using namespace std; int main() { int password = 123456789; int z = 1; int x; cout
@KyLey199013 жыл бұрын
@TheNeweN24 not sure if this is in engineering but its in computer science for sure
@pancekaradzov388510 жыл бұрын
Did you become millionaire? :D
@ТайныйЯ-к3ь10 жыл бұрын
Of course, he did.
@Veldr0N10 жыл бұрын
I think he knows all the programming languages in the world so,he did indeed
@pancekaradzov388510 жыл бұрын
I guess that. I am dreaming to become one day like him doh :)))
@IgorAherne9 жыл бұрын
VeldroN hello :D
@kursatsaimtuna71636 жыл бұрын
have you achieved that goal? :)
@rbsupercool12 жыл бұрын
preeeeeeeeeeeeettty cooooooool hahhhhhhhhh!!!!!
@LosEagle11 жыл бұрын
Thanks! Never noticed :)
@casperes091211 жыл бұрын
That would make sense. Thank you.
@mockingbird38097 жыл бұрын
#include using namespace std; int main(){ int a = 1; int number; int total = 0; cout number; total = total + number; a ++; } cout
@nigelstanford411 жыл бұрын
This makes no sense...what was the x++ there for at the end if the vid and the x
@A1701D11 жыл бұрын
Good example, however teaching var++ before ++var may not be the best in terms of coding etiquette -- while they yield (more or less) the same result, generally unless you have a reason to use the post-fix operator you should use the prefix operator (code-wise, it is technically faster and more efficient). Something I learned from my coding class.
@2marshtomp12 жыл бұрын
I was actually thinking about that exact thing 2 days ago...
@Busola297 жыл бұрын
I think this program better works with long command... Where is now bucky , family , maybe no time or work for corporation? GZ for best C++ tutorials Bucky , Bucky go to Next year i will bee millionere... :)
@metznimbo2913 жыл бұрын
@xXxDiukexXx I dont have visual, but try typing system("PAUSE"); at the end, before return 0; . it might work
@chxse18177 жыл бұрын
Python: 8 lines of code C++: 20 lines of code
@chxse18177 жыл бұрын
x lines of code assuming that each statement is on a new line, just as well-written code should be. When you have everything on one line you cannot possibly debug. The compiler only tells you which line the code error is on, and a brief description of what was wrong. You can see the issue here.
@casperes091211 жыл бұрын
What about proofreading? I don't see the connection?
@Junaidkhan-ti8qd9 жыл бұрын
Plz help me how to use of loops in an equation of hyperbola
@Junaidkhan-ti8qd8 жыл бұрын
yeah..but you are too late bro.so i was done it early
@TheNeweN2413 жыл бұрын
hey can someone tell me is this the inginer (i know it's spelled wrong) level of education because i'm 16 years old and i just want to know advanced stuff that i'll learn in school
@LosEagle11 жыл бұрын
Why did he set total to 0? If you don't add value to variable its 0 anyway right? So its kinda useless.
@chulibran13 жыл бұрын
You are the best. Really.
@casperes091211 жыл бұрын
I don't think I'm seeing it mate, I might be slow here... Could you please point at exactly what you mean? I'd really like to understand this...
@AliasProsch12 жыл бұрын
I would guess, since it's a tutorial, it's easier for others to understand that statement than +=
@ARYAINDIA199711 жыл бұрын
I'll rather preffer to study from here rather than BOOKS!