What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-09-16 03:36:03
c++ changing string to double
#include <iostream> using namespace std; int main() { char s[20] = "18.2894 is a number"; char *p; double result; result = strtod(s, &p); cout<<"The number aft... Add solution