摘要:
源自《The C Programming Language》P83 pr5-2: 模仿函数getInt 的实现方法,编写一个读取浮点数的函数getFloat,getFloat函数的返回值应该是什么类型呢? 代码:View Code 1 #include <stdio.h> 2 #include <ctype.h> 3 4 int getInt(int *); 5 int getFloat(double *); 6 7 #define SIZE 100 8 #define MAX_FLT 2147483648 //double 8字节,但2^63太大,此处用2^31作为阈 阅读全文