Hi
I have the following minimal non-working example:
I am trying to convert argv[1] to a double, but my example crashes when I run it. I don't really understand why. I am using code::blocks, does it have something to do with that?Code:#include <iostream> #include <stdlib.h> #include <stdio.h> using namespace std; int main(int argc, char* argv[]) { double b = strtod(argv[1], NULL); return 0; }
Best,
Niles.