Input Output Functions 


Function or keyword which is used for taking input from user in Variable is “cin” it stands for Console-in and a Function used to display something on a screen is “cout” it stands for Console-out. Both functions are defined in <iostream> Header file of C++ Standard library. In the image below is a example program in which we take input from user and simply display that input on screen. Two (greater than signs) are used with cin as syntax like “cin>>” and two (less than signs) are used with cout like “cout<<” as a syntax.

 

cout cin functios


Conclusion

I hope you have understand the concept of cout, cin functions of C++. Allah Hafiz

 

Tags: cout | cin | input output Functions | user input | screen output