Description: Tetris. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .# Include <iostream># Include <stdlib.h># Include <windows.h># Include <time.h># Include <conio.h> using namespace std # define A1 0// A representative of the long bar, B is a block, C is L-shaped, D is the Lightning (really can not describe the shape)# define A2 1# define B 2# define C11 3# define C12 4# define C13 5# define C14 6# define C21 7# define C22 8# define C23 9# define C24 10# define D11 11# define D12 12# define D21 13# define D22 14 /* typedef struct COORD {//coord SHORT X .// horizontal coordinate SHORT Y // vertical coordinate} COORD */void SetPos (int i, int j)// set the cursor position {COORD pos = {i, j} HANDLE Out = GetStdHandle (STD_OUTPUT_HANDLE) SetConsoleCursorPosition (Out, pos) }.
To Search:
File list (Check if you may need any files):
俄罗斯方块
..........\bin
..........\...\Debug
..........\...\.....\俄罗斯方块.exe
..........\main.cpp
..........\obj
..........\...\Debug
..........\...\.....\main.o
..........\俄罗斯方块.cbp
..........\俄罗斯方块.depend
..........\俄罗斯方块.layout