随笔分类 -  C/C++/Lua

排序
摘要:#include #include using namespace std;void bubble(int *a, int len) { for(int i = 0; i a[j + 1]) swap(a[j], a[j + 1]);}void select(int *a, int n) {... 阅读全文

posted @ 2015-09-20 14:18 Susake 阅读(159) 评论(0) 推荐(0)

【高精度运算】加,减,乘,比较
摘要:void Susake_add(char *s1, char *s2) { int len1 = strlen(s1), len2 = strlen(s2), len, i; int a[N] = {0}, b[N] = {0}; for(i = 0; i len2 ? l... 阅读全文

posted @ 2015-06-17 15:45 Susake 阅读(291) 评论(0) 推荐(0)

导航