awesome bro, you just given me enough knowlegde, i am working on a project in c++, i am trying to make dynamic list with class as an object, for that i need to learn many things , it is very helpful.
"" is stream extraction operator. The left-hand operand of this operator must be an istream object. Again, the direction of the arrows indicates that we read from the stream. We extract from the stream.
you all probably dont care at all but does any of you know a way to log back into an Instagram account..? I somehow lost my account password. I appreciate any assistance you can give me.
@Emory Uriel Thanks for your reply. I found the site through google and I'm in the hacking process atm. I see it takes quite some time so I will reply here later with my results.
I have a question: At 6:35 timestamp, you said that if the data members which we are using for '' operation are if public then we don't need to use friend keyword. my problem: I tried to overload the function in a template of struct but i wasn't able to do it without making the overloaded function as a friend function. But all the members of struct are public by default then why I have to make that overloaded function as friend function. (All the declarations are inside the struct template). Please help me in this.
wooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooow sir amazing, thanks for making us so clear about this topic,,,,,,,,,,Lots of love from Nepal sir❤
Brother !! Your this video clear all my doubts which was frustating me so much ,,, I want to applaud you by a thing which is called money 🤑 in this world. But right now ,I am struggling in my career with lack of money.... , Whenever i will be successful , I will do something. And for right now ,I will share your channel to tons of my friends.
Thanks for the video! Do you have tutorial for creating binary tree class and overloading it to print out the root and left or right nodes? And for adding in new stuff to the tree?
Sir, I don't understand if we return input, output but where we receive it . In the example P1=P2+ P3 here we return and store it into P1 but in this example input and output return but where we receive it this thing I don't understand.
Very nice video. So If I want to do it for more than one class, how will I pass my object as second parameter to overloaded functions? Can you please help me here?
Thanks for the wonderful video, can you please explain how to write overloading function inside the class, there it gives error because reference to class is implicitly present as this keyword.
This is called initializer list in c++. It is similar to x = x where first x is member variable and 2nd x is passed parameter and {} is just a place holder
@@CppNuts Thanks alot working : #include using namespace std; class Base { int x; public: Base(int x=0):x{x} {} friend class Test; }; class Test { int x; public: Test(int x=0):x{x}{} int operator + (Base& b) { return x+b.x; } }; int main() { Base b(10); Test t(20); cout
awesome bro, you just given me enough knowlegde, i am working on a project in c++, i am trying to make dynamic list with class as an object, for that i need to learn many things , it is very helpful.
God bless you..
I just learned so much for free than from a book I bought for 50 dollars..
Thanks man!!
"" is stream extraction operator. The left-hand operand of this operator must be an istream object. Again, the direction of the arrows indicates that we read from the stream. We extract from the stream.
Thanks.
you all probably dont care at all but does any of you know a way to log back into an Instagram account..?
I somehow lost my account password. I appreciate any assistance you can give me.
@Samir Casen Instablaster ;)
@Emory Uriel Thanks for your reply. I found the site through google and I'm in the hacking process atm.
I see it takes quite some time so I will reply here later with my results.
@Emory Uriel It worked and I actually got access to my account again. I'm so happy:D
Thanks so much you really help me out :D
In C++, stream insertion operator “” is used for input. you are mistaken
Oh its my bad, only thumbnail is the issue or i said something wrong in video also?
good one. I had confusion on this topic and you explained it very nicely. Thanks!
Glad it was helpful!
I have a question:
At 6:35 timestamp, you said that if the data members which we are using for '' operation are if public then we don't need to use friend keyword.
my problem: I tried to overload the function in a template of struct but i wasn't able to do it without making the overloaded function as a friend function. But all the members of struct are public by default then why I have to make that overloaded function as friend function. (All the declarations are inside the struct template).
Please help me in this.
wooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooow sir amazing, thanks for making us so clear about this topic,,,,,,,,,,Lots of love from Nepal sir❤
Congratulations for this video, you're a real master and teacher.
thank u so much, i've been stuck on this for long time, didn't understand wtf is this. Thanks
Brother !! Your this video clear all my doubts which was frustating me so much ,,, I want to applaud you by a thing which is called money 🤑 in this world. But right now ,I am struggling in my career with lack of money.... , Whenever i will be successful , I will do something. And for right now ,I will share your channel to tons of my friends.
Thanks buddy for such a good comment.
Guys you don't need to do "friend std::ostream& operator
it was very useful video, I was confused on this subject and I understand now, thank you very much!
sir, a very helpful video, thank u and inshaAllah you will get 1 million subscribers soon.
InshaAllah..
Thank you so much for your beautiful comment !!
Sir in 11:21 I didn't understand how the cin>>t is becoming cin and then it is reading t1.can u plz explain?
because the overloaded function return cin
this explanation just blow my mind 🤯🤯u have got a new subsciber
Thanks man..
Best Tutorials on operator overloading...Just had a request if You can post more videos on C++ graphics Programming
No Graphics experience.
There are good courses on Udemy check it out.
Well explained ❤️
Superb explanation.....Hats off Sir👍🏻👍🏻💯💯💯💯💯💯
Thanks
You explain well
Thanks
Thanks man you have really explained it very well!
Which Sublime Text theme is it? With those trapezoidal tabs.. I searched all over the internet couldn't find it :(
hey hold on why do we use referances in ostream&operatror
This was very helpful. Thankyou, sir.
Welcome!!
Thanks for this video. Really helped me understand
You're so good at explaining TY!!!
You are welcome..
Nicely explained.
Thank you so much!!
Really very well explained.. thank you so much
You are most welcome
thanks man this really helped me out !
Full of information...i am very pleased sir .may allah bless you
Thanks
Thanks for the video! Do you have tutorial for creating binary tree class and overloading it to print out the root and left or right nodes? And for adding in new stuff to the tree?
After completing threading and STL topic i will start DS and AL.
Sir, I don't understand if we return input, output but where we receive it .
In the example P1=P2+ P3 here we return and store it into P1 but in this example input and output return but where we receive it this thing I don't understand.
love you sir g 😘😘😘
why we need to put ostream & operator
Nope bro...Without returning reference, it will returned as a value...but we want to use it again as a cin object....
What a valuable video!! Thank you..
i don't really understand line 22,return input statement just is cin copy ,Do i think right ? Pls explain for me.Tks a lot
thanks this actually helped out a lot good explination
Thanks man!!
wonderful explanation!
Thanks..
Which IDE you are using??
Sublime Text Editor 3
Very nice video. So If I want to do it for more than one class, how will I pass my object as second parameter to overloaded functions?
Can you please help me here?
Well explained, thanks 😊
Glad it was helpful!
Thanks for the wonderful video, can you please explain how to write overloading function inside the class, there it gives error because reference to class is implicitly present as this keyword.
After watching this video i subscribe your channel
Thanks.. 👍
Test(int x=0) :x{x} {},can u tell me what does this line do and what does x{x} do?
It initialise x into x.
What will I do if my class has more than one variables?
1:07 i legit thought its ice cream till now
Thank you.
Can we inherit istream or ostream class
Yes best example is iostream
line number 15:
Test(int x=0):x{x} {}
what does that x{x} does in this statement and why is there an empty bracket??
This is called initializer list in c++. It is similar to x = x where first x is member variable and 2nd x is passed parameter and {} is just a place holder
very helpful video
Thank you !
This is so great . Thank you sir ❤️
You are very welcome
Hi, You are wrong my friend about the names. Here what the documentation says:
Insert formatted output
This operator (
i got error when i removed & from istream& >> operator and also from stream also
How are you calling private data members just by objects? Shouldn't we be using getter function instead?
can you explain once again why we are returning by reference? Where are we returning actually? Sorry, I didn't understand that part.
Thnx a lot 💖 very useful
Glad it was helpful!
Those who still have a doubt that why didn't we make (>>,
Thanks it will help many !!
Thank you so much 💙
Very nice explanation 👏
Great job
Thanks man!!
thank you so much.
Always welcome
friend why we assign constructor with default arguments like cons_name(int x=0):x{ }{}
why we are assigning x=0??
Test(int x=0):x{x} {} in this expression what x{x} means? someone please reply
why not const Test& obj?
Yes, in cout case we should use const, thanks..
int main()
{
Base b(10);
Test t(30);
cout
Here is the link i wrote it for you: coliru.stacked-crooked.com/a/68ef59b37d05fd9d
let me know if you still have some doubts.
@@CppNuts Thanks alot working :
#include
using namespace std;
class Base
{
int x;
public:
Base(int x=0):x{x} {}
friend class Test;
};
class Test
{
int x;
public:
Test(int x=0):x{x}{}
int operator + (Base& b)
{
return x+b.x;
}
};
int main()
{
Base b(10);
Test t(20);
cout
Good..
thanks
You're welcome!
ty
awesome bro... :)
greate one
Thanks
thank youuuuuuuu.
Welcome
love you
👌👌👌👌👌👌👌👌👌👌👌👌👌👌
Thanks
based
Thanks a lot 🥲
Nicely explained...
Thanks man!!