关于结构体类型问题~
#include<stdio.h>typedef struct fact
{
int m,z;
}A;
A fun1(A t1,A t2) // 这里fun1前面为什么要加A?
{
A t3;
t3.m=t1.m*t2.m;
t3.z=t1.z*t2.m+t2.z*t1.m;
return t3;
}
void main()
{
A s,s1={8,4},s2={6,5};
s=fun1(s1,s2);
printf("%d,%d\n",s.z,s.m);
system("pause");
}