🚀📈💻🔥 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
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 😴🥱🥰
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
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.
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🤗😁!!
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
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.
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?
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?
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 😄
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"; } }
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.
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 /
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. 😄
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.
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
🚀📈💻🔥 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
Can you please do video about features in c++11 c++14 c++17 c++20
Thanks!
Thank you 🥰
great as usual, I'm looking forward to the rest of STL videos, your explanations are excellent
Two-hour classes about the STLs are beautifully finished in 20 minutes.
Your teaching style is so easy to follow. Thanks for your hard work 🙏
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 😴🥱🥰
@@CodeBeauty people like yourself a great role models for those like me. I’m glad the TH-cam algorithm recommended your videos to me.
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
always happy to see your new video, so useful, thank you
can't tell you how much is this useful and well explained, but I guess you already know that :D thanks from Canada
you made a developer of me, I'm forever grateful :)
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.
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🤗😁!!
excellent explanation, I'm getting better and better at coding every day, mainly thanks to you
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.
It looks like a great introduction in templates. I started understand them now.
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
I was waiting for this, thank you Saldina :)
This is an awesome quick lesson on templates. I needed a refresher on this topic and you explained so well. Thank you!!
quality content, just what I expected from you 👍
Thank you for uploading again!
Very very clear and easy to understand! Couldn't thank you more!!! Can't wait for the next episode~!!!!!
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.
Nice and well explained video :)
Great Video
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?
thanks ,i love you teacher ,you are amazing
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?
Can i ask you how can make site from c++ please we need course
So the template function goes right above the function? And it only applies to the function right below?
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 😄
@@CodeBeauty, oh sorry, keyword, DOH!!
what font do you use? Do you use Consolas?
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";
}
}
You are only passing an integer in so you can only ever get an integer back, you need to pass T as the parameter
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.
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 /
I want to buy your course but it says only for window PC users why is it so ? I got mac should I buy ?
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. 😄
How about utilizing struct or class?
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?
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.
@@gower1973 So Rust has a small advantage allowing to clarify which types can be supported.
nice master, is in c++ frame work to do ? or make Owen frame work ? like other languages like python ?
Both
is the Dicord server only for those enrolled in the course?
Thank you so much mam❤
Most welcome 😊
Understandable :)
Hi, Saldina kindly provide the discord link.
Auto replace template I think in c++20 if I’m not wrong
cout
PLEASE UPLOAD NEXT VIDEO SOON
@CodeBeauty What’s your OF?
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
Can you please provide your code for this?
Waaaauw❤❤❤
❤❤❤
I've got a better job thanks to your videos, wanna share my paycheck? :D
🧡🧡🧡🧡🧡🧡
Hi sweetheart. What language do you natively speak?
Can My Code Make Ethan Cry? Huaa..😱