问题描述
如何返回成绩高于或等于特定成绩的新名单。我试过这个 我遇到的问题 对“系统”的未定义引用| ||错误:ld。返回 1 个退出状态|
typedef struct node *nodeptr;
struct node
{
int s_num;
float avg;
char branch[9];
nodeptr next;
};
typedef nodeptr LIST;
typedef nodeptr Position;
main(){
LIST l=(nodeptr)malloc(sizeof(struct node));
Position p=l->next;
p=(get_gradesAbove(list))->next;
while(p!= NULL){
printf("%d\t%0.1f",p->s_num,p->avg);
p=p->next;
scanf("%s");
system("cls");
}
return 0;
List get_gradesAbove(LIST l){
LIST list=createList;
Position p=l->next;
float grade;
printf("Enter grade to print nodes above or equals to = ");
scanf("%f",&grade);
while(p != NULL){
if(p->avg >= grade)
insert(list,p);
p=p->next;
}
return list;
}
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)