|
发表于 2007-6-4 15:25:59
|
显示全部楼层
#include <stdio.h>
#include <string.h>
struct sSt_A {
int isMember_A;
char csMember_A;
};
void sFc_A(struct sSt_A *sSt_A_spPm_A);
void main()
{
struct sSt_A sSt_A_iTemp_A;
sSt_A_iTemp_A.isMember_A=0;
sSt_A_iTemp_A.csMember_A='X';
printf("%d %c\n", sSt_A_iTemp_A.isMember_A, sSt_A_iTemp_A.csMember_A);
sFc_A(&sSt_A_iTemp_A);
printf("%d %c\n", sSt_A_iTemp_A.isMember_A, sSt_A_iTemp_A.csMember_A);
}
void sFc_A(struct sSt_A *sSt_A_spPm_A)
{
sSt_A_spPm_A->isMember_A = 1;
sSt_A_spPm_A->csMember_A = 'Y';
} |
|