摘要: 在递归函数中用到的变量,要将它声明为局部变量,切记不能声明为全局变量。 如下面归并排序中的变量k。 1 #include<iostream> 2 3 using namespace std; 4 5 const int N = 100010; 6 7 int a[N],b[N]; 8 9 int n 阅读全文
posted @ 2020-02-16 15:49 时光以北 阅读(584) 评论(0) 推荐(0) 编辑