#include<iostream> #include<iomanip> using namespace std; void main() { cout<<"Enter the size of the magic square :\n"; int n; cin>>n; n=n/2*2+1; cout<<"the size is "<<n<<endl; int members=n*n; int *foo=new int[members]; //设置动态一维叔祖 int row=0,col=(n)/2;