当前位置: 技术问答>linux和unix
请教:关于c语言结构的问题!
来源: 互联网 发布时间:2015-11-30
本文导语: struct cst_voice_struct { cst_features *features; cst_utterance *(*utt_init)(cst_utterance *u, struct cst_voice_struct *v); cst_utterance *(*utt_synth)(cst_utterance *u, struct cst_voice_struct *v); }; typedef struc...
struct cst_voice_struct {
cst_features *features;
cst_utterance *(*utt_init)(cst_utterance *u,
struct cst_voice_struct *v);
cst_utterance *(*utt_synth)(cst_utterance *u,
struct cst_voice_struct *v);
};
typedef struct cst_voice_struct cst_voice;
请高手解释一下谢谢!
cst_features *features;
cst_utterance *(*utt_init)(cst_utterance *u,
struct cst_voice_struct *v);
cst_utterance *(*utt_synth)(cst_utterance *u,
struct cst_voice_struct *v);
};
typedef struct cst_voice_struct cst_voice;
请高手解释一下谢谢!
|
结构体里面也可以有函数。
cst_utterance *(*utt_init)(cst_utterance *u,
struct cst_voice_struct *v);
函数返回是一个cst_utterrance 的指针,函数名也是一个指针,函数的参数是两个指针。
cst_utterance *(*utt_init)(cst_utterance *u,
struct cst_voice_struct *v);
函数返回是一个cst_utterrance 的指针,函数名也是一个指针,函数的参数是两个指针。