csu 1031 Parsing Real Numbers
摘要:
先标记,然后分情况判断,最后一定要多做测试。略显麻烦。/* 1031: Parsing Real Numbers */# include <stdio.h># include <ctype.h># include <string.h># define BITSET(i) ((sign)|=(char)(0x1<<(i)))# define GETBIT(i) ((sign)>>(i) & (0x1))char a[1000];char sign;/* sign: 0 - wrong? 1 - coeff sign 2 - in 阅读全文
posted @ 2012-02-24 15:24 getgoing 阅读(379) 评论(0) 推荐(0) 编辑