本文介绍了如何绘制一个3x3正方形的针孔板,外观比这更好?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
void display_board() { cout < < "---------------- -----<< endl <<恩德尔 cout << " | | " <<恩德尔 cout << " " << board [0] [0]<< " | " << board [0] [1]<< " | " << board [0] [2]<<恩德尔 cout << "_____ | _____ | _____"<<恩德尔 cout << " | | " <<恩德尔 cout << " " << board [1] [0]<< " | " << board [1] [1]<< " | " << board [1] [2]<<恩德尔 cout << "_____ | _____ | _____"<<恩德尔 cout << " | | " <<恩德尔 cout << " " << board [2] [0]<< " | " << board [2] [1]<< " | " << board [2] [2]<<恩德尔 cout << " | | " <<恩德尔 }
解决方案
void display_board() { cout << "---------------------" << endl << endl; cout << " | | " << endl; cout << " " << board[0][0] << " | " << board[0][1] << " | " << board[0][2] << endl; cout << "_____|_____|_____" << endl; cout << " | | " << endl; cout << " " << board[1][0] << " | " << board[1][1] << " | " << board[1][2] << endl; cout << "_____|_____|_____" << endl; cout << " | | " << endl; cout << " " << board[2][0] << " | " << board[2][1] << " | " << board[2][2] << endl; cout << " | | " << endl; }
解决方案
这篇关于如何绘制一个3x3正方形的针孔板,外观比这更好?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!