搜索
编程论坛
→
开发语言
→
『 C语言论坛 』
→ (*init)([b]struct[/b] a_hd *) 代表什么
标题:
(*init)([b]struct[/b] a_hd *) 代表什么
取消只看楼主
justwant
等 级:
新手上路
帖 子:31
专家分:0
注 册:2008-6-8
楼主
问题点数:0 回复次数:3
(*init)([b]struct[/b] a_hd *) 代表什么
有个这样的定义:
typedef struct
a_hd
{...
...
unsigned char (*init)(
struct
a_hd *) ;
...
...
}
init在其他处有定义,是个函数
“*” 一多就犯糊涂,哪位能解释下这条语句unsigned char (*init)(
struct
a_hd *)
搜索更多相关主题的帖子:
init
struct
代表
2008-06-14 10:10
justwant
等 级:
新手上路
帖 子:31
专家分:0
注 册:2008-6-8
第
2
楼
得分:0
补充一下,应该是这样的:
(*init)(s
truct
a_hd *) 代表什么
有个这样的定义:
typedef struct
a_hd
{...
...
unsigned char (*init)(
struct
a_hd *) ;
...
...
}
2008-06-14 10:18
justwant
等 级:
新手上路
帖 子:31
专家分:0
注 册:2008-6-8
第
3
楼
得分:0
字体加粗没用- -||
typedef structa_hd
{...
...
unsigned char (*init)(struct a_hd *) ;
...
...
}
2008-06-14 10:20
justwant
等 级:
新手上路
帖 子:31
专家分:0
注 册:2008-6-8
第
4
楼
得分:0
哦~ 明白了,这样吧
指针1-->函数(指针2)
指针2-->结构体
2008-06-14 11:43
4
1/1页
1
参与讨论请移步原网站贴子:
https://bbs.bccn.net/thread-219107-1-1.html
关于我们
|
广告合作
|
编程中国
|
清除Cookies
|
TOP
|
手机版
编程中国
版权所有,并保留所有权利。
Powered by
Discuz
, Processed in 0.829258 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved