![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
那些细节你不曾留意
让我们荡起双脚
信言不美,美言不信。
善者不辩,辩者不善。
知者不博,博者不知。
圣人不积,既以为人己愈有,既以与人己愈多。
天之道,利而不害;圣人之道,为而不争。
展开
-
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 · 1334 阅读 · 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 · 770 阅读 · 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 · 543 阅读 · 0 评论 -
来腾讯已经一年了,大家加油。
转眼已经到腾讯一年了,我依然每天坚持写自己的总结 希望大家都可以每天加油,每天都是一个崭新的开始,都是一个新的起点。原创 2016-08-30 19:57:32 · 1074 阅读 · 3 评论