zrq495
www.zrq495.com
摘要: 判断给出的两数字及其和或积是否在int范围内。int最大为0x7fffffff。数组存放数字,在比较。代码如下: 1 #include<stdio.h> 2 #include<string.h> 3 4 char s[2000], a[2000], b[2000], op[2]; 5 int A[2000], B[2000], S[2000]; 6 7 void judge() 8 { 9 long long a1, b1, s1;10 sscanf(a, "%lld", &a1);11 sscanf(b, "%lld", 阅读全文
posted @ 2012-06-17 20:01 zrq495 阅读(232) 评论(0) 推荐(0) 编辑