Output and Input in C++

 

Input in C++?

Function input in C++ is (cin) but you should write after this (>>) and variable name, not can work for this function write before (cin) (std::) so it becomes (std::cin>>....) or write library (using namespace std;).


Output in C++?

Function output in C++ is (cout) but should you write after this (<<) and ("any think") or variable name, not can work for this function write before (cout) (std::) so it becomes (std::cout<<....) or write library (using namespace std;), There are functions of the same job (cout) and The same way to write is (cerr,clog).
We shouldn't forget (printf..) do not print variaples,its way of writing it [print("any thank")] and she don't want library (usign namespace sts;).




Previous Post Next Post