From 203b24769fa9d70e66dc3c2c6f9ab2267e7ad5f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=96=87=E4=BF=8A?= <18408000201@stu.hut.edu.cn> Date: Wed, 9 Jan 2019 11:21:49 +0800 Subject: [PATCH] first commit --- 棋盘.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 棋盘.cpp diff --git a/棋盘.cpp b/棋盘.cpp new file mode 100644 index 0000000..cd353d0 --- /dev/null +++ b/棋盘.cpp @@ -0,0 +1,25 @@ +#include +#include +int main() +{ + int i,j; + for(i=0;i<8;i++) + { + for(j=0;j<8;j++) + { + if((i+j)%2==0) + { + printf("%c%c",168,128); + } + else + { + printf(" "); + } + } + printf("\n"); + } + system("pause"); + return 0; + +} +