请问为啥这样是错的!
#include <bits/stdc++.h>
using namespace std;
int main()
{
int buff_data[2147483647];
...
return 0;
}
本来想做这个,发现问题简化成上块代码,结果没搞懂
#include <bits/stdc++.h>
using namespace std;
template <class type, int MAXL = 2147483647> //默认最大容纳量为2147483647,结果下面的数组大小不能是2147483647。
class Stack //自制栈
{
private:
type data[MAXL];
int len;
public:
//...天机不可泄漏,我以后会上传它的资源。
...
};
int main(){return 0;}
都报错了!紧急求救!把数字调小一些可以,但是我是强迫症,只能让它是2147483647(INT_MAX)。