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 ✌
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!!
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.
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 😇 ✌️
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 😊✌️
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 😊😁
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 ?
@@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.
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
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
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.
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]).
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
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 :-)
+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 😇
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.
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 ✌
Wow I just discovered this channel. And I really like your way of teaching. It's helps me so much.
Thank you
Very happy to know this Rajveer! Keep growing and learning 😊
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!!
Awesome, thank you!
@@SimpleSnippets where i can find the code ?
Bro no kidding , I'm absolutely in complete awe to see you explained everything that there is to templates in such a short vid .
Yeah but you have to play the video at 50% to catch half of what he's saying in some parts.
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 👍😊
Yes u r right
@@dereksisco4790 I watch all of his videos at 1.5x speed lol
@@dereksisco4790 I watch his vids at 2x LMAO... Prolly cuz I'm used to his accent
the way you represent and teach is too good
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.
The channel which i loved😍😍no need of any other class..
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 😇 ✌️
You do a great job I can follow your videos easily. Thank you!
Thank you so much bro 😊 means a lot to me. I would request you to please share the video with your friends too ✌️
template is used for-1.memory space 2.programming language 3.variable value 4.variable address
was struggling to get this concept, you made it really easy, thanks.
Stacks is LIFO
That means
Last In First Out (LIFO)
You're a lifesaver for sure.
Nicely Explained then all other TH-camrs Thanks:)
Your videos are the best . Please keep uploading them.
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 😊✌️
you are a great teacher i subscribed you in single video too good...thank you so much
How did you make it so Simple❤️
Its really helpful!
Thank you very much🌟
You're welcome 😊
Thanks sir, through your explaination I understand it very easily.
Conceptual videos, I liked it bro 😎...
Thank you so much buddy, Please do share this video with your friends too. Thats the biggest help and support 🙂
best of the best
Thanks you are good teacher 👍👍
you are the best.........masum
Bhai tu sahi mein bahgwan ho!
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 😊😁
you are the best................masum
Well explained, thank you so much.
Very goog video! Keep it up!!!
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 ?
Video no I watched on simple snippets:19
Tottaly i didn't understand but i understand something 👍
Thank You so much,ur vids help sm
very helpful thank you
Very useful indeed.
You helped me, thanks
Awesome! you rock!
Thanks! You too!
is it necessary to pass the data type like etc..i did watch some lectures w/o that
excellent sir.
Thank you so much buddy. Really happy to see your positive feedback 😋
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???
typename is nothing but a class
Same..but in new cpp version we should use class as typename will become obsolate
We can use both
Either use typename T or class T
@@debeshroy9632 typename will not become obsolete, its better to use typename
Class templates starts from 1: 30 . Thank me later 🙏
5:16
Why is it not obj1.setData(5) ?
pele class pass karna padta hai method ke liye badme data type isliye maybe
.
.
.
.
.
.
.
.
ps: new to c++ i am not sure
@@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.
@@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
@@dhruvkhara yes but they were generic data types. Anyway leave it
because we have to initialze the object first. Then after doing this object call any method from the class.
Sir plz add videos on c++ STL
Bro when we write a function
void setData( T x)
{
kg=x;
}
what we did?? please explain
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
bro @line 29 you passed 053( for the first compilation)
but it showed 43(after the first compilation
how?
2:33 why are the functions private while the data members in public? Why would anyone want to do that?
It’s like that so that only the functions are able to access the data members
Just an example to show stacks with elements of different data types.
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
Thank you so much ❤️
You’re welcome 😊Please do share the videos and our channel with your friends if you want to genuinely support me & our channel!✌😇
Cool bro
Hey will you post a C++ program to find area of a square using class template
Stacks are Last In First Out memory not First In Last Out
Yes even you are right but It's just another way of saying it. 👍
Both mean the same buddy, think over it.
what is the difference between stack memory allocation and dynamic memory allocation and which more convenient
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.
Great!!!
Most welcome buddy, please do share the videos with your friends too. Thats the biggest help and support you can provide to our channel 😇
Thank you bro
why 053 become 43? before you fixed the typo
Thankyou :D
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]).
do you have a tutorial on CRTP ?
how to use class template using separate files.. i.e .h and srcfile
bro can u plz make a video on this template class using file system like i want txt file storing the values
Guy talks so fast I had to slow it down
Hahah sorry for the high speed. Will keep this in mind in future 😅
bro can you do a video for STL also?
Can we write "class" at the place of typename??
Yes
Good one ....😀
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 😇✌
Best
Thank you so much my friend 😊
Please do share the video with your friends too 😊✌️
good bro
Thank you buddy, please do share them with your friends :-)
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
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 :-)
Sir stl ?
GOD level teaching
Thanks..
Super super super
Bhai apke pas itna knowledge he to any job karte ho ya nahi}?
Kyuki ye teaching work main muje khushi mil rahi hai dost. Kaam wahi karo jaha aapka dil se mann lag raha hai. 😇✌
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
Sorry Anil for the high speed. Main future main try karunga ki speed slow rahe. 🙏
Can u post a video about template overloading
Sure will check up on this 😊
tHANKSBRO
👏
please provide twitter hash tag we can promote your worthful channel there publicly
#simplesnippets
Sir we want overloading template functions
Bsdk google karle
These are the best videos.Please keep uploading
while(1)
{
cout
+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 😇
You speak too fast !!!
sing sing sing sing WTF???
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.
You speak too much speedy
you are the best..........masum
thank you so much ❤️
Stacks are Last In First Out memory not First In Last Out
both mean same ,,buddy
lol...wake up
Tnq so much ❤️