+ 2
What is the use of this << and >> in c++
C++
3 Antworten
+ 1
They are used for insertion and extraction in iostream objects;
<< for oestream (output):
cout << endl;
>> for istream (input):
cin >> var;
Also can overload them for custom behavior.