Hey Guys, if you want more such tech educational videos on this channel then please support me by subscribing to this channel & also share it with your friends as it helps me create more content just for you ✌
@rajveerbhai7624 Жыл бұрын
Wow I just discovered this channel. And I really like your way of teaching. It's helps me so much. Thank you
@SimpleSnippets Жыл бұрын
Very happy to know this Rajveer! Keep growing and learning 😊
@irshadwahab4 жыл бұрын
Your style is excellent! Simple examples and to the point, easy to understand and the 2x speed means, not boring!! You are a good teacher! Great work!!
@SimpleSnippets4 жыл бұрын
Awesome, thank you!
@Mahamudul_Hasan0 Жыл бұрын
@@SimpleSnippets where i can find the code ?
@adisingh93413 жыл бұрын
Bro no kidding , I'm absolutely in complete awe to see you explained everything that there is to templates in such a short vid .
@dereksisco47903 жыл бұрын
Yeah but you have to play the video at 50% to catch half of what he's saying in some parts.
@SimpleSnippets3 жыл бұрын
Sorry for the speed Derek. I've reduced my speed in recent videos by taking all your constructive feedback. It has helped me & our channel improve 👍😊
@sciencesosimple24183 жыл бұрын
Yes u r right
@SK-wr3ww3 жыл бұрын
@@dereksisco4790 I watch all of his videos at 1.5x speed lol
@devrao35373 жыл бұрын
@@dereksisco4790 I watch his vids at 2x LMAO... Prolly cuz I'm used to his accent
@saga16584 жыл бұрын
the way you represent and teach is too good
@michaelhernandez20753 жыл бұрын
Holy fucking hell thank you for the clear and concise tutorial. I have been watching shit from like 10 years ago that wasn't helping me what so ever. thank you.
@nirajmalik09102 жыл бұрын
Stacks is LIFO That means Last In First Out (LIFO)
@sauravdutta994 жыл бұрын
template is used for-1.memory space 2.programming language 3.variable value 4.variable address
@44mod5 жыл бұрын
You do a great job I can follow your videos easily. Thank you!
@SimpleSnippets5 жыл бұрын
Thank you so much bro 😊 means a lot to me. I would request you to please share the video with your friends too ✌️
@haripriyap37016 жыл бұрын
The channel which i loved😍😍no need of any other class..
@SimpleSnippets6 жыл бұрын
Thank you so much buddy 😇 I'm so happy that you like this video and this channel. Please do share the videos and channel with your friends and contacts. That will be the best help you can give our channel 😇 ✌️
@Satvikshukla00072 жыл бұрын
was struggling to get this concept, you made it really easy, thanks.
@deepikaarora81253 жыл бұрын
you are a great teacher i subscribed you in single video too good...thank you so much
@i_write7500 Жыл бұрын
How did you make it so Simple❤️ Its really helpful! Thank you very much🌟
@SimpleSnippets Жыл бұрын
You're welcome 😊
@imankhalid31913 жыл бұрын
You're a lifesaver for sure.
@aswinmanmathans68372 жыл бұрын
is it necessary to pass the data type like etc..i did watch some lectures w/o that
@yashdongre17523 жыл бұрын
Nicely Explained then all other KZbinrs Thanks:)
@saumyayadav85966 жыл бұрын
Your videos are the best . Please keep uploading them.
@SimpleSnippets6 жыл бұрын
Thank you so much Saumya 😊 happy to hear this from you. Surely will keep uploading more content. ✌️ I would request you to please share the video with your friends too 😊✌️
@AsadKhan-yx5gg3 жыл бұрын
Thanks you are good teacher 👍👍
@jamesnash96752 жыл бұрын
you are the best.........masum
@shashimohansingh1403 жыл бұрын
Thanks sir, through your explaination I understand it very easily.
@LeelosAdventure2 жыл бұрын
very helpful thank you
@jamesnash96752 жыл бұрын
you are the best................masum
@iliyafathma83252 жыл бұрын
Thank you so much for these videos it is really helpful and most importantly your explanation is simple and to the point which makes it easier to understand 😊😁
@insanegamer52752 жыл бұрын
best of the best
@siddharthdhingra36272 жыл бұрын
Very goog video! Keep it up!!!
@sethji39505 жыл бұрын
Conceptual videos, I liked it bro 😎...
@SimpleSnippets5 жыл бұрын
Thank you so much buddy, Please do share this video with your friends too. Thats the biggest help and support 🙂
@harounlouati66022 жыл бұрын
Well explained, thank you so much.
@shubhamsonawane9673 жыл бұрын
Sir plz add videos on c++ STL
@abhimanyualtekar70604 жыл бұрын
I am trying to write function IIF(Condition, TruePart, FalsePart) like VB, Clipper/ FoxPro , TruePart and FalsePart can be float* (array) or just float, also TruPart & FalsePart can be Null. When all arguments/parameters are scalars (numbers) then resulting value is also a scalar (number). When any of arguments is an float array (array pointer) then function needs to return an array pointer. This is the most important part. The Condition is Expression Like- 1) ArrayA > ArrayB 2) floatX > floatY ?, ArrayX < 10 . . Comparison of scalar type parameters is very with (x == y ? a : b) But for float * (array pointer) each element of array is to be checked for TruePartArray & FalsePartArray These are some examples IIF(arrayA > ArrayB, ArrayX , ArrayZ) IIF (ArrayA > 10, ArrayX, Null) // resulting array will be added with all Null(s) as FalsePart IIF(ArrayX == FloatA, ArrayA, ArrayB) IIF( FlatA >= FloaB, ArrayX, Array) Condition is an expression so that is to be handled separately for Operator parsing and operator can be passed as string. in that case it will be a function of 5 parameters i.e. IIF( ArrayX, "==",ArrayZ, ArrayA, Null) or IIF( floatX, ">=", floatY, floatC, Null) Pl Let me know How to write Function Templet where Parameters can be float, float* or Null ?
@levi259022 жыл бұрын
Thank You so much,ur vids help sm
@devrao35373 жыл бұрын
Bhai tu sahi mein bahgwan ho!
@oleksandrbondarenko94313 жыл бұрын
You helped me, thanks
@MuzzySquared2 жыл бұрын
Very useful indeed.
@somnathmore10823 жыл бұрын
Video no I watched on simple snippets:19
@zakriabacha24776 жыл бұрын
excellent sir.
@SimpleSnippets6 жыл бұрын
Thank you so much buddy. Really happy to see your positive feedback 😋
@gubbu83523 жыл бұрын
Tottaly i didn't understand but i understand something 👍
@tetlleyplus4 жыл бұрын
Awesome! you rock!
@SimpleSnippets4 жыл бұрын
Thanks! You too!
@summayyahashmani24944 жыл бұрын
Sir a doubt. In my textbook the template defination goes like : template And u wrote typename What are these and do they make any difference???
@manojseenivasan88544 жыл бұрын
typename is nothing but a class
@debeshroy96324 жыл бұрын
Same..but in new cpp version we should use class as typename will become obsolate
@zainulkhan83814 жыл бұрын
We can use both
@zainulkhan83814 жыл бұрын
Either use typename T or class T
@hehexd29134 жыл бұрын
@@debeshroy9632 typename will not become obsolete, its better to use typename
@vedantghate923 жыл бұрын
Bro when we write a function void setData( T x) { kg=x; } what we did?? please explain
@thecountrox Жыл бұрын
T here is our datatype placeholder since we are passing it as int , T becomes int here so it will be read like : void setData(int x) the next line we are setting kg value to x
@Gandhiboy4 жыл бұрын
Thank you so much ❤️
@SimpleSnippets4 жыл бұрын
You’re welcome 😊Please do share the videos and our channel with your friends if you want to genuinely support me & our channel!✌😇
@v.rprasad53774 жыл бұрын
5:16 Why is it not obj1.setData(5) ?
@dhruvkhara4 жыл бұрын
pele class pass karna padta hai method ke liye badme data type isliye maybe . . . . . . . . ps: new to c++ i am not sure
@v.rprasad53774 жыл бұрын
@@dhruvkhara thank you for the reply bhai. But during function call we mention the data type. I was wondering why not during the method call of a class.
@dhruvkhara4 жыл бұрын
@@v.rprasad5377 maybe because we declared it before, like normally one we declare int i , j=0 we don't need to declare data type for i or j again
@v.rprasad53774 жыл бұрын
@@dhruvkhara yes but they were generic data types. Anyway leave it
@bhanugoyal55253 жыл бұрын
because we have to initialze the object first. Then after doing this object call any method from the class.
@azdinator2 жыл бұрын
Thank you bro
@sharonjoe75353 жыл бұрын
bro @line 29 you passed 053( for the first compilation) but it showed 43(after the first compilation how?
@emirhan13564 жыл бұрын
but this just a basic usage. can you show us what should we do when we want to use 2 class and we need to send parameters. what will be the parameters type
@khankaloo34093 жыл бұрын
how to use class template using separate files.. i.e .h and srcfile
@saisardesai55485 жыл бұрын
2:33 why are the functions private while the data members in public? Why would anyone want to do that?
@helloworldof4 жыл бұрын
It’s like that so that only the functions are able to access the data members
@v.rprasad53774 жыл бұрын
Just an example to show stacks with elements of different data types.
@rohitdurbha18816 жыл бұрын
Stacks are Last In First Out memory not First In Last Out
@SimpleSnippets6 жыл бұрын
Yes even you are right but It's just another way of saying it. 👍 Both mean the same buddy, think over it.
@SAG9674 жыл бұрын
Hey will you post a C++ program to find area of a square using class template
@sahilprasantachoudhury9115 жыл бұрын
Class templates starts from 1: 30 . Thank me later 🙏
@shivajichalise_3 жыл бұрын
do you have a tutorial on CRTP ?
@surajsuryawanshi78354 жыл бұрын
Cool bro
@PiyushKumar-ix9jp3 жыл бұрын
bro can u plz make a video on this template class using file system like i want txt file storing the values
@arshmaanali7143 жыл бұрын
what is the difference between stack memory allocation and dynamic memory allocation and which more convenient
@ExcellenzaGamer2 жыл бұрын
stack memory allocation is basically when the compiler allocates specific memory before running the program or while during compiling you can say, and dynamic memory allocation is allocation of memory during running of program, or you can call it as runtime allocation of memory. and when it comes to convenience, it depends on two factors, first is the programmer and the second one is requirement, if the programmer thinks the problem can be solved without dynamically allocating the memory he can do it, but if the requirement is such that he cannot do it without dynamic memory allocation, then he must solve it accordingly.
@anshumanisharma67515 жыл бұрын
Great!!!
@SimpleSnippets5 жыл бұрын
Most welcome buddy, please do share the videos with your friends too. Thats the biggest help and support you can provide to our channel 😇
@muralit.p29543 жыл бұрын
bro can you do a video for STL also?
@manjeshsingh30024 жыл бұрын
Can we write "class" at the place of typename??
@zainulkhan83814 жыл бұрын
Yes
@Scottko4 жыл бұрын
Guy talks so fast I had to slow it down
@SimpleSnippets4 жыл бұрын
Hahah sorry for the high speed. Will keep this in mind in future 😅
@IshuSingh-k7f5 жыл бұрын
why 053 become 43? before you fixed the typo Thankyou :D
@prachikumari70214 жыл бұрын
Because whenever we type any number following 0, it is treated as an octal. So here in this case, the template was analogous to int type or decimal so 53 got converted from its octal to decimal form and so we got 43(5x[8^1]+3*[8^0]).
@pawansahu52654 жыл бұрын
Thanks..
@saipavank26606 жыл бұрын
Good one ....😀
@SimpleSnippets6 жыл бұрын
Thank you so much. Please share the video with your friends and contact as that will be the best help and support for our channel 😇✌
@oshoconner40033 жыл бұрын
Sir stl ?
@kurapatiakhilkumar53145 жыл бұрын
good bro
@SimpleSnippets5 жыл бұрын
Thank you buddy, please do share them with your friends :-)
@aayushadhikari78513 жыл бұрын
GOD level teaching
@kashishgoel14285 жыл бұрын
Best
@SimpleSnippets5 жыл бұрын
Thank you so much my friend 😊 Please do share the video with your friends too 😊✌️
@sumitmhaiskar7225 жыл бұрын
bro tu samjta mast h but pls thoda slow baat kar ekdum fatse mat nikal jaa aramse baat aramse samjha thoda dimag me baithege phir baaki sab mast hai bhai tera acha kaam karra hai
@SimpleSnippets5 жыл бұрын
Thank you Sumit for this genuine feedback. And yes sometimes I tend to speed up while speaking without knowing. I will make sure to speak slow in future :-)
@akwithyou10662 жыл бұрын
tHANKSBRO
@ham__edits8 Жыл бұрын
👏
@YashPrajapati-js8zd5 жыл бұрын
Bhai apke pas itna knowledge he to any job karte ho ya nahi}?
@SimpleSnippets5 жыл бұрын
Kyuki ye teaching work main muje khushi mil rahi hai dost. Kaam wahi karo jaha aapka dil se mann lag raha hai. 😇✌
@melvininfant92956 жыл бұрын
Can u post a video about template overloading
@SimpleSnippets6 жыл бұрын
Sure will check up on this 😊
@SunitaRani-ys9oy4 жыл бұрын
Itni speed me kon pdhata h....thoda slow hona chaiye taki kisiko reading ka or sochne ka tym mil ske ...🤨🤨🙄dnt like ur teaching style
@SimpleSnippets4 жыл бұрын
Sorry Anil for the high speed. Main future main try karunga ki speed slow rahe. 🙏
@mahesh-jg3zx5 жыл бұрын
Super super super
@nashhash46257 жыл бұрын
These are the best videos.Please keep uploading while(1) { cout
@SimpleSnippets7 жыл бұрын
+Nash Hash thank you so much Nash! Such a creative comment and positive response buddy. Keep sharing the videos with your friends and contacts ✌️ Follow me on Facebook and Instagram and you can give suggestions about new video tutorials too 😇
@darshandarshan-ph6uk3 жыл бұрын
please provide twitter hash tag we can promote your worthful channel there publicly
@SimpleSnippets3 жыл бұрын
#simplesnippets
@vasusharma_5 жыл бұрын
Sir we want overloading template functions
@ShivanshMishra24095 жыл бұрын
Bsdk google karle
@letsdoit7083 Жыл бұрын
you are like just reading the code from some website and typing here, no explanation nothing just straight-on writing the code that too idk weird stuff, sorry but i gotta dislike the video.
@VasaMusic4384 жыл бұрын
You speak too fast !!!
@kuldipsarvaiya21292 жыл бұрын
You speak too much speedy
@mrs.patriciathomas-evans91154 жыл бұрын
sing sing sing sing WTF???
@masumali8356 Жыл бұрын
you are the best..........masum
@kamyagupta40302 жыл бұрын
thank you so much ❤️
@rohitdurbha18816 жыл бұрын
Stacks are Last In First Out memory not First In Last Out