t1.cpp 251 Bytes
Newer Older
Swann Perarnau's avatar
Swann Perarnau committed
1 2 3 4 5 6 7 8 9 10 11 12 13
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char** argv)
{
	double v = atof("abc");
	printf("v = %lf\n", v);
	v = atof("0.0000");
	printf("v = %lf\n", v);
	for(int i=1; i<argc; i++)
		printf("argv[%d] = %s\n", i, argv[i]);
	return 0;
}