
那些细节你不曾留意
让我们荡起双脚
信言不美,美言不信。
善者不辩,辩者不善。
知者不博,博者不知。
圣人不积,既以为人己愈有,既以与人己愈多。
天之道,利而不害;圣人之道,为而不争。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C++:宏替换的误区
看下面的代码,输出的结构是什么呢?#include <iostream>using namespace std;#define NUM 0void fun(){ #undef NUM #define NUM 100}int main(){ fun(); cout<<"NUM="<<NUM<<endl;//NUM=100; return 0;}没错原创 2015-08-28 15:29:37 · 1381 阅读 · 1 评论 -
欢迎来挑战:极限打印99乘法表
#include <iostream>using namespace std;int main(){ //凡是有两个for,while循环的,有 if,有?:的,有Switch的全部Out! int count = 1; int sum = (1 + 9) * 9 / 2; int flags = 1; for (int i = 1; i <= sum;原创 2015-09-03 15:34:50 · 825 阅读 · 0 评论 -
笔试题:o(n)解法求最大回文串(Manacher)
#include <iostream>using namespace std;void Grial(char *s){ int maxindex = 0;//init max length int maxstart = 0; int b[100]={0}; string str; string resultStr; str+='@';原创 2015-09-06 21:03:37 · 596 阅读 · 0 评论