标签:
#include <stdlib.h> #include <stdio.h> int main(void) { double d; char *str = "12345.67"; d = atof(str); printf("string=%s double=%lf\n", str, d); return 0; }
atof函数
原文地址:http://www.cnblogs.com/try-again/p/4998308.html