+ 2
I am little bit confused b/w cout and cin....so what's the main difference between them?
14 Respostas
+ 6
Both cout and cin are objective functions. These functions are the ways for communication between an user and a computer. cout function gives the output to user and cin function takes input from user.
+ 4
cout is output.
cin is input.
that's the difference.
+ 3
cout prints output on screen and cin takes input from user.. after cout u have to write << and after cin you have to write >>
+ 3
cout is work as console output and cin is work as a console input.
when we have print something on screen by computer then we have to use cout..
if user wants to give instructions or value of variable then we have to use cin
+ 2
cout<<"Please insert a number: ";//Output
cin>> number; //Input
+ 2
the cout stand for output you want to exspress and direct output subsequent words,but the cin's fuction need you input your words ,else your procedure can't operation.
0
cout is used for output, and cin is used to input
0
cout is used to print the statement on the screen, which you write in the double quotation marks and the cin is used to take the input from you , when you runs the program
0
cout is console output
cin is console input
you use cin to input numbers
eg: ... cin>>a;//if you type 420, the variable's value will be 420 for that run
cout<<"your input it:"<<a;//outputs "your input is a(asigned value)"
0
cout give output and cin take input from users
0
cout means console output(similar to printf function in c which is used to input data )
cin means console input(similar to scanf function in c) cin displays the output
0
Cout show the data to screen, and cin takes any data(text, numbers) from user for using it in the future and usually stores taken info into variable or array
0
cout is used for printing statement
cin is used for taking the input from the user
- 1
cin is for obtaining input from. the user..while court gives the output