+ 2
What is the use of this << and >> in c++
C++
2 Réponses
+ 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.