C++大作业俄罗斯方块.docxVIP

  • 1
  • 0
  • 约5.44千字
  • 约 9页
  • 2021-10-27 发布于天津
  • 举报
#includeiostream #include #include #include #include using namespace std; #defineA10〃A代表长条型,B为方块,C为L型,D为闪电型(实在无法描述那个形状) #define A2 1 #define B 2 #define Cll 3 #define C12 4 #define C13 5 #define C14 6 #define C21 7 #define C22 8 #define C23 9 #define C24 10 #define Dll 11 #define D12 12 #define D2113 #define D22 14 void SetPos(int i/nt j)〃设定光标位置 { COORD pos={ij}; HANDLE Out=GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleCursorPosition(Outz pos); ) int sharp[15][8]= | {0。1。2,030},{0,0,0,1。2,0,3}, {0,0,1,0,0,1,14}, {00141」,1,2},{0,1,0,2,1,2},{0,0,0,1,1,02。}, {101,1」,2,0,2},{0,0,0,1」1,2」},{0,0,0,102,

文档评论(0)

1亿VIP精品文档

相关文档