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

  • 大小: 5.28KB
    文件類型: .cpp
    金幣: 1
    下載: 0 次
    發布日期: 2021-01-29
  • 標簽: 貪吃蛇??A0.1??

資源簡介

c++ 貪吃蛇 A0.1 示例源碼

資源截圖

代碼片段和文件信息

#include?
#include?
#include?
#include?
#include?

using?namespace?std;

int?food[2]?=?{?9?9?};
int?snake[1000][2];
int?length?=?1;
int?headX?headY;
int?speed?=?500;
int?score?=?0;
int?level?=?1;
string?name;

void?gotoxy(short?x?short?y);
int?setdirection(int?x);
void?changesnake(int?x);
void?ifchangefood();
void?makefood();
bool?judgelife();
void?drawsnake();
void?drawfood();
void?drawwall();
void?drawscore();
void?draw();

int?main()
{
????SetConsoletitle(“貪吃蛇游戲“);
????int?po?=?2;
????snake[0][0]?=?7;
????snake[0][1]?=?7;
????headX?=?snake[0][0];
????headY?=?snake[0][1];
????gotoxy(30?7);
????cout?<????gotoxy(30?9);
????cout?<????gotoxy(30?11);
????system(“cls“);

評論

共有 條評論