摘要: 水题,首先把两个数组的的长度设为一样的,即空位补零,数字在数组中以右对齐方式存储。 代码如下: 1 #include <cstdlib> 2 #include <cstring> 3 #include <cstdio> 4 using namespace std; 5 6 int main() 7 { 8 char a[10], b[10], aa[10], bb[10]; 9 int bit, num1, num2;10 while( 1 )11 {12 memset( a, '0', sizeof( a ) );13 ... 阅读全文
posted @ 2011-09-13 13:04 沐阳 阅读(340) 评论(0) 推荐(0) 编辑