+ 46

What are 'cin' and 'cout' if they are not functions ?

25th Nov 2016, 8:24 PM
LyannaM
LyannaM - avatar
48 Réponses
+ 76
they are objects of <iostream> another example to prove this is that when we want to get a line as input from the console we use cin.getline() the " . " operator can justify that cin is an object not a function
25th Nov 2016, 8:51 PM
Hrishikesh Sontakke
Hrishikesh Sontakke - avatar
+ 21
cout and cin are both objects present in <iostream> They are Input/Output streams, to be precise. Good question!
27th Nov 2016, 5:31 AM
Varun Ramani
Varun Ramani - avatar
+ 14
thank you all))
27th Nov 2016, 8:29 PM
LyannaM
LyannaM - avatar
+ 12
They are objects, specifically streams. Another use for streams is to read and write files. Console input (cin) and output (cout) are, in C/C++ managed as files would be. The big difference is that instead of reading/writing from/to your hard drive, it reads/writes from/to your terminal.
25th Nov 2016, 8:50 PM
Arthur Busser
Arthur Busser - avatar
+ 6
good question 👍 it make me think💡
17th Feb 2017, 1:54 PM
oi_io
+ 3
They are C++ keywords having a fixed meaning.The definition of these words is stored in iostream.
3rd Dec 2016, 3:48 PM
Gaurav Foujdar
Gaurav Foujdar - avatar
+ 3
they are objects in <iostream>. And by objects i mean objects of classes. The functionality of cin is that it connects to the input stream(keyboard) with which you are providing an input to the system whereas cout connects to the output stream(monitor screen) on which your output will be displayed.
5th Dec 2016, 3:25 AM
shweta arya
shweta arya - avatar
+ 2
objects
25th Nov 2016, 8:36 PM
Zablas
Zablas - avatar
+ 2
they are input and output streams.
4th Dec 2016, 7:09 AM
Lord Centillion
Lord Centillion - avatar
+ 2
They are global objects from the <iostream> library with the operaror<< and operator>>
5th Dec 2016, 12:40 AM
Charles Mailly
Charles Mailly - avatar
+ 2
cout and cin are stored in iostream package input and out stream
29th Jan 2017, 2:55 PM
Konduru. Chandana Sree
Konduru. Chandana Sree - avatar
+ 1
they are the attributes or the data member that is pre available in the <iostream.h> to display the given text or phrase (cout) and to accept the value (cin)
30th Nov 2016, 2:07 PM
Mani Maran
Mani Maran - avatar
+ 1
they are the object of header files..
2nd Dec 2016, 11:42 AM
sandeep sandy
sandeep sandy - avatar
+ 1
They are objects of iostream
4th Dec 2016, 12:35 AM
Shiva Gaire
+ 1
cin and cout are the objects defined under iostream.h..unlike printf and scanf which are functions of stdio.h
4th Dec 2016, 4:55 AM
RaVVan
RaVVan - avatar
+ 1
objects of iostream class
4th Dec 2016, 4:14 PM
Rajiv Puranik
Rajiv Puranik - avatar
+ 1
These are objects belonging to application context and stand for standard input (cin) and standard output (cout) streams, which are usually pointing to the console.
4th Dec 2016, 11:19 PM
Saeed Ghasemi
Saeed Ghasemi - avatar
+ 1
hi
5th Dec 2016, 6:48 AM
eshema6692110
eshema6692110 - avatar
+ 1
in c++ cin used for to take the user input and cout used for display the output on screen
5th Dec 2016, 6:53 AM
BASUDEV KUMAR MAHTO
BASUDEV KUMAR MAHTO - avatar
+ 1
cin is to take input via any input device and cout is to display your output on monitor screen...
6th Dec 2016, 1:48 AM
Dhiraj singh✔️
Dhiraj singh✔️ - avatar