摘要:
使用数组的来表示一个较大的数: #include<iostream> using namespace std; void add(int* &a, int length) { int c = 1; //c代表进位,完成对数组的更新,并保留最高为的进位; for (int i = length - 1 阅读全文
posted @ 2017-04-30 22:03
lif323
阅读(171)
评论(0)
推荐(0)
摘要:
#include<iostream> using std::endl; using std::cout; using std::cin; inline bool isRes(long x,long y){//判断 x是否为y的平方根; return (x*x==y)||((x*x<y)&&((x+1 阅读全文
posted @ 2017-04-30 21:40
lif323
阅读(190)
评论(0)
推荐(0)