fork download
  1. #include <iostream>
  2. #include <sstream>
  3.  
  4. int main() {
  5. std::istringstream iss("5C3");
  6.  
  7. double n;
  8. iss >> n;
  9.  
  10. std::cout << n << std::endl;
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0s 2820KB
stdin
Standard input is empty
stdout
5