December 2018
Intermediate to advanced
702 pages
20h 9m
English
The <string> library provides various overloads of the to_string function to convert integer types and floating point types into a string object. This function does not allow you to provide any formatting details, so for an integer you cannot indicate the radix of the string representation (for example, hex), and for floating point conversions, you have no control over options like the number of significant figures. The to_string function is a simple function with limited facilities. A better option is to use the stream classes, as explained in the following section.
Read now
Unlock full access