0
已解决
孟昭旭
初级光能
初级光能
#include <bits/stdc++.h>
#include <windows.h>
#define itn int
using namespace std;
void color(short x);
int zt[50][10][10]={
{
{0,0,1,1,1,0,0},
{0,1,1,0,1,1,0},
{0,1,1,0,1,1,0},
{1,1,0,0,0,1,1},
{1,1,1,1,1,1,1},
{1,1,0,0,0,1,1},
{1,1,0,0,0,1,1},
},
{
{1,1,1,1,1,1,0},
{1,1,0,0,0,1,1},
{1,1,0,0,0,1,1},
{1,1,1,1,1,1,0},
{1,1,0,0,0,1,1},
{1,1,0,0,0,1,1},
{1,1,1,1,1,1,0},
},
{
{0,0,1,1,1,1,0},
{0,1,1,0,0,1,1},
{1,1,0,0,0,0,0},
{1,1,0,0,0,0,0},
{1,1,0,0,0,0,0},
{0,1,1,0,0,1,1},
{0,0,1,1,1,1,0},
}
};
void color(short x) {
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),x);
}
int main(){
for (int i=0;i<10;i++){
for (int j=0;j<8;j++){
for (int k=0;k<8;k++){
if (zt[i][j][k]==0){
color(256);
}
else{
color(255);
}
cout<<" ";
}
cout<<endl;
}
cout<<endl<<endl;
}
return 0;
}
孟昭旭在2022-12-29 11:49:12追加了内容
向上滑就可以看到
0
0
0
0
沙宸安
高级启示者
高级启示者
0
0
0
0
0