给你一个复杂一点的例子
int printf( const char *s,...);
int test (int a, int b,int *s)
{
*s=10;
return a/b+100;
}
struct point { double x,y,z;};
struct point get_x(struct point s)
{
struct point t;
t.x=t.y=10;
t.z=s.z;
return t;
}
int f(int d)
{
int x,y,z;
double a,b,c;
x=100;
y=d> 10?100:200;
x=y> 100?200:300;
a=b=10;
c=a+b*10;
return z+test(x,y,&z);
}
发表时间:2004年10月17日20:21:34