为什么我的 C++ 代码会触发堆栈溢出?
#include "stdafx.h"
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
cout<<"Enter an odd number for the order of magic square: ";
cin>>num;
int sqr[5][5];
for (int i=0; i<num; i++)
for (int j=0;j<num; j++)
sqr [i][j]=0;
return 0;
}