STL Templates in C++ - Generic Functions and Classes (beginner-friendly)

  Рет қаралды 24,630

CodeBeauty

CodeBeauty

Күн бұрын

Пікірлер: 65
@CodeBeauty
@CodeBeauty 10 ай бұрын
🚀📈💻🔥 My Practical Programming Course: www.codebeautyacademy.com/ Experience the power of practical learning, gain career-ready skills, and start building real applications! This is a step-by-step course designed to take you from beginner to expert in no time!💰Use this coupon to save 10% (CODEBEAUTY_YT10). Use it quickly, because it will be available for a limited time. 📚 Learn programming with these Free E-Books ⬇ C++ Lambdas e-book - free download here: bit.ly/freeCppE-Book Entire Object-Pascal step-by-step guide - free download here: bit.ly/FreeObjectPascalEbook
@mizel_almizel
@mizel_almizel 10 ай бұрын
Can you please do video about features in c++11 c++14 c++17 c++20
@Kenforbes3
@Kenforbes3 10 ай бұрын
Thanks!
@CodeBeauty
@CodeBeauty 10 ай бұрын
Thank you 🥰
@1tav0
@1tav0 10 ай бұрын
Your teaching style is so easy to follow. Thanks for your hard work 🙏
@CodeBeauty
@CodeBeauty 10 ай бұрын
I'm happy to hear that my video help you, in fact, I'm currently fiming more videos and this message is really motivating because it is not even 7am and I'm already working 😴🥱🥰
@1tav0
@1tav0 10 ай бұрын
@@CodeBeauty people like yourself a great role models for those like me. I’m glad the KZbin algorithm recommended your videos to me.
@codeoasis1180
@codeoasis1180 10 ай бұрын
great as usual, I'm looking forward to the rest of STL videos, your explanations are excellent
@gollygobih6527
@gollygobih6527 10 ай бұрын
always happy to see your new video, so useful, thank you
@KaustavMajumder
@KaustavMajumder 10 ай бұрын
Could you please talk a little bit about DLL and LoadLibrary and call a function from a ad-hoc loaded module that has been defined with __declspec(dllexport)? Thanks.
@milkamilkica1935
@milkamilkica1935 10 ай бұрын
when I watch your video I think I understand everything, than I start coding and I see that I have much to learn, so I return to your videos again :D But I'm improving so just wanted to thank you
@MilesGerome
@MilesGerome 10 ай бұрын
can't tell you how much is this useful and well explained, but I guess you already know that :D thanks from Canada
@austineodhiambo4095
@austineodhiambo4095 10 ай бұрын
Hi! Saldina thanks to you that am now good with Data structure, can you please make a video on socket programming i would really appreciate.
@sangeeth.47
@sangeeth.47 10 ай бұрын
Two-hour classes about the STLs are beautifully finished in 20 minutes.
@christopherrice891
@christopherrice891 10 ай бұрын
I am SOOOO looking forward to this video! I feel like i am waiting for my favorite cartoons to start or something! That's how much excitement these C++ videos give me🤗😁!!
@hazarder-nj9lw
@hazarder-nj9lw 10 ай бұрын
you made a developer of me, I'm forever grateful :)
@kamertonaudiophileplayer847
@kamertonaudiophileplayer847 10 ай бұрын
It looks like a great introduction in templates. I started understand them now.
@robi23robi23
@robi23robi23 10 ай бұрын
I was waiting for this, thank you Saldina :)
@sensubean633
@sensubean633 10 ай бұрын
excellent explanation, I'm getting better and better at coding every day, mainly thanks to you
@feynman_QED
@feynman_QED 10 ай бұрын
Very good these videos about templates 💪🏻 I also found in the video the answer to a question i asked recently: that the course's skills can be transferred to another language. Good to know. Pity C# was used and not C++ though. Saldina i know hearing this makes you angry 😂 Good job by the way.
@ashish.1204
@ashish.1204 15 күн бұрын
I started the new year with learning c++ from you.. It was so great and to the point I was soo confused when I was reading about it in the book thank you so much
@savboo10
@savboo10 2 ай бұрын
This is an awesome quick lesson on templates. I needed a refresher on this topic and you explained so well. Thank you!!
@amelccc
@amelccc 10 ай бұрын
quality content, just what I expected from you 👍
@poppylin-zd7ty
@poppylin-zd7ty 9 ай бұрын
Very very clear and easy to understand! Couldn't thank you more!!! Can't wait for the next episode~!!!!!
@jsrada29
@jsrada29 10 ай бұрын
Thank you for uploading again!
@paulovictorcarvalhodeolive2618
@paulovictorcarvalhodeolive2618 10 ай бұрын
Nice and well explained video :)
@richmorefilms
@richmorefilms 10 ай бұрын
Great Video
@ROYALNIL_SITE
@ROYALNIL_SITE 3 ай бұрын
thanks ,i love you teacher ,you are amazing
@VeronicaVerinceanu
@VeronicaVerinceanu 10 ай бұрын
what font do you use? Do you use Consolas?
@chrishabgood8900
@chrishabgood8900 10 ай бұрын
So the template function goes right above the function? And it only applies to the function right below?
@CodeBeauty
@CodeBeauty 10 ай бұрын
If you mean the template keyword then yes, and if you put it above the class, then it applies to the entire class, and you can use T as a type on the entire class 😄
@chrishabgood8900
@chrishabgood8900 10 ай бұрын
@@CodeBeauty, oh sorry, keyword, DOH!!
@tofanallah
@tofanallah 10 ай бұрын
Can i ask you how can make site from c++ please we need course
@timbergus
@timbergus 10 ай бұрын
Amazing video! Thanks a lot. I have a small question, though. Is it possible to return different types depending on the logic inside the function? Doing this, I got this error: "no instance of function template "choose" matches the argument listC/C++(304)". Is this even possible using templates? template T choose(int key) { int a = 0; double b = 3.14; switch () { case 0: return a; case 1: return b; default: return "Error"; } }
@gower1973
@gower1973 10 ай бұрын
You are only passing an integer in so you can only ever get an integer back, you need to pass T as the parameter
@timbergus
@timbergus 10 ай бұрын
Thanks @@gower1973. I've been doing some research, and I think a template is not the right tool for this problem. I'm trying using "std::any" and "std::any_cast" to return any type and then cast the proper one where I use it.
@ROYALNIL_SITE
@ROYALNIL_SITE 3 ай бұрын
nice master, is in c++ frame work to do ? or make Owen frame work ? like other languages like python ?
@CodeBeauty
@CodeBeauty 3 ай бұрын
Both
@HarshDPatil123
@HarshDPatil123 Ай бұрын
so template classes are only different from normal classes that they are made using templates ? and that template means a facility to use the given thing with any data type ? is it correct?
@manjotsingh2725
@manjotsingh2725 9 ай бұрын
I want to buy your course but it says only for window PC users why is it so ? I got mac should I buy ?
@CodeBeauty
@CodeBeauty 9 ай бұрын
Unfortunately, we don't have the capacity to offer support for Mac users, and I want my students to have the best possible experience. If you can find or borrow any windows laptop, even an older one, you can enroll. I'll teach in the course how to optimize the apps so that they take less space and memory, so they work even on old laptops, but it must be Windows. 😄
@rahultom4310
@rahultom4310 8 ай бұрын
Hii , instead of using intClaculator or floatCalculator as the the object of the template class can't we use TCalcultor? Which would be more generic, isn't it?
@HarshDPatil123
@HarshDPatil123 Ай бұрын
is the Dicord server only for those enrolled in the course?
@stearking5736
@stearking5736 4 ай бұрын
How about utilizing struct or class?
@kamertonaudiophileplayer847
@kamertonaudiophileplayer847 10 ай бұрын
But what if '+' isn't defined for some types, or defined, but not what you think? Why do not say that T is a type for a number values?
@gower1973
@gower1973 10 ай бұрын
You need an operator overload when trying to add any object that is not an basic type, it doesn’t know how to add the objects you are trying so you have to write your own function to do it.
@kamertonaudiophileplayer847
@kamertonaudiophileplayer847 10 ай бұрын
@@gower1973 So Rust has a small advantage allowing to clarify which types can be supported.
@shwethab4347
@shwethab4347 3 ай бұрын
Thank you so much mam❤
@CodeBeauty
@CodeBeauty 3 ай бұрын
Most welcome 😊
@mohdhammad4786
@mohdhammad4786 10 ай бұрын
You can use float for both int and float numbers in c and c++: std::printf("%g ,sum(5,7.7)); std::printf("%g ,sub(6,3.2)); / "%g" instead of "%f" to remove zeros which are not beautiful /
@brandonmatsuib3312
@brandonmatsuib3312 10 ай бұрын
Hi, Saldina kindly provide the discord link.
@sm_hasib
@sm_hasib 10 ай бұрын
PLEASE UPLOAD NEXT VIDEO SOON
@muhumuzaduncan2961
@muhumuzaduncan2961 10 ай бұрын
❤❤❤
@umerfayyaz2554
@umerfayyaz2554 5 ай бұрын
Understandable :)
@Akas766
@Akas766 10 ай бұрын
cout
@mizel_almizel
@mizel_almizel 10 ай бұрын
Auto replace template I think in c++20 if I’m not wrong
@JakubSK
@JakubSK 10 ай бұрын
@CodeBeauty What’s your OF?
@gower1973
@gower1973 10 ай бұрын
I don’t think you need a templated class in this example, surely just a normal class would suffice, the datatype are generic to the functions, here you are creating a class instance for every calculator datatype. It doesn’t make sense, you should only need one instance of the calculator class
@CodeBeauty
@CodeBeauty 10 ай бұрын
Can you please provide your code for this?
@lulu_barcelonalulu_barcelona
@lulu_barcelonalulu_barcelona 10 ай бұрын
I've got a better job thanks to your videos, wanna share my paycheck? :D
@wilgarcia1
@wilgarcia1 10 ай бұрын
🧡🧡🧡🧡🧡🧡
@jamshidbektursunboev1908
@jamshidbektursunboev1908 10 ай бұрын
Waaaauw❤❤❤
@TheodorusAtheist-sx1un
@TheodorusAtheist-sx1un 7 ай бұрын
Hi sweetheart. What language do you natively speak?
@arahinalif
@arahinalif 10 ай бұрын
Can My Code Make Ethan Cry? Huaa..😱
Templates in C++
17:58
The Cherno
Рет қаралды 609 М.
Jaidarman TOP / Жоғары лига-2023 / Жекпе-жек 1-ТУР / 1-топ
1:30:54
Andro, ELMAN, TONI, MONA - Зари (Official Audio)
2:53
RAAVA MUSIC
Рет қаралды 8 МЛН
Counter-Strike 2 - Новый кс. Cтарый я
13:10
Marmok
Рет қаралды 2,8 МЛН
the TRUTH about C++ (is it worth your time?)
3:17
Low Level
Рет қаралды 820 М.
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 489 М.
TEMPLATES in Modern C++
9:31
cazz
Рет қаралды 35 М.
you will never ask about pointers again after watching this video
8:03
Friend functions and classes in C++ (Programming for beginners)
18:18
The C++ Lambdas
11:44
Code for yourself
Рет қаралды 4,8 М.
Jaidarman TOP / Жоғары лига-2023 / Жекпе-жек 1-ТУР / 1-топ
1:30:54