急 请高人指点指点--我代入的值对不对?

来源:百度知道 编辑:UC知道 时间:2024/06/01 12:24:54
现在想用一函数DEBUGCommunicationInfoLog(void)来测试函数
CommunicationInfoLog( STRUCTION * pstr ,char *pArray, LOGOUT tlogout,int size)

我是这样写的
int DEBUGCommunicationInfoLog(void)
{ STRUCTION * pstr ; //STRUCTION 是结构体
char *pArray = 0;
LOGOUT tlogout; //LOGOUT 是结构体

CommunicationInfoLog( pstr ,pArray, tlogout,10)

return 0;
}
此段代码只是为了测试函数CommunicationInfoLog,
编译后报错说函数CommunicationInfoLog的第2个代入值有问题。
到底哪里错了呢?

请问下面的对吗?
int DEBUGCommunicationInfoLog(void)
{ STRUCTION pstr ; //STRUCTION 是结构体
char *pArray = 0;
LOGOUT tlogout; //LOGOUT 是结构体

CommunicationInfoLog( &pstr ,*pArray, tlogout,10)

return 0;
}

请高人给分析分析。谢谢了。
不好意思,只是在这里忘了写分号。

CommunicationInfoLog( pstr ,pArray, tlogout,10) ;
。。。。。。。

CommunicationInfoLog( &pstr ,*pArray, tlogout,10) ;
。。。。。。。
结构体是否初始化,在这里没有太大的关系。
我只

在我看你只是没写分号的样子... 当然那两个结构体也没初始化...如果不是类对象的话

DEBUGCommunicationInfoLog(void)来测试函数
CommunicationInfoLog( STRUCTION * pstr ,char *pArray

没错啊