in the taking input of linkedlist video, how has the input been taken, kindly guide me. i am referring to the c++ launchpad course
In the taking input of linkedlist video, how has the input been taken, kindly guide me
are you talking about this??
here we do operator overloading
In C++, we can make operators to work for user defined classes. This means C++ has the ability to provide the operators with a special meaning for a data type, this ability is known as operator overloading.
cin>>x;
here >> is a function which take two parameters cin and x
this function is defined in c++ for primitive data types only
if we want to define it our user defined class we can do that as explained in the video
this is operator overloading
i suggest you to watch video in series
if you didn’t understand once
without hesitation watch it again
if have doubt feel free to raise doubt