0
Whats the point of the <<num after the cout<<
4 RĂ©ponses
+ 8
It's the insertion operator in C++
+ 3
The << symbol is called insertion operator, it is used to insert information into the output stream. The >> symbol is called extraction operator, it is used to extract information from the input stream. Read more in the following link:
http://faculty.cs.niu.edu/~hutchins/csci241/io-op.htm
Hth, cmiiw
0
in cout class << operator is overloaded to expect the variable which you want to print on the console.
0
i know that i don't understand what <<num after <<cout did to the code at all