#include "stdio.h" #include "conio.h" struct student {int xh; char name[8]; int score[3]; float averger; }stud[1]; main() {int i,j; float sum,aver; for (i=0;i<1;i++) {printf("enter to xh:\n"); scanf("%d",&stud[i].xh); printf("enter to name:\n"); scanf("%s",stud[i].name); for (j=0;j<3;j++) {printf("enter to score %d:",j+1); scanf("%d",&stud[i].score[j]); } } clrscr(); for (i=0;i<1;i++) {sum=0.0; for (j=0;j<3;j++) sum+=stud[i].score[j]; stud[i].averger=sum/3.0; } for (i=0;i<1;i++) {printf("%d %10s",stud[i].xh,stud[i].name); for (j=0;j<3;j++) printf("%4d",stud[i].score[j]); printf(" %4.2f",stud[i].averger); printf("\n"); } } 错误提示: --------------------Configuration: 10_5 - Win32 Debug-------------------- Linking... 10_5.obj : error LNK2001: unresolved external symbol _clrscr Debug/10_5.exe : fatal error LNK1120: 1 unresolved externals 执行 link.exe 时出错.
10_5.exe - 1 error(s), 0 warning(s) 哪位能帮我呀,不知是什么错误? 谢了!