登录
首页 » 算法 » 自己写的贪吃蛇的c语言代码

自己写的贪吃蛇的c语言代码

于 2023-01-17 发布 文件大小:2.32 kB
0 210
下载积分: 2 下载次数: 1

代码说明:

应用背景有趣的贪吃蛇代码,用c语言实现,简单易懂,不会很复杂。虽然网上已经有很多类似的游戏代码,但这是我亲自写,亲自测试的,一定能用。相信你会从中找到乐趣。关键技术简单的图形实现,关键的贪吃蛇算法,不是很难的,就是最基本的,有一点c基础的应该都能理解,也没有什么关键的技术与算法。

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

发表评论

0 个回复

  • C++实现基于用户的协同过滤
    算法过程:1).读入数据,将数据用user_brands存起来,同时建立userid_id,再建立id_brands  2).遍历id_brands得到物品-用户倒排表brand_ids,根据倒排表得到用户的相似矩阵sim_mat  3).为每个用户推荐产品:      3.1).求用户u买过的brand和所有brand的差集得到用户u没有买过的物品集合brand_unused;      3.2).用户u对每一个没用过的物品i的兴趣p(u,i):          3.2.1).找到与用户u最近的k个用户          对于每一个没用过的物品i:          3.2.2).找出这k个用户中对物品i有过行为的用户v[]√          3.2.3).将用户u和v[j]的兴趣相似度累加      3.3).取前m个最感兴趣的brand推荐给用户;  代码:UCF.cc(用户协同过滤核心代码):#include  #include  #include  #include  #include  #include  #include  #include  #include  #include  
    2023-03-01 07:45:04下载
    积分:1
  • 中国象棋 王小春
    中国象棋 王小春 源码。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
    2022-03-03 00:09:53下载
    积分:1
  • 德劳内三角化
    Delaunay三角剖分为点的平面内的一组P是三角测量的DT(P),使得在P点没有任何三角形DT中(P)的外接圆内。 Delaunay三角最大化在三角测量三角形的各角的最小角度;他们倾向于避免骨感三角形。
    2022-06-13 05:04:34下载
    积分:1
  • //产生0
    //产生0-1之间均匀分布一个随机数// /////////////////////////////////////////////////////////////// //传入参数:r--双精度实型变量指针,指向的单元存放随机数种子值//// //传出参数:p:产生0-1之间均匀分布一个随机数 -//0-1 have a uniform distribution between random numbers// //////////////////////////////////// ///////////////////////////// imported parameters : r-- double precision real- variable pointer to the storage unit random number seed////// out parameters : p : 0-1 produce a uniform distribution between random numbers
    2022-05-19 12:42:14下载
    积分:1
  • 杭州电子科技大学在线系统ACM的1162题,用贪心方解决
    杭州电子科技大学在线系统ACM的1162题,用贪心方法解决-Hangzhou University of Electronic Science and Technology ACM-line system of the 1162 title with a greedy solution
    2022-09-02 03:15:03下载
    积分:1
  • //=== === === === === === ===== //函数说明 //函数名称:Correlation //函数功能:计最小二乘拟合...
    //=== === === === === === ===== //函数说明 //函数名称:Correlation //函数功能:计算最小二乘法拟合的多项式的相关系数 //使用方法:int M------拟合多项式的项数(已知条件) // double *b---拟合曲线的系数,按升次排列(已知条件) // double *x---结点x轴数据(已知条件) // double *y---结点y轴数据(已知条件) // double *Yg--结点估计值,与*y相对应,个数为m(过程变量) // int m------结点个数(已知条件) //注意事项:多项式阶数最高为10,多项式的形式为 y = b0 + b1*(x-Xavr)... -//=== === === === === === === === === === === =====// Function that// function name: Correlation// Function: Calculation of the polynomial least squares fitting correlation coefficient// Usage: int M------ polynomial fitting the number of (known conditions)// double* b-- Fitting curve coefficient, or times by arrangement (known conditions)// double* x--- node x-axis data (known conditions)// double* y--- node y-axis data (already known conditions)// double* Yg- the estimated value of node, and* y correspond to the number for m (process variables)// int m------ node number (known conditions)// Note: polynomial order up to 10, the polynomial
    2023-05-06 14:40:03下载
    积分:1
  • face recognition
    应用背景This is an application-based VC prepared to read camera Face to Face Recognition and face detection software. cited in the MATLAB system function, is a very good face recognition software. The system in my school examination papers reply obtained outstanding achievements. We hope to useful关键技术这是一个应用VC++编写的基于摄像头读取人脸的人脸识别和人脸检测软件,其中引用了MATLAB的系统函数,是一个非常不错的人脸识别软件,这个系统在我校论文答辩审核中获得了优秀的成绩。希望对大家有用
    2022-08-15 04:54:37下载
    积分:1
  • 用蒙特卡洛方,求解出抛物线方程在给定区间内的积分值。...
    用蒙特卡洛方法,求解出抛物线方程在给定区间内的积分值。-Using Monte Carlo methods for solving a parabolic equation in a given range of integral values.
    2022-07-22 19:09:00下载
    积分:1
  • dynamic programming algorithm to solve the problem VC Cohong
    动态规划算法解决行商问题 VC-dynamic programming algorithm to solve the problem VC Cohong
    2023-08-26 18:55:03下载
    积分:1
  • 本代码是《计机常用数值计与程序 C++版》一书的配套数值拟合与逼近代码,这些C++程序已经在Virsual C++ 6.0环境下通过。注意,在VC++...
    本代码是《计算机常用数值计算算法与程序 C++版》一书的配套数值拟合与逼近代码,这些C++程序已经在Virsual C++ 6.0环境下通过。注意,在VC++ 6.0中设置好路径,特别是include目录(文件夹)的路径,否则在编译时会出现找不到头文件的错误,使编译无法正常进行。-the code is "commonly used computer numerical algorithms and procedures C version," a book supporting numerical approximation fitted with the code, these procedures have been in C C 6.0 Virsual environment through. The attention of the VC 6.0 installed path, in particular include directory (folder) path, otherwise there will be compiled header files could not find the mistakes and the compiler not normal.
    2022-06-27 07:38:27下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载