Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
std::istringstream is an STL input stream data type.
The example below shows how to check if a std::string can be converted to double: put the std::string in an std::istringstream and try to write it to a double. If this fails, the std::string cannot be converted to double.
#include <cassert> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.