摘要: static_cast<void(*)(int&)>(f)(x);去调用引用版本 阅读全文
posted @ 2017-12-11 14:51 杏坛sky 阅读(88) 评论(0) 推荐(0)
摘要: 冒泡 时间复杂度 n*(n-1)/2 空间复杂度 1; void sortint(int * a, int count) { for(int top = 0;top <count;top ++) for(int seek = top +1;seek <count;seek++) if(*(a+top 阅读全文
posted @ 2017-12-11 14:51 杏坛sky 阅读(184) 评论(0) 推荐(0)