fork(20) download
  1. #include <iostream>
  2. #include <cstdio>
  3. using namespace std;
  4.  
  5. int main() {
  6. char *str = "\"$: \" \"213.23453\"";
  7. double d;
  8. sscanf(str, "%*[^0-9]%lf", &d);
  9. cout << d << endl;
  10. return 0;
  11. }
Success #stdin #stdout 0s 2896KB
stdin
Standard input is empty
stdout
213.235