something

来源:互联网 发布:anaconda ubuntu 16.04 编辑:程序博客网 时间:2024/06/06 04:27

-Runtime Error(STACK_OVERFLOW)

堆栈溢出.递归层数过多;没有在全局开比较大的数组;这些会出现STACK_OVERFLOW


-用宏定义max和min函数

#define max(a,b) ( ((a)>(b)) ? (a):(b) )
#define min(a,b) ( ((a)>(b)) ? (b):(a) )