/*3维数组ss用于存放由*组成的0~9这10个数字的图案,其中5表示行,7表示列*/
char ss[5][10][7]= {"***** "," * ","***** ","***** ","* * ","***** ",
"***** ","***** ","***** ","***** ","* * "," * ",
" * "," * ","* * ","* ","* "," * ",
"* * ","* * ","* * "," * ","***** ","***** ",
"***** ","***** ","***** "," * ","***** ","***** ",
"* * "," * ","* "," * "," * "," * ",
"* * "," * ","* * "," * ","***** "," * ",
"***** ","***** "," * ","***** ","***** "," * ",
"***** ","***** ",};
cout<<"\n============公元"<<year<<"年日历=============="<<endl;
fout<<"\n============公元"<<year<<"年日历=============="<<endl;
/*实现3维数组图案的输出*/
for(int g=0;g<5;g++)
{
cout<<" ";
fout<<" ";
for(int i=0;i<4;i++)
for(int h=0;h<7;h++)
{
cout<<ss[g][num[i]][h];
fout<<ss[g][num[i]][h];
}
cout<<endl;
fout<<endl;
}
输入并按Enter键确认
<<"************请输入您要执行的操作序号并按Enter键确定:";