0

Cout<< help

why we have written (b) like this cout << a << " "<< b; in the code which allows user to inputs a variable multiple times?

5th Nov 2017, 6:35 AM
Robin
Robin - avatar
3 Antworten
+ 2
you can use the same cout command for writing multiple variables/items, using <<. first you output the variable a, next you output a string enclosed in " ", which actually puts a space after a. and last it outputs the variable b.
5th Nov 2017, 6:45 AM
storm
storm - avatar
0
Bro thanks for help and answer my another question just asked a few seconds ago. Thanks again
5th Nov 2017, 6:46 AM
Robin
Robin - avatar
0
I completely understand what you said thanks bro for the help.
5th Nov 2017, 6:47 AM
Robin
Robin - avatar