if(s->s>a[i].s)可以换成if(*s.s>a[i].#include#include#include#include#define N 10typedef struct ss{ char num[10]; int s;} STU;fun(STU a[],STU *s){int i;*s=a[0]; /*先认为第1个值最小*/for(i=0;is>a[i].s)*s=a[i];}void main(){ FILE *wf;STU a[N]

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 09:33:29

if(s->s>a[i].s)可以换成if(*s.s>a[i].#include#include#include#include#define N 10typedef struct ss{ char num[10]; int s;} STU;fun(STU a[],STU *s){int i;*s=a[0]; /*先认为第1个值最小*/for(i=0;is>a[i].s)*s=a[i];}void main(){ FILE *wf;STU a[N]
if(s->s>a[i].s)可以换成if(*s.s>a[i].
#include
#include
#include
#include
#define N 10
typedef struct ss
{ char num[10];
int s;
} STU;
fun(STU a[],STU *s)
{
int i;
*s=a[0]; /*先认为第1个值最小*/
for(i=0;is>a[i].s)
*s=a[i];
}
void main()
{
FILE *wf;
STU a[N]={{ "A01",81},{ "A02",89},{ "A03",66},{ "A04",87},{ "A05",77},
{ "A06",90},{ "A07",79},{ "A08",61},{ "A09",80},{ "A10",71}},m;
int i;
system("CLS");
printf("/
}

if(s->s>a[i].s)可以换成if(*s.s>a[i].#include#include#include#include#define N 10typedef struct ss{ char num[10]; int s;} STU;fun(STU a[],STU *s){int i;*s=a[0]; /*先认为第1个值最小*/for(i=0;is>a[i].s)*s=a[i];}void main(){ FILE *wf;STU a[N]
A

a