📚 Learn how to solve problems and build projects 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 🚀📈💻🔥 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! 💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10). Use it quickly, because it will be available for a limited time.
@arifwidianto63442 жыл бұрын
Wondering if we can swap an integer and a floating number in a single function with generics.. Do you know how to do that?
@madamadadane79893 жыл бұрын
I really wish you were our college professor 😭 you'd honestly save an entire class and help them pass instead of the professors we have that drive us to insanity and failure. i thank you from the bottom of my heart
@danieldian8708 Жыл бұрын
No their knownlege is so much when you reach to their level you would be acting like them so just learn to be your best
@hameedahmadzai9768 Жыл бұрын
my college prof is shit Ingl
@roscko314210 ай бұрын
@@danieldian8708 NOPE. they are only professors because they are doing research, they really dont care if you dont understand them, thats how most computer science professors are. They are not trained to teach pretty ironic huh since their job is to teach
@1729krish8 ай бұрын
@@danieldian8708 True. But having great knowledge and being a great teacher are not necessarily correlated
@lukaskocman75464 жыл бұрын
One of the best c++ tutorials on youtube. You amazing explain!
@CodeBeauty4 жыл бұрын
Thanks ☺️🥰
@renefuller92412 жыл бұрын
One of the best and easiest definition of references ever! Dry, to the point. No fluff.
@sergiorome429 ай бұрын
you are the best programming KZbin instructor, no one compares to your tutorials in both explanation of theory, along with easy to follow, concise and explicit tutorials.
@peri31387 ай бұрын
I cant believe I did not know about this channel until now. Thank you for making high quality and easy to follow videos
@CodeBeauty7 ай бұрын
Thank you for this comment, and welcome 🤗🥰
@StabbyMacStabStab3 жыл бұрын
If anyone is getting an error with this, it's probably because you named the "swap()" function in all lowercase. There is already a "swap()" function defined in the std library that you imported using the namespace so it will cause an ambiguous function overload error.
@Kanha03213 жыл бұрын
thank you so much for this comment. With this 4 lines only you'd explained why using namespace std is a bad practice.
@sanalkumara15943 жыл бұрын
Thankyou
@salahruziev7323 жыл бұрын
Thank you ❤
@niloym40542 жыл бұрын
thanks a lot
@navjotsingh22512 жыл бұрын
@@Kanha0321 nothing wrong with it, you just need to name your functions uniquely, so that you don't clash with std. I've not had any problems, just had to name my functions following a pattern so that there are not any clashes.
@legolas56844 жыл бұрын
10k coming faster than the speed of light! Great Content as always!
@CodeBeauty4 жыл бұрын
Thank you so much! Big support as always! 💕
@bigtymer48622 жыл бұрын
About to pass 170k now!! Super awesome!!
@khalidben99403 жыл бұрын
as a software engineer who has learnt C++ before I found your explanation amazing.Keep it up.
@CodeBeauty3 жыл бұрын
Thank you so much for the support! 🥰🤗
@Daniel-cl6hj3 жыл бұрын
I just ran into an issue on this one where I defined my swap function with all lowercase (since functions are camel case and classes are camel starting with an upper, so I thought you made a mistake). Turns out there's a built in swap function that's already generic (and it was getting called without prepending std:: since I included the std namespace globally). So when I used the generic type in my function definition it thought I was overloading it to be generic AGAIN so it had no clue which one to use... Interesting little bug that sent me down a rabbit hole lol
@CarloSnow52 жыл бұрын
life savior
@egyptianst0rm3342 жыл бұрын
So many people cannot explain this subject well and you make it look like a child's play toy. thank you
@fatima-wb7dh4 жыл бұрын
I am a first year student at ITE university and i have just found your tutorial for c++ programming 😮it's amaizing and the best i swear💘 we are so lucky to have you miss 🥺🥺 Keep going😍❤️❤️
@CodeBeauty4 жыл бұрын
Fatima, that is awesome! I'm so happy that my videos can help 🤗🥳
@fatima-wb7dh4 жыл бұрын
@@CodeBeauty yesss, it helps alot🥺🥺❤️❤️👍and i hope if we can have a java course by you🙏💘 we will be so thankful😍❤️❤️
@fglatzel Жыл бұрын
Generic programming using templates is one of those great features in modern C++ and you explain this in a very easy to follow way. Thank you, CodeBeauty.
@dieumercimbo93042 жыл бұрын
Thank you so much for your clear and precise explanation than the book. You are currently holding the medal for C++ tutorials.
@learnfromatharv71212 жыл бұрын
You are so crisp in your explanations and presentation that I feel yours are one of the best c++ tutorials on KZbin. I would recommend these videos to everyone. Will you please make some videos on software architecture for budding coders. What I mean, how should one start developing a software/application and organize his/her code?
@patrickmayer92182 жыл бұрын
*Generics are a way to make functions that work for different variable types. * put "template" (or any other name for your template) in the line above your function, and use that name as the type of the variables in the function. *Although it is not required, it is best practice to specify the type of variables when you call the function. For example, instead of Swap(a, b); You should do Swap(a, b); Thank you for the video, Saldina!
@CostlyFiddle2 жыл бұрын
Phenomenal video, this is the first of your videos I have watched. I returned to university to fulfill my life dream of combining my love in computers & physics. My dual major currently is Computer Science & Physics, this video is invaluable & really helped me understand the concept. I will be watching more of your videos and maybe gain a slight advantage over my far younger peers (I'm twice the age of many of my classmates). Thanks again and welcome to my algorithm!
@iffy15333 жыл бұрын
Best codes explaination method on yt .. 💯 thanks saldina 💕
@roukayaroukaya52893 жыл бұрын
omg code beauty i'm really surprised by you're explain it made me finished your course of function only in 3 days 😍😍😍thank u so much beauty and now i'm gonna to oop course
@marselnaidenov7253 жыл бұрын
You deserve more subscribers. Thank you so much
@GunsCowАй бұрын
you explained in so simple words, and I really enjoyed this class
@aswinmanmathans68372 жыл бұрын
you reallly killed my 8 days of research , in just 10 min
@E_sharp17 Жыл бұрын
Your videos are just way too in-depth and very well explained. you're like a goddess of code explanation... please I'm not sure if you stopped making videos, but don't stop... create more videos to help the world of students.
@anxonpues6018 Жыл бұрын
Muy muy bueno, se entiende, los ejemplos son de claridad absoluta y sencillos. 10/10!!
@Kenforbes3 Жыл бұрын
Thanks!
@CodeBeauty Жыл бұрын
Thank you again 🤗🥰
@marioskasolas9210 Жыл бұрын
this explanation is just simple and clean perfect!
@kirakiraspm6 ай бұрын
best channel to learn programming for slow learner like me🤩
@CodeBeauty6 ай бұрын
I'm happy that even the videos I made 4 years ago still help. If you want to learn practical programming and get skills that you need to start a career, then you can get my course and mentorship here: www.codebeautyacademy.com
@murtazaali93462 жыл бұрын
I love to watch your videos . You're awesome .
@bhaddiyatanchangya5203 жыл бұрын
Many, many thanks CodeBeauty for your wonderful tutorials! You make the most difficult C++ extremely easy to understand. I just love your tutorials. I think by following your tutorials even a baby can code in a most difficult language as the C++ can be just like a pro.
@MrBPeet3 жыл бұрын
I started learning C/C++ 3 years ago based on several other tutorials and i can say your tutorials are so much better that i can not help watching them all even though i already know most things you explain...which is pretty amazing i think! Speaking about functions, maybe you could also insert a video about callback functions in this playlist.
@tentandoumcover Жыл бұрын
how is your level nowadays?
@voferreira3 жыл бұрын
Easiest explanation I found. Thank you very much!
@mikamusic56794 жыл бұрын
thanks saldina that was really helpful and well explained :)
@CodeBeauty4 жыл бұрын
🤗🥰
@GunsCowАй бұрын
Your exclusive! Best in the World for me, I swear, so interesting this class
@HeadRecieverAtHeadOffice2 жыл бұрын
Every explanation was phrased perfectly, thank you
@vk2ig3 жыл бұрын
I got through all of your six videos on Functions tonight - thanks very much posting them! And I learnt something which I'd never covered before, viz. generics and templates - again, thank you!
@cranixstein62072 жыл бұрын
Thank you very much Saldana, love you
@mustafamahmoud502912 күн бұрын
thank you so much so simple explaining.
@jeetenzhurlollz83878 ай бұрын
Einstein quote: “If you can't explain it simply, you don't understand it well enough.”...you make it all so simple Saldana....
@CodeBeauty8 ай бұрын
Thank you 🥰
@alexandrachyu2 жыл бұрын
Hi, can you please do a video about "template within a template?" Something like this: template , I've always had trouble reading and understanding it. Thanks~
@shahzaibkhan89713 жыл бұрын
I always learn something new from your videos. Amazing content as always 🔥
@CodeBeauty3 жыл бұрын
🙏💙
@MrSofianeDz014 жыл бұрын
excellent explanation, please i have a problem and i don't know how to do it, and it would be a great idea for a video ! if you can help !
@tradethecash4 жыл бұрын
Thank you so much for your work. I understand perfectly what you said in yours videos. I like your style as you explain the different parts from IT. I am glat to hear your , see you and learnt from you. So move on , smile, have a beautiful day and thank you again. ^-^
@CodeBeauty4 жыл бұрын
Thank you. I wish you a beautiful day too 💟
@Saimali-wg1bv3 жыл бұрын
A really good & clear explanation, thankyou !.
@sthembisomsimango4 ай бұрын
I love you, you make it seems easy❤❤
@ChrisVideosGreek3 жыл бұрын
You are so close to reach 100k subs!!!!!!!
@CodeBeauty3 жыл бұрын
I am 🥳🥳🥰
@zombiehellmonkeygaming19564 жыл бұрын
Thanks, best explanation for templates I've found !
@CodeBeauty4 жыл бұрын
Thank you! 🥰🤗
@bodnarsa3 жыл бұрын
Hi Saldina! You created excellent C++ videos but no UTF-8 string handling. Please make one.
@sv3glx4 жыл бұрын
I must thank you very-very much! Great explanation and really helpful! Keep going on.
@CodeBeauty4 жыл бұрын
🥰🤗
@fernandoalbuquerque66453 жыл бұрын
You're really, really good !!!
@temirkhanamanbaev422 жыл бұрын
Incredible easy explai, thanks a lot.
@toastyren39913 жыл бұрын
Another amazing video :-) Thank you so much once again Saldina ! :-)
@zonaedahmed18192 жыл бұрын
can you please make more vedios on c++ templates deeply please. as its a important concept for competitive programming..thank you
@breakdancerQ8 ай бұрын
clear and easy... how it should be
@TheodorusAtheist-sx1un6 ай бұрын
It's been three years. Is this amazing girl still alive?
@immortalbotyt14283 жыл бұрын
Hey this generics is really useful If I knewabout it before it'd be cool but no more tension you taught me :)
@arsalan45102 жыл бұрын
did u make those in-depth videos for templetes
@yixingshen62863 жыл бұрын
can you explain the function type of void?
@alejandroperez5368 Жыл бұрын
Good explanations. But you didn't explain why the Swap function has the addresses of a and b as the parameters. Why aren't those parameters pointers like in the Pass parameters by a reference video?
@GunsCowАй бұрын
Thankk you I am so happy from this Channel :)(;
@jacquesduplessis32843 жыл бұрын
Just a note that case matters in the name 'Swap', because 'swap' is already included (somewhere)...
@oleksisfraga4 жыл бұрын
Thanks for the content and your time. You think we get the point to see topics about Threads/Process/Concurrent programming in C++ ? Thanks one more time 🙏🏾
@CodeBeauty4 жыл бұрын
Yes, I'll work on those videos in the future ☺️
@douglascunha32383 жыл бұрын
Excelente tutorial, muitíssimo obrigado.
@pg.idrees2 жыл бұрын
amazing video , thanks
@terryalleyne8455 Жыл бұрын
how do I write the code for separate files cpp, .hand main.cpp?
@moisesnapoles21533 жыл бұрын
Hi, just making sure, I cannot use the same template for multiple functions right? I always have to create a template for each individual function?
@joaops41653 жыл бұрын
Sorry for the English. I think the (template ) is part of the function declaration. I tried to use declaration and definition, and I only managed to do it like this: #include using namespace std; template void Swap(T& a, T& b); int main() { int a = 10, b = 20; cout
@moisesnapoles21533 жыл бұрын
@@joaops4165 thanks! 😁
@ladymorwendaebrethil-feani40312 жыл бұрын
I would like to know if there is any way to use a generic type input in c++. Something that allows me instead of passing the value by argument (using function overloading or templates), simply capturing an generic input from the keyboard.
@abdullahalmamunofficial56105 күн бұрын
One of the Easiest ways.
@simpleboy85563 жыл бұрын
Hello. I have some question for you.Why do you choose C++, not C# or Phython
@harikrishnanb72733 жыл бұрын
can you make a video about class templates !!
@mujahidmustafa79032 жыл бұрын
O M G...Mind Blowing ...😇
@jolly_dollyyy2 жыл бұрын
lucid explanation!!
@WebSculptors Жыл бұрын
so goood thank you
@bearsoundzMusic3 жыл бұрын
The function swap is only partly generic imo It swaps two *int* variables or *two* char variables Real generic would have to be able to handle _more_ than *one* type, in the _same_ call So int main(){ int a=5; char b = 'b'; cout
@yxlxfxf3 жыл бұрын
dunno if you still need the answer but yes, it is possible. Just declare two template parameters: template void swap(T &&a, U &&b);
@spytonic41713 жыл бұрын
can you plz make a video on c++ stl?
@jones_173 жыл бұрын
Please teach operator overloading
@marco212743 жыл бұрын
I think with C++ 20 you can now use auto: void swap(auto &l, auto &r).
@voneverk Жыл бұрын
thx that was helpful👍
@tarearnaut35024 жыл бұрын
You dont have a tutorial for arrays?
@RIMANITIN3 жыл бұрын
Mam, Is it possible to perform multiple functions using the same to template example I can add, subtract, multiplication, divide only in one template. I'm in trouble. Please help me or anyone can else🙏🙏
@rnd1sir3472 жыл бұрын
you are so good.
@FlyingTurtleLP3 жыл бұрын
6:20 Vid starts here if you know at least a little bit of c ;)
@John_Wall Жыл бұрын
Hi Saldana - following your advice for best practice I moved the Swap() definition below main(), and placed a Swap() declaration above main(). However, things started going a bit pear-shaped when it came to adding template. Unless I place the template line immediately above both the Swap() definition and declaration I get a compiler error. But the solution feels wrong as I am duplicating the same line of code. Is it correct to write the template line twice, or is there a better way? Cheers. P.s There seem to be many very clever people teaching coding on YT, but imo you have by far the best teaching style - you always break the problems down into easy to understand chunks, so thank you!
@lofto83632 жыл бұрын
Спасибо за урок)
@zhibindeng8723 Жыл бұрын
how to automatically format your code by just press an enter?
@nastaranheidarysharifabadi46482 жыл бұрын
thanku
@subee1282 жыл бұрын
Thanks
@WistrelChianti3 жыл бұрын
oooooooooooooooooh - I'm kinda disappointed that that's all they are... I was expecting some sort of Archean Dark Voodoo
@CodeBeauty3 жыл бұрын
Hahaha, nope They're pretty simple 😊😊
@starthustling32903 жыл бұрын
thanks :)
@73dines4 жыл бұрын
Neobicno bez naocala :)
@CodeBeauty4 жыл бұрын
Hahaha 😅 Uglavnom ako sam citav dan provela radeci na racunaru pa onda uzmem da snimam, oci mi budu umorne i moram nositi cvike 🤓 A ako sam odmarala od ekrana taj dan, onda mogu i bez njih 😋
@divanbasson55452 жыл бұрын
For the youtube algorithm.
@CodeBeauty2 жыл бұрын
Thank you! ❤️❤️
@ahmadahmad-ug8ls7 ай бұрын
the best istg
@zed_business51910 ай бұрын
#include using namespace std; int factorial(int num) { // Renamed for clarity if (num == 0) { return 1; // Base case for 0! } else { return num * factorial(num - 1); // Recursive call } } int main() { int num; cout > num; if (num >= 0) { cout
@rusty399394 жыл бұрын
you also watch Bucky's tutorial na lmao xD.
@shonhazan50653 жыл бұрын
i want your voice to be my siri
@CodeBeauty3 жыл бұрын
Hahaha, that is funny 😅😁🤗
@blueli9ht1013 жыл бұрын
i love u
@log87463 жыл бұрын
We pass arguments*
@dogarunicolaeemil99973 жыл бұрын
#include using namespace std; template void change (E &a, E &b){ E temp; temp=a; a=b; b=temp; } int main() { int x=7, y=47, z; change(x,y); cout