使用这组ASCII代码制作动态框时遇到问题。我真的不知道该怎么办。此动态框中也有数字。
我已经尝试在循环内部制作循环以调整盒子的大小。
int main(){
char asciis[] = {'\xDA','\xB3','\xC3','\xC0','\x20','\xC4','\xC5','\xC1','\xBF','\xB4','\xD9', '\xC2'};
int box size = (n*2)+1;
char box[box size][box size]; //set the size of the box
//set a in all coordinates
/*for (int r = 0; r < n; r++){
for (int c = 0; c < n; c++){
box[r][c] = 'a';
}
}*/
for (int r = 0; r < n; r++){
for (int c = 0; c < n; c++){
for (int boxrow = 0; boxrow < box size; boxrow++){ …Run Code Online (Sandbox Code Playgroud) c++ ×1