Input string streams are used mainly for formatted reading from existing strings. For example, it
is often easier to read data line by line and then analyze each line individually. The following lines
read the integer x with the value 3 and the floating-point f with the value 0.7 from the string s: