- 博客(7)
- 收藏
- 关注
原创 【无标题】
void updateWithInput() { char input; if(kbhit()) { input=getch(); if(input=='a') { moveDirection=3; moveSnakeByDirection(); } else if(input=='d') { moveDirection=4; moveSnakeByDirection(); } else if(input=='w') .
2022-03-25 20:07:48
3295
原创 接上篇博客贪吃蛇
COORD pos; pos.X=x; pos.Y=y; SetConsoleCursorPosition(handle,pos); } void startup() { int i,j; for(i=0;i<High;i++) { canvas[i][0]=-1; canvas[i][width-1]=-1; } for(j=0;j<width;j++) { canvas[0][j]=-1; canvas[High-1][j]=-1; ...
2022-03-21 20:04:23
80
原创 按照老师给的代码写了一部分
#include<stdio.h> #include<stdlib.h> #include<conio.h> #include<windows.h> #define High 20 #define width 30 int canvas[High][width]={0} void gotoxy(int x,int y) { HANDLE handle=GetStdHandle(STD_OUTPUT_HANDLE); COORD pos; pos.X=.
2022-03-18 21:06:45
190
空空如也
鸿蒙项目在模拟器上运行出错
2024-06-22
TA创建的收藏夹 TA关注的收藏夹
TA关注的人