unomti


私信TA

用户名:uq_99084910152

访问量:7014

签 名:

等  级
排  名 925
经  验 3278
参赛次数 9
文章发表 13
年  龄 0
在职情况 学生
学  校
专  业

  自我简介:

TA的其他文章

 

0.0分

25 人评分

  评论区

int main()
{	

	int n;

	scanf("%d",&n);;
	struct student stu[n];;
	input[stu];
	aver[stu];
	max[stu];
}

大佬帮忙看看主函数有什么问题,QAQ
2023-07-30 16:58:56
#include<stdio.h>
typedef struct student{
    char num[10];
    char name[10];
    int score[3];
    struct student*next;
}student_info;
int main(){
    int n;
    scanf("%d",&n);
    student_info*l;
    l=(student_info*)malloc(sizeof(student_info));
    l->next=NULL;
    student_info*p;
    student_info*q;
    p=l;
    int i;
    for(i=0;i<n;i++){
        q=(student_info*)malloc(sizeof(student_info));
        scanf("%s%s%d%d%d",&q->num,&q->name,&q->score[0],&q->score[1],&q->score[2]);
        p->next=q;
        p=q;
    }
    p=l->next;
    int sum1=0,sum2=0,sum3=0,sum=0;
    while(p!=NULL){
2023-04-04 00:39:51
如果有两个同学分数完全一样,题目狮虎没考虑
2023-02-11 16:05:48
for(i=0;i<n;i++)
    {
        if(count[i]<count[i+1])
            high=count[i+1];
    }
这里错了吧  如果:count[0]>count[1]  那么count[1]和count[2]比大小?
2022-12-19 11:21:11
题目也太不严谨了,不应该平均数为浮点型吗
2022-08-15 15:52:40
  • «
  • 1
  • »