Made it half way through the video without realizing your keyboard was upside down. I applaud you.
@rubyPWNS18 жыл бұрын
+Kaden Burgart It can't be real, right?
@prayushkhadka69818 жыл бұрын
how was he spacing?? makes you think
@g38ra8 жыл бұрын
I think there's even someone's chuckling in the background @ 6:12 or was that the keyboard being flipped by him.
@curious_sphinx7 жыл бұрын
What you should be applauding is his sense of humor!
@JishKlur9 жыл бұрын
It is crazy watching this video now when i first started programming 4 years in my free time as a beginner. Now I am learning this in college and I happened to stumble upon one of buckys videos for help and it feels unreal that now I am actually doing this as a career.
@MrR3set7 жыл бұрын
Josh Klauer You just described what will be me in just 4 weeks :) I learnt all this on 2015 but i forgot couple things i wanna sharp
@johnmullin29639 жыл бұрын
"Alright Bill, Let me be. I will do this."
@TheVerbalAxiom8 жыл бұрын
"Oh it was upside down" *Facepalms* REALLY BUCKY? REALLY? Lmao
@tige6303 жыл бұрын
Can't beat Bucky, this is the best cpp series I have ever seen, concise and straightforward every time.
@jurakpreetsingh21553 жыл бұрын
Hey ,can you code in c++?
@Seyeumi5 жыл бұрын
oh my god the way you explained this was so perfect. This is the exact kind of approach I need when being taught coding, a more analytical approach. Thank you so much! This helped immensely 😇
@karnkraftverk10 жыл бұрын
Thanks man, reading my book is useless, I never learn anything, but from these videos I understand it directly!
@user-tz9kn1nu3u5 жыл бұрын
What books you were reading if I may know?
@rarity77973 жыл бұрын
Were you reading your book upside down like how Bucky was using his keyboard upside down?😂
@tiygar85483 жыл бұрын
@@rarity7797 xD
@ikllnp13 жыл бұрын
You are the best C++ programming instructor ever. I wish you taught me back in school
@jasontiller8 жыл бұрын
Thanks Bucky! I know this stuff takes time, so it's cool that you're doing this. Just a few things: 1. Bill Gates doesn't run Microsoft any more. 2. The compiler instantiates a new copy of addCrap for each time it's called with a different argument type. There is no polymorphism going on - templates are purely a compile-time facility.3. You can indeed add chars and strings together - anything that supplies an operator+ and a copy constructor will as addCrap arguments or any built-in type that supports addition will work.
@ignitiondj40257 жыл бұрын
WHAT HOW DID YOU WRITE EVERYTHING WITH YOUR KEYBOARD UPSIDE DOWN
@raurus82026 жыл бұрын
don't question bucky, underling
@Sokar59911 жыл бұрын
Oh it was up side down :P lol
@JackKirbyFan7 жыл бұрын
I SWEATED learning Templates because it was coated with layers of complexity. You broke it down to - oh -- that's it!!!! Wow! Best teacher OUT THERE!!!! WELL DONE!
@sankhanilnayek93455 жыл бұрын
Love that southern drawl man. Guns, barbecues and C++. Sounds like a blast.
@maxfried53282 жыл бұрын
Bucky is still saving college kids in 2022
@khanhchanto31288 жыл бұрын
Thank you Bucky, this is so useful. I was frustrating about this topic and when I google it, i just couldnt find a source that explains well. I own you one.
@MrJapug6 жыл бұрын
Bucky after many months of struggling to understand templates, it finally made sense watching this video!!!! I have a cognitive disorder and this has been my biggest challenge when it comes to programming since I started studying this stuff! Thank you 🙏 so much! I love your tutorials btw!
@bpmoran899 жыл бұрын
Been watching you since my intro class. you rock!
@raftingdon29 жыл бұрын
damn, I wish I would have found you 3 months ago. I was attempting to write a template function and having issues and I found this. I really enjoy the way you describe the reasons for doing some of this stuff. It actually helps understand the concept. The book I have just describes what it is, and I leave myself wondering "Why in the world would you ever do that".
@JoseGonzalez-rt5fk7 жыл бұрын
6:05 The moment when you are teaching someone a lesson, but you realized the lesson you're trying to tell is actually upside down.
@gabrissk029 жыл бұрын
Bucky, you probably have already figured out what you hit at 5:39, but anyways, for anyone who doesn't know... It's the debugger (hit the f8). While debugging, you can't close the terminal window
@anteconfig53917 жыл бұрын
"See that's what you guys get when you buy a new keyboard and all the keys are all over the place, I'm sorry this is like a keyboard... oh wait a minute! Oh it was upside down. ok it's fine now"
@abhijeetckar7 жыл бұрын
i love the way bucky brings his compiler down from the corner to show us output.. like!! Surprise!!!
@4Y0P9 жыл бұрын
Who's Jenna? :D
@g38ra8 жыл бұрын
Yep, never heard of that as a variable before, she must be too special ;)
@4Y0P8 жыл бұрын
W ALT Haha yeah, such a pretty name too
@black_squall8 жыл бұрын
Slooty name
@agnesakne44097 жыл бұрын
some pretty girl he fucked
@TheMusterionOfRock3 жыл бұрын
This standup show has a really good programming tutorial also
@humzauddin66924 жыл бұрын
"Oh it was upside down" Bucky I love you hahaha
@jamshaidmushtaq18115 жыл бұрын
One of the major parts of this video was Bucky's battle with his keyboard. XD
@JokerzWyld9 жыл бұрын
This is life saving
@alina_dial8 жыл бұрын
bucky is the coolest teacher ever
@JigsaTopman9 жыл бұрын
God bless you Bucky!!!
@ThunderLightStrikes6 жыл бұрын
This guy can be a great stand up comedian.
@abdannour266 жыл бұрын
Awesome :), you make it easy in the eye, keep up man. :)
@andeluuledna8 жыл бұрын
Bucky is basically my savior
@jordmax1210 жыл бұрын
lol nice tutorial but see you got a thing there for "jenna"? ;)
@feilauren41669 жыл бұрын
Jordan Max Bucky has too much personality to have to program a girlfriend.
@jim0_o11 жыл бұрын
You should make a thumbs up script tutorial, I keep forgetting to thumb your videos up because my brain is full.
@charlesajones773 жыл бұрын
I have a degree in computer science (from 20 years ago) and I had no idea you could do this.
@ulianazlotnik30937 жыл бұрын
thank you!! love your simple explanations!
@KW-dg6fs7 жыл бұрын
Imagine how much time would be saved if most professors/TAs are anywhere close to giving this good of an intro, then most of our time would be spend playing around with the codes, instead of beating ourselves up trying to understand what the fuck is the purpose of a template.
@mohamedkhalilzouitni38037 жыл бұрын
I salute you, bucky ! you're the man.
@yoismak6 жыл бұрын
Bucky: Oh! the keyboard was upside down. me: *turns keyboard upside down*
@nizamnovruzov56486 жыл бұрын
I failed on my Programming exam but ,anyway thanks Bucky. Your videos helped me a lot.
@xkilla9116 жыл бұрын
F
@DeuceisLegit13 жыл бұрын
Dude, I wish I could subscribe to you 100 times.
@crait6 жыл бұрын
Bucky is the Dunkey of programming.
@dbthem7 ай бұрын
5:42 this is why I use Mac 😄 Btw, great series, thank you!
@ThatDamnYouth11 жыл бұрын
What program were you using/compiling in? Awesome vid
@Trazor13 жыл бұрын
awsome tutorial... meanwhile, how to make the template functions expect (take in) different type of data?? what is that way?? is there any tutorial where you have described that method ( way ) ??
@ditz3nfitness Жыл бұрын
We’re right about using “typename” instead of “class” in the gives the same result, right? VS ?
@avarussurava94888 жыл бұрын
Thanks for the tuto but I got a question for anyone reading this, if the template function gives us such an advantage of not having to define a function type, why are functions still relevant then ?
@xxgamerwormxx28098 жыл бұрын
You could even use the add() function and pass in objects that use operator overloading.
@xkilla9116 жыл бұрын
funny how you realized your keyboard was upside-down half-way but how were you typing with an upside-down keyboard for the first half of the video? did you learn how to type upside-down in your keyboarding class?
@satheeshbrcm4 жыл бұрын
thanks for the tutorial.. Nicely explained !
@folksgames70477 жыл бұрын
Exactly what I needed thanks!
@FaizanZahidNustian12 жыл бұрын
U give superb examples !
@TEKFROLOGIC9 жыл бұрын
Question. So even with the template, wouldn't you still have to copy/paste it to make different functions and change to signs (ex. change the + to -)?
@EmanBook11 жыл бұрын
Hi Bucky , Could you please tell me which program you're using to record your videos ?? BTW , You really helped me with your videos ...YOU'RE A W E S O M E
@Impulse_Photography5 жыл бұрын
He is using CODE BLOCKS ...
@ditz3nfitness Жыл бұрын
What would happen if you decided using characters instead of numbers? Would it return the character added together into a word, or what would happen?
@trannelish94 жыл бұрын
i love it.. clear and quick
@adnanmunawar797212 жыл бұрын
Bucky you are awesome! You rock!
@MarcosFerreira-rc1me10 жыл бұрын
I keep on having this problem whenever i add two numbers together, it gives me "4293399" :?
@SealOSRS10 жыл бұрын
What's your code?
@asfadasfa123413 жыл бұрын
ive been wondering how to do this for about 8 months.. thanks man.
I've never heard the word DA-------TA so many times!!!!
@TheFlyguy318 жыл бұрын
Excellent as always..
@Jack-424213 жыл бұрын
@joaoris yes he did watch tutorial 5: How to build a basic calculator there he uses "cin"
@TheKiloOhm9 жыл бұрын
I understand what the template function does but if it's so great why people even bother using all the different types of data? Does this take up more memory?
@browncoffee1212 жыл бұрын
Now a have a perfect calculator, without overloading lot's functions just like bucky mentioned haha
@avengerbolt49086 жыл бұрын
Hi your tutorials are very good. I need to print system id(mac address) for this which module I need to use ? Or can you make a tutorial on that?
@alphaahtube12 жыл бұрын
That's why they made the reply feature, so we don't have to look for @lilsabaa reply.
@gabrielreinfalke22779 жыл бұрын
nice video, bucky!
@VersusDec8 жыл бұрын
Liked on 43 second for addCrap :DDD
@Matthmatt121311 жыл бұрын
Bucky: So awesome he codes upside-down.
@addobandre9912 жыл бұрын
What if I want to restrict the types of data that are being used (for example: Inputing strings will mess up everything)?
@mirsahib5967 жыл бұрын
i just fell from my chair when he say 'oh wait the keyboard is upside down'
@ujjvalpatel53537 жыл бұрын
I have one doubt, what if I assign Bucky as int ,just as you did;and then I call another function "multiplycrap" working with double. I am unable to do so, compiler argues bucky was not declared in this scope for second call ?? plz anyone reply..
@YTHandle6607 жыл бұрын
Maybe its the coding order
@splinter18176 жыл бұрын
i did kind of same thing , Actually bucky can be replaced with only one data type at a time . So Bucky cannot play a role of both double and int at the same time.
@OskarNendes6 жыл бұрын
But everyone forgets that cout knows how to handle generic types of data. How should I do if I want to create the new c-out?
@NeostormXLMAX5 жыл бұрын
7:25 wow its like you read my mind i was just about to ask that lol
@rodney80185 жыл бұрын
lmfao same, i was about to open code blocks till he said that.
@gatraw13 жыл бұрын
well wait, what if I have both int and doubles and I want it to switch between the two based on user input?
@edgardrodriguezruiz13 жыл бұрын
Great stuff keep the good job
@reemaljaber9 жыл бұрын
alright guys welcome back to your fjdfgjghfj c++ tutorial " stuck in my head XDDD
@mohamedtark70149 жыл бұрын
ريم الجابر are u a software engineer?
@reemaljaber9 жыл бұрын
لا :/
@mohamedtark70149 жыл бұрын
يعنى انت شاطرة فى السى بلس بلس ولا لسه بتتعلمى زى حلاتى كده؟
@reemaljaber9 жыл бұрын
لسه اتعلم 😹:)
@mohamedtark70149 жыл бұрын
ربنا يوفقك
@atata02155 жыл бұрын
what about define the template funktion like that : template const int& max(const int&,const int&); can you explain ?
@zerozano9 жыл бұрын
What constitutes as a "general" data type. I'm trying to use the template for string and user defined class data types but I can't, for whatever reason. I have used both class and typename for the template but none of those work. I'm not even sure what the differences are honestly.
@WhatsACreel9 жыл бұрын
+zerozano There's no difference between “typename” and “class”. You can use classes and strings, but only if they specify the operators that you use in the template. For instance, the string class specifies the “
@JoseGonzalez-rt5fk8 жыл бұрын
3:12 Yeah, and that way is by using the type, "auto".
@JoseGonzalez-rt5fk8 жыл бұрын
I don't really see the difference from using function templates and using the type, "auto".
@786suhaib7868 жыл бұрын
auto cannot be used inside a parameter list.
@JoseGonzalez-rt5fk8 жыл бұрын
khansuhaib Any examples?
@786suhaib7868 жыл бұрын
I may have misunderstood you but you are proposing that instead of using templates we can do something like auto add(auto a, auto b) { return a + b; } This will give a compiler error because while defining the parameters, in this case a & b we cannot use the keyword auto. If you want why is this so, it is because when we define something as auto it has to have a resolution at compile time, but since functions are dispatched at run time auto doesn't get resolved at compile time thus giving an error.
@JoseGonzalez-rt5fk8 жыл бұрын
khansuhaib This actually works completley fine. Using auto is just like declaring a int or something. Although it would throw an error if you put a int value and a double which the error would be that you cannot add a int and a double. I would obviously only use auto if I did not know what it would give out just to make my job easier. I heard that one of the uses for templates was to find what a pointer's address was addressing to (as in finding the address of what the pointer pointed at kind of like finding the address of x even when you are using the y's pointer to x). I probably won't need this until probably I would (which would not probably be anytime soon). I would learn this when I need to is what I'm saying. I don't find much of a use for it as of now.
@marcinszymanek38943 жыл бұрын
I will definitely remember that when my boss, Bill Gates, asks me to write a function that adds crap.
@MaxGuides4 жыл бұрын
Great, *but* how do I pass another function through my template?
@Impulse_Photography7 ай бұрын
Do using Function Templates eliminate Function Overloading ?
@MegasXLR7 жыл бұрын
I prefer to type it as "template " as I may get confused if I type 'class' :)
@javiermarin42987 жыл бұрын
gtakros it's for the sake of simplicity of the video.
@WilliamGLewis-yt9fw8 жыл бұрын
what compiler is being used? I'm new to C++ and don't know what compilers are most accessible to new coders
@steam_vortex26088 жыл бұрын
You should try Visual Studio Community version; it's free and it's an awesome IDE with built in compiler; it also is diverse in that it can code in numerous languages depending on what types of programs you are typing to make (it can use C#, C, C++, Python, Javascript and several other languages as a default which you can choose from when initializing a file type). Just remember that when you are making additional files that communicate with one another they have to be saved in the same folder; I'm also somewhat new to coding by the way. I've been practicing for about 3-4 months and it's finally starting to make sense; in any case, good luck with your learning. Cheers!
@YouKnowMeDuh6 жыл бұрын
For future reference, I know of the Cygwin g++ and MinGW g++ compilers, which can be used with Netbeans if you wish.
@blazingkin13 жыл бұрын
Good job mr upside-down keyboard man
@alexisperez458110 жыл бұрын
Does anyone know what program he's using? I like the simple interface.
@TheGamesOfGaming10 жыл бұрын
Code Blocks 99% sure :) Tutorial 1 was installing Code Blocks I use VS doe
@waisaleratulevu631510 жыл бұрын
Alexis Perez you should try using Netbeans. Its awesome
@feilauren41669 жыл бұрын
Alexis Perez Simple editors - Code Blocks, Sublime, Brackets, all good with very simple interfaces.
@BigSeeProduction9 жыл бұрын
Fei Lauren Atom and CLion are great too!
@feilauren41669 жыл бұрын
Nice. Always checking out new things.
@dibbiepk12 жыл бұрын
Well, it depends on the datatype, if its a string, and a int, then you would have to make it accept for that, id say re-watch his video over, and replace what he sais with what u want, like instead of 26 + 14, do somthing like a + b, if it doesnt work, its not like you lost anything, PM me, and ill try to get you more detail if you need it
@joshuapierson80111 жыл бұрын
In a sense he is right you can learn basic techniques but, in the long run you are either a programmer or a coder a programmer can write almost anything using a language . A coder is someone who knows a programming language but can only write things like cout and cin. Not knowing about file streams or string functions. So in a since you can be a beginner but in that you would be a coder not a programmer.
@mananbarjatya182212 жыл бұрын
what if we want to do the same thing in "main" i mean like if we make a program where the user enters an anonymous data type..
@herp_derpingson12 жыл бұрын
Apparently I cant add a int to a double. Looks like C++ doesnt support Coercion. e_e
@dresnyd11 жыл бұрын
6:10 "Oo wait a minute, Ooh, it was upside down!" please tell me you were not referring to the keyboard :D
@wojtushom17414 жыл бұрын
What IDE do you use?
@DuckSleazzy12 жыл бұрын
have you ever tried square root of 4 and then -2 in windows calculator... and also sqrt(9) and then -3...??? :) ;)
@alexanderleeart6 жыл бұрын
so this is like dynamic typing in Python?
@Tulanir111 жыл бұрын
1:52 "And make sure we don't have any errors, and we have 50..."
@Fieldy665411 жыл бұрын
awesome tut, beautifeel-
@srarun19968 жыл бұрын
shouldn't i get 'c' as output if i pass char 'a' and 'b' as parameter? :P no seriously. why not char?
@ethendixon46126 жыл бұрын
Alright, Bill . . . Let me be . . . I will do this!! 😂
@YTHandle6607 жыл бұрын
Is this the same a void * functionName (Generic Pointer)