December 2018
Intermediate to advanced
702 pages
20h 9m
English
Use the following standard conversion functions when you need to convert between numbers and strings:
auto si = std::to_string(42); // si="42" auto sl = std::to_string(42l); // sl="42" auto su = std::to_string(42u); // su="42" auto sd = std::to_wstring(42.0); // sd=L"42.000000" auto sld = std::to_wstring(42.0l); // sld=L"42.000000"
auto i1 = std::stoi("42"); // i1 = 42 auto i2 = std::stoi("101010", nullptr, ...Read now
Unlock full access