成品展示 贪吃蛇 代码分享 test.c: #define _CRT_SECURE_NO_WARNINGS 1 #include "snake.h" void test() { int ch; do { Snake snake = { 0 }; GameStart(&snake); GameRun(&snake); GameEnd(&snake); SetPos(25,17); printf("再来一局吗?(1/0):"); scanf("%d", &ch); getchar(); } while (ch == 1); } int main() { setlocale(LC_ALL, ""); test(); SetPos(0, 36); return 0; } snake.h: #define _CRT_SECURE_NO_WARNINGS 1 #include <stdio.h> #include <stdlib.h> #include <locale.h> #include <windows.h> #include <stdbool.h> #define WALL L'¤'...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with int
Contact int, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack