+ 46
What are 'cin' and 'cout' if they are not functions ?
48 ответов
+ 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
+ 21
cout and cin are both objects present in <iostream>
They are Input/Output streams, to be precise.
Good question!
+ 14
thank you all))
+ 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.
+ 6
good question 👍 it make me think💡
+ 3
They are C++ keywords having a fixed meaning.The definition of these words is stored in iostream.
+ 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.
+ 2
objects
+ 2
they are input and output streams.
+ 2
They are global objects from the <iostream> library with the operaror<< and operator>>
+ 2
cout and cin are stored in iostream package input and out stream
+ 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)
+ 1
they are the object of header files..
+ 1
They are objects of iostream
+ 1
cin and cout are the objects defined under iostream.h..unlike printf and scanf which are functions of stdio.h
+ 1
objects of iostream class
+ 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.
+ 1
hi
+ 1
in c++ cin used for to take the user input and cout used for display the output on screen
+ 1
cin is to take input via any input device
and cout is to display your output on monitor screen...