I/O
Strings can be output using the insertion operator
It is possible to fill a string using the extraction operator but, as with all other types of data, all whitespaces are skipped; moreover, each reading of input stops at the next space or line break
To read an entire line use the getline member function
getline takes two arguments
- the first argument is the string variable
- the second is an integer indicating the maximum size of the string variable