#include<iostream>
using namespace std;
int main()
{
int a, i, n, j;
char S;
cout << "以多大的点阵显示汉字,16*16输入16,32*32输入32,以此类推?" << endl;
cin >> a;
cout << "请问构成汉字的基本字符号是什么?" << endl;
cin >> S;
i = n = j = 1;
if (a % 2 == 0)
{
while (i <= a)
{
if (i != 1 && i != a && i != a / 2)
{
while (j <= a)
{
if (j != a / 2)
{
cout << " ";
}
else
{
cout << S;
}
j++;
}
j = 1;
cout << endl;
}
else
{
while (j <= a)
{
cout << S;
j++;
}
j = 1;
cout << endl;
}
i++;
}
}
else
{
while(i<=a)
{
if (i != 1 && i != a && i !=(a + 1) / 2)
{
06-04
05-20
5497
05-22
5566
07-08
8161