zrq495
www.zrq495.com
摘要: 注:本文转自 http://developer.51cto.com/art/200509/3578.htmC、传统 C++#include <assert.h>//设定插入点#include <ctype.h> //字符处理#include <errno.h> //定义错误码#include <float.h> //浮点数处理#include <fstream.h> //文件输入/输出#include <iomanip.h> //参数化输入/输出#include <iostream.h> //数据流输入/输出# 阅读全文
posted @ 2012-07-25 19:23 zrq495 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 大数加法。注意:输入100000输出0代码如下: 1 #include<iostream> 2 #include<cstring> 3 using namespace std; 4 int main() 5 { 6 int T, i; 7 char a[1000]; 8 int sum[1000], b[1000]; 9 cin >> T;10 while(T--)11 {12 memset(a, 0, sizeof(a));13 ... 阅读全文
posted @ 2012-07-25 18:41 zrq495 阅读(296) 评论(0) 推荐(0) 编辑