+ 1

I don't understand use of cin

2nd Jul 2019, 6:25 AM
prabhat yadav
prabhat yadav - avatar
2 Antworten
+ 12
• User Input To enable the user to input a value, use 'cin' in combination with the extraction operator (>>). The variable containing the extracted data follows the operator. https://www.sololearn.com/learn/CPlusPlus/1607/ As with 'cout', extractions on 'cin' can be chained to request more than one input in a single statement: cin >> a >> b; ➝ Read the COMMENTS, you can find useful answers...😉 https://code.sololearn.com/cAx3054d7f4i/?ref=app
2nd Jul 2019, 9:37 AM
Danijel Ivanović
Danijel Ivanović - avatar
+ 4
Used to input data from the command line/console into the program.
2nd Jul 2019, 9:03 AM
Sonic
Sonic - avatar