| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 4044 人关注过本帖
标题:c写的贪吃蛇
只看楼主 加入收藏
ehszt
Rank: 12Rank: 12Rank: 12
等 级:贵宾
威 望:40
帖 子:1745
专家分:3216
注 册:2015-12-2
收藏
得分:0 
回复 8楼 wanglianyi1
这个好,有空好好学下。

[此贴子已经被作者于2016-9-14 11:38编辑过]

2016-09-14 10:15
wanglianyi1
Rank: 11Rank: 11Rank: 11Rank: 11
等 级:贵宾
威 望:14
帖 子:647
专家分:2067
注 册:2015-6-18
收藏
得分:0 
回复 9楼 书生牛犊
你可以的!哈哈
2016-09-14 13:02
wanglianyi1
Rank: 11Rank: 11Rank: 11Rank: 11
等 级:贵宾
威 望:14
帖 子:647
专家分:2067
注 册:2015-6-18
收藏
得分:0 
回复 11楼 ehszt
也不是自己写的,借鉴了别人的优秀成果,记得好像就是论坛里哪位大神发过,我也在攻读学习中

[此贴子已经被作者于2016-9-14 13:06编辑过]

2016-09-14 13:03
基米西
Rank: 2
来 自:四川成都
等 级:论坛游民
帖 子:15
专家分:11
注 册:2016-9-15
收藏
得分:0 
好多函数,好多结构,新人只能跪拜

Always want to learn.
2016-09-15 15:40
Alien_Lee
Rank: 8Rank: 8
来 自:Linux帝国
等 级:蝙蝠侠
威 望:7
帖 子:149
专家分:739
注 册:2016-7-19
收藏
得分:0 
回复 8楼 wanglianyi1
你好,我想就这个贪吃蛇的游戏程序,我想提几个问题:
1.其中的 nt,t1,sp这三个变量是什么作用。特别是nt,t1.clock()该程序从启动到函数调用占用CPU的时间。对程序有什么作用?
2."  ◆■●",这个图形是如何输入的?(我是直接复制你的代码的)
3.GetStdHandle等这些句柄函数的具体的用法,返回的HANDLE类型代表着什么意思?哪里能找到?
希望你能抽空回复,谢谢!!!!


  DEBUG的过程就是进步的过程,每一个小错误都是大问题!...
2017-03-16 20:37
阿波罗57
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2017-6-30
收藏
得分:0 
回复 8楼 wanglianyi1
还是不行啊!Compiling...
1234.c
C:\Users\16253\Desktop\1234.c(33) : error C2143: syntax error : missing ')' before '*'
C:\Users\16253\Desktop\1234.c(33) : error C2081: 'ssnake' : name in formal parameter list illegal
C:\Users\16253\Desktop\1234.c(33) : error C2143: syntax error : missing '{' before '*'
C:\Users\16253\Desktop\1234.c(33) : error C2059: syntax error : ')'
C:\Users\16253\Desktop\1234.c(34) : error C2054: expected '(' to follow 'snp'
C:\Users\16253\Desktop\1234.c(57) : error C2143: syntax error : missing ')' before '*'
C:\Users\16253\Desktop\1234.c(57) : error C2143: syntax error : missing '{' before '*'
C:\Users\16253\Desktop\1234.c(57) : error C2059: syntax error : 'type'
C:\Users\16253\Desktop\1234.c(57) : error C2059: syntax error : ')'
C:\Users\16253\Desktop\1234.c(90) : error C2065: 'bool' : undeclared identifier
C:\Users\16253\Desktop\1234.c(90) : error C2146: syntax error : missing ';' before identifier 'pf'
C:\Users\16253\Desktop\1234.c(90) : error C2065: 'pf' : undeclared identifier
C:\Users\16253\Desktop\1234.c(90) : error C2065: 'false' : undeclared identifier
C:\Users\16253\Desktop\1234.c(91) : error C2065: 'ssnake' : undeclared identifier
C:\Users\16253\Desktop\1234.c(91) : error C2146: syntax error : missing ';' before identifier 'sn'
C:\Users\16253\Desktop\1234.c(91) : error C2065: 'sn' : undeclared identifier
C:\Users\16253\Desktop\1234.c(91) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(91) : error C2059: syntax error : '{'
C:\Users\16253\Desktop\1234.c(102) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(102) : error C2224: left of '.f' must have struct/union type
C:\Users\16253\Desktop\1234.c(102) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(102) : error C2224: left of '.x' must have struct/union type
C:\Users\16253\Desktop\1234.c(102) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(102) : error C2224: left of '.y' must have struct/union type
C:\Users\16253\Desktop\1234.c(102) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(102) : error C2224: left of '.f' must have struct/union type
C:\Users\16253\Desktop\1234.c(127) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(127) : error C2224: left of '.f' must have struct/union type
C:\Users\16253\Desktop\1234.c(128) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(128) : error C2224: left of '.x' must have struct/union type
C:\Users\16253\Desktop\1234.c(128) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(128) : error C2224: left of '.x' must have struct/union type
C:\Users\16253\Desktop\1234.c(128) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(128) : error C2224: left of '.y' must have struct/union type
C:\Users\16253\Desktop\1234.c(128) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(128) : error C2224: left of '.y' must have struct/union type
C:\Users\16253\Desktop\1234.c(129) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(129) : error C2224: left of '.x' must have struct/union type
C:\Users\16253\Desktop\1234.c(129) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(129) : error C2224: left of '.y' must have struct/union type
C:\Users\16253\Desktop\1234.c(130) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(130) : error C2224: left of '.x' must have struct/union type
C:\Users\16253\Desktop\1234.c(130) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(130) : error C2224: left of '.x' must have struct/union type
C:\Users\16253\Desktop\1234.c(130) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(130) : error C2224: left of '.y' must have struct/union type
C:\Users\16253\Desktop\1234.c(130) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(130) : error C2224: left of '.y' must have struct/union type
C:\Users\16253\Desktop\1234.c(131) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(131) : error C2224: left of '.f' must have struct/union type
C:\Users\16253\Desktop\1234.c(131) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(131) : error C2224: left of '.x' must have struct/union type
C:\Users\16253\Desktop\1234.c(131) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(131) : error C2224: left of '.x' must have struct/union type
C:\Users\16253\Desktop\1234.c(131) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(131) : error C2224: left of '.y' must have struct/union type
C:\Users\16253\Desktop\1234.c(131) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(131) : error C2224: left of '.y' must have struct/union type
C:\Users\16253\Desktop\1234.c(132) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(132) : error C2224: left of '.f' must have struct/union type
C:\Users\16253\Desktop\1234.c(133) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(133) : error C2224: left of '.x' must have struct/union type
C:\Users\16253\Desktop\1234.c(133) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(133) : error C2224: left of '.y' must have struct/union type
C:\Users\16253\Desktop\1234.c(135) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(135) : error C2224: left of '.f' must have struct/union type
C:\Users\16253\Desktop\1234.c(135) : error C2109: subscript requires array or pointer type
C:\Users\16253\Desktop\1234.c(135) : error C2224: left of '.f' must have struct/union type
C:\Users\16253\Desktop\1234.c(143) : warning C4013: 'rndapple' undefined; assuming extern returning int
C:\Users\16253\Desktop\1234.c(152) : warning C4013: 'drawmap' undefined; assuming extern returning int
C:\Users\16253\Desktop\1234.c(159) : fatal error C1004: unexpected end of file found
执行 cl.exe 时出错.

1234.obj - 1 error(s), 0 warning(s)
2017-06-30 14:53
快速回复:c写的贪吃蛇
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.021857 second(s), 10 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved