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).
Tags
C++