C语言看程序写结果 怎么看才能出结果?
#include<stdio.h>#include<string.h>structA{inta;charb〔10〕;doublec;};voidf(structAt){t...
#include <stdio.h>
#include <string.h>
struct A
{ int a;
char b〔10〕;
double c;
};
void f (struct A t)
{ t.a=1002;
strcpy(t.b,“ChangRong”);
t.c=1202.0;
}
void main()
{ struct A a={1001,“ZhangDa”,1098.0};
f (a);
printf(“%d,%s,%6.If \n”,a,a,a.b,a.c);
} 展开
#include <string.h>
struct A
{ int a;
char b〔10〕;
double c;
};
void f (struct A t)
{ t.a=1002;
strcpy(t.b,“ChangRong”);
t.c=1202.0;
}
void main()
{ struct A a={1001,“ZhangDa”,1098.0};
f (a);
printf(“%d,%s,%6.If \n”,a,a,a.b,a.c);
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询