91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 0.01M
    文件類型: .cpp
    金幣: 1
    下載: 0 次
    發布日期: 2021-01-29
  • 語言: C/C++
  • 標簽: 飛機??打飛機??

資源簡介

c++ 打飛機 小游戲源碼(入門級)

資源截圖

代碼片段和文件信息

#include
#include
#include
#include
#include
using?namespace?std;

/*===============?all?the?structures?===============*/

typedef?struct?frame
{
COORD?position[2];
int?flag;
}frame;


/*===============?all?the?functions?===============*/

void?SetPos(COORD?a)//?set?cursor?
{
HANDLE?out=GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleCursorPosition(out?a);
}

void?SetPos(int?i?int?j)//?set?cursor
{
COORD?pos={i?j};
SetPos(pos);
}

void?HideCursor()
{
CONSOLE_CURSOR_INFO?cursor_info?=?{1?0};?
SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE)?&cursor_info);
}

//把第y行,[x1?x2)?之間的坐標填充為?ch
void?drawRow(int?y?int?x1?int?x2?char?ch)
{
SetPos(x1y);
for(int?i?=?0;?i?<=?(x2-x1);?i++)
cout<

評論

共有 條評論