0

cin to cout

why next code not work? cin >> cout;

11th Feb 2019, 6:27 AM
Alexey Verhola
Alexey  Verhola - avatar
2 Réponses
+ 2
If you pump fuel into your car's exhaust pipe, it probably doesn't work too. The cin object is used to get user input from the input stream into variables. The cout object isn't a variable which allows you to input to.
11th Feb 2019, 6:43 AM
Hatsy Rei
Hatsy Rei - avatar
+ 1
cout is a reserved keyword you can't use it as a variable
11th Feb 2019, 6:40 AM
Alt
Alt - avatar