0

Explain please

look some blogs are saying that..... cout cin these objects are defined in iostream header files.. ...some are saying they are defined in istream and ostream...... and some are saying they are defined in namespace....... where these are actually defined and how namespace std actually works....

18th Aug 2018, 12:16 PM
Teddy
Teddy - avatar
2 Answers
+ 5
cin is object of class istream. cout is object of class ostream. These objects and their classes defined in std namespace in iostream
18th Aug 2018, 12:22 PM
Roman Khristoforov
Roman Khristoforov - avatar