2011年6月1日
摘要: 源自《The C Programming Language》P62 pr4-2,代码位于ex4.2中:对atof函数进行扩充,使它能够处理形如:123.45e-6的科学表示法,其中浮点数后面可能会紧跟一个e或E以及一个指数 代码:main.c 1 #include <stdio.h> 2 #include <ctype.h> 3 4 #define MAXLINE 100 5 6 int getLine(char s[], int lim); 7 double atof(char s[]); 8 int pow(int base, int expn); 9 10 int 阅读全文
posted @ 2011-06-01 19:43 将军之盾 阅读(1429) 评论(0) 推荐(0) 编辑