登录
首页 » Windows开发 » 游蛇吃豆 main.c代码

游蛇吃豆 main.c代码

于 2022-05-25 发布 文件大小:4.33 kB
0 234
下载积分: 2 下载次数: 1

代码说明:

游蛇吃豆游戏,基本要求: (1)键盘控制改变游蛇运动方向; (2)碰到边框或栅栏游戏结束; (3)吃掉豆子蛇身变长; (3)豆子全部吃光,游戏结束。 提高要求(选做): (1)改进游戏界面,增加相关统计信息; (2)考虑一合理的得分方法,得分值取决于吃下去的豆子和游戏完成时间等等。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 内存泄漏测试
    memory leak test
    2022-02-06 21:36:42下载
    积分:1
  • c言语环境下进行 龟兔赛跑 仿真 很有趣的小程序
    c言语环境下进行 龟兔赛跑 仿真 很有趣的小程序-c language龟兔赛跑simulation environment
    2022-07-22 18:05:00下载
    积分:1
  • Compiler Principle small programs have a small problem source files as follows :...
    编译原理小程序 有点小问题 源程序文件内容如下: main() { int a, b a = 10 b = a + 20 } 要求输出如下: (2,”main”) (5,”(”) (5,”)”) (5,”{“} (1,”int”) (2,”a”) (5,”,”) (2,”b”) (5,” ”) (2,”a”) (4,”=”) (3,10) (5,” ”) (2,”b”) (4,”=”) (2,”a”) (4,”+”) (3,20) (5,” ”) (5,”)”)-Compiler Principle small programs have a small problem source files as follows : main () (int a, b a = b = a 10 20) output requirements are as follows : (2, "main") (5 ,"(") (5, " ) ") (5 ,"{"} (1," int ") (2," a ") (5 ,",") (2," b ") (5," ") (2," a " ) (4 ,"=") (3,10) (5, "") (2, "b") (4 ,"=") (2, "a") (4, "") (3,20 ) (5, "") (5 ,")")
    2022-04-18 02:56:06下载
    积分:1
  • C++ 日志工具
    我在项目开发过程中,自己开发的一个日志工具,使用c++语言开发。使用单线程,不阻塞主线程。日志存放在事先分配好的多条队列中,运行期间可检测队列情况而释放或者增加缓冲区。最大发挥日志的速度。当然也有问题,主线程崩了的话,日志线程也会崩的。
    2022-07-09 10:20:28下载
    积分:1
  • Sales management system.. that includes complete sales functions and track accou...
    Sales management system.. that includes complete sales functions and track account recievables by each customer.
    2022-08-26 07:32:03下载
    积分:1
  • 实现方法: 用MFC的程序向导生成一个常规DLL,在常规DLL内有一派生自CWinApp的实例,再用MFC的程序向导生成一个MFC EXE应用程序,把MFC E...
    实现方法: 用MFC的程序向导生成一个常规DLL,在常规DLL内有一派生自CWinApp的实例,再用MFC的程序向导生成一个MFC EXE应用程序,把MFC EXE应用程序中 CAppView,CMainFrame,CAppDocument的文挡和RES目录下的资源拷贝到常规DLL项目中,添加到项目中,编译生成一DLL,在另外一个WIN32应用程序中,启动一线程,在线程函数中显式装载该DLL,取的该DLL内的当前线程, CWinThread *pThread=GetCurrentThread() pThread->Run() 就可装载启动常规DLL内应用程序框架.-method: a normal DLL file has been created with the program wizard and there is an instance generated from CWinApp in the DLL file.Create another MFC EXE appliaction and copy CAppView,CMainFram,CAppDocument and the resources in RES directory to the normal DLL and add to the projec and compile and generate a DLL. In a Win32 application, start a thread which loads the DLL with codes, get the running thread, ie.CWinThread*pThread=GetCurrentThread(), then,pThread->Run() executes the loading and start the execution of the application framework in the normal DLL file.
    2022-07-13 07:36:52下载
    积分:1
  • 用。net编写的C++程序,写一个对沉降的超市销售…
    用.net编写的C++程序,写一个超市的售货结算,手动输入模拟读码器。-used. Net prepared by the C program, write a supermarket for the sale of settlement, manual input simulation code reading device.
    2022-06-29 02:51:30下载
    积分:1
  • LU矩阵分解串行算法,一个矩阵拆分成两个三角矩阵乘积
    LU矩阵分解串行算法,一个矩阵拆分成两个三角矩阵乘积-Serial LU matrix factorization algorithm
    2022-03-01 10:05:04下载
    积分:1
  • Examples
    实例――实现打印功能 实例――实现打印功能-Examples- examples of printing realize- realize printing function
    2022-01-26 02:46:07下载
    积分:1
  • Delaunay三角网作为一种主要的DTM表尔法,具有权其广泛的用途。经过二十多年来的研究,它的生成算法巳趋于成熟。本文简要介绍了Delaunay三角网的定又及...
    Delaunay三角网作为一种主要的DTM表尔法,具有权其广泛的用途。经过二十多年来的研究,它的生成算法巳趋于成熟。本文简要介绍了Delaunay三角网的定又及其特性,在简单回顾和评价了分割―归并法,逐点插入法,三角冈生长法等三类主沈算法的基础上,提出了一个融以上算法优点于一体,兼顾空间与时间性能的合成算法。经测试,一般情况下它的运算速度远快于逐点插入法,与分割―归并法相当,较好的情况下快于分割―归并法。-Delaunay Triangulation as a major DTM Fall table, with the right to its extensive use. After 20 years of study, which had been generating algorithm is maturing. This paper introduces a Delaunay Triangulation and another set of characteristics, in a brief review and evaluation of the divide-conquer method, point by point insertion method, the supraspinatus Growth Triangle law Shen three main algorithm on the basis of the above algorithm into an advantage in that balanced space and time performance of synthesis algorithm. After tests, under normal circumstances it"s computational speed much faster than the insertion point by point, and the divide-conquer method rather, a better situation faster than divide-conquer method.
    2022-08-21 12:05:01下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载