PAT A급 C 언어. 1004.성적 순위
648 단어 PAT 등급
#include
#define N 11// 10
struct info{
char name[N];
char num[N];
int score;
};
int main()
{
int Max(struct info info[],int n);
int Min(struct info info[],int n);
int n,i,min,max;
printf("input number:");
scanf("%d",&n);
getchar();
struct info info[1000];
for(i=0;i=temp)
{
temp=info[i].score;
j=i;
}
}
return j;
}
int Min(struct info info[],int n)
{
int i,temp=101,j=0;
for(i=0;i