0

Whats the point of the <<num after the cout<<

12th Jul 2018, 5:34 PM
(Dreadlord450)
(Dreadlord450) - avatar
4 odpowiedzi
+ 8
It's the insertion operator in C++
12th Jul 2018, 5:47 PM
DAB
DAB - avatar
+ 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
12th Jul 2018, 5:50 PM
Ipang
0
in cout class << operator is overloaded to expect the variable which you want to print on the console.
12th Jul 2018, 5:49 PM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar
0
i know that i don't understand what <<num after <<cout did to the code at all
12th Jul 2018, 6:56 PM
(Dreadlord450)
(Dreadlord450) - avatar