永远蒙在鼓里
发表于 2019-8-17 18:31:42
wowo
欧阳鸟大
发表于 2019-8-17 23:07:21
好厉害啊大佬
员理管帅最
发表于 2019-8-17 23:47:56
看
睡觉睡觉睡觉
发表于 2019-8-18 10:43:25
看看
linux小白
发表于 2019-8-18 11:30:33
看看学习一下
寂寞的影子
发表于 2019-8-18 13:39:00
厉害
寂寞的影子
发表于 2019-8-18 13:39:43
厉害了我的老哥
寂寞的影子
发表于 2019-8-18 13:40:35
l l l
小cp
发表于 2019-8-18 22:14:19
{:5_109:}
allblue
发表于 2019-8-21 13:39:05
看看
lyg123
发表于 2019-8-21 14:04:06
okok
810669817
发表于 2019-8-21 15:12:31
哈哈
小脚鱼1号
发表于 2019-8-21 15:25:33
……
wsl095x
发表于 2019-8-21 16:11:10
学习学习
Devil愚钝
发表于 2019-8-21 18:58:30
。
Devil愚钝
发表于 2019-8-21 19:03:21
不知道为何报错了,如下。。。
025.c: In function 'bullets':
025.c:51:23: error: '(struct GAME *)&bullet' is a pointer; did you mean to use '->'?
bullet.x=0;
^
->
025.c:52:23: error: '(struct GAME *)&bullet' is a pointer; did you mean to use '->'?
bullet.y=0;
^
->
025.c:53:23: error: '(struct GAME *)&bullet' is a pointer; did you mean to use '->'?
bullet.shape='I';
^
->
025.c: In function 'hide':
025.c:65:37: error: '(struct GAME *)&obstacles' is a pointer; did you mean to use '->'?
if(obstacles.x==bullet.x&&obstacles.y==bullet.y)
^
->
025.c:65:63: error: '(struct GAME *)&obstacles' is a pointer; did you mean to use '->'?
if(obstacles.x==bullet.x&&obstacles.y==bullet.y)
^
->
025.c:67:42: error: '(struct GAME *)&obstacles' is a pointer; did you mean to use '->'?
obstacles.x=0;
^
->
025.c: In function 'planemove':
025.c:320:38: error: '(struct GAME *)&obstacles' is a pointer; did you mean to use '->'?
Pos(obstacles.x,obstacles.y);
^
->
025.c:320:50: error: '(struct GAME *)&obstacles' is a pointer; did you mean to use '->'?
Pos(obstacles.x,obstacles.y);
^
->
025.c:322:34: error: '(struct GAME *)&obstacles' is a pointer; did you mean to use '->'?
obstacles.y++;
^
->
025.c:323:37: error: '(struct GAME *)&obstacles' is a pointer; did you mean to use '->'?
if(obstacles.y>28)
^
->
025.c:325:42: error: '(struct GAME *)&obstacles' is a pointer; did you mean to use '->'?
obstacles.x=rand()%56;
^
->
025.c:326:34: error: '(struct GAME *)&obstacles' is a pointer; did you mean to use '->'?
obstacles.y=rand()%8;
^
->
025.c:327:37: error: '(struct GAME *)&obstacles' is a pointer; did you mean to use '->'?
if(obstacles.x%2!=0)
^
->
025.c:329:42: error: '(struct GAME *)&obstacles' is a pointer; did you mean to use '->'?
obstacles.x=obstacles.x-1;
^
->
025.c:329:54: error: '(struct GAME *)&obstacles' is a pointer; did you mean to use '->'?
obstacles.x=obstacles.x-1;
^
->
025.c: In function 'obstacle':
025.c:348:26: error: '(struct GAME *)&obstacles' is a pointer; did you mean to use '->'?
obstacles.x=rand()%56;
^
->
025.c:349:26: error: '(struct GAME *)&obstacles' is a pointer; did you mean to use '->'?
obstacles.y=rand()%14;
^
->
025.c:350:29: error: '(struct GAME *)&obstacles' is a pointer; did you mean to use '->'?
if(obstacles.x%2!=0)
^
->
025.c:352:34: error: '(struct GAME *)&obstacles' is a pointer; did you mean to use '->'?
obstacles.x=obstacles.x-1;
^
->
025.c:352:46: error: '(struct GAME *)&obstacles' is a pointer; did you mean to use '->'?
obstacles.x=obstacles.x-1;
^
->
025.c: In function 'obstaclehide':
025.c:367:46: error: '(struct GAME *)&obstacles' is a pointer; did you mean to use '->'?
if(temp->x==obstacles.x&&temp->y==obstacles.y)
^
->
025.c:367:68: error: '(struct GAME *)&obstacles' is a pointer; did you mean to use '->'?
if(temp->x==obstacles.x&&temp->y==obstacles.y)
^
->
cherles
发表于 2019-8-21 22:18:42
学习一下!
yuesezhenmei
发表于 2019-8-22 09:38:15
Devil愚钝 发表于 2019-8-21 19:03
不知道为何报错了,如下。。。
025.c: In function 'bullets':
025.c:51:23: error: '(struct GAME *)&bu ...
可以 发图片吗你这样 我有点尴尬我当时自己写现在有点忘记了发布了图片我qq1346502061有什么问题 随便说关于c语言的,你这个问题我当时 弄了 很多malloc不知道时那个 我要图片
yuesezhenmei
发表于 2019-8-22 09:42:07
Devil愚钝 发表于 2019-8-21 19:03
不知道为何报错了,如下。。。
025.c: In function 'bullets':
025.c:51:23: error: '(struct GAME *)&bu ...
难道 你改动了 ? 结构体指针要用->不是 .
berlin12345
发表于 2019-8-22 10:22:48
1
页:
1
[2]
3
4
5
6
7
8
9
10
11