69,369
社区成员
发帖
与我相关
我的任务
分享
#include<stdio.h>
struct fushu {
double a;
double b;
};
void gong_e(struct fushu *x) {
x->b = -x->b;
}
int main()
{
struct fushu x;
x.a = 1;
x.b = 2;
printf("x=(%f,%f)\n", x.a, x.b);
gong_e(&x);
printf("x=(%f,%f)\n", x.a, x.b);
}