diff --git a/E2step5.c b/E2step5.c new file mode 100644 index 0000000..ff3ca4d --- /dev/null +++ b/E2step5.c @@ -0,0 +1,35 @@ +#include +#include +#define N 3 +struct Student +{char xuehao[10]; + int banji; + char name[20]; + float grade1; + float grade2; + float grade3; +}; +int main() +{struct Student st[N]={{"10001",11,"Zhang",99.5,88.5,89.5}, +{"10002",12,"Yang",77.9,56.5,87.5}, +{"10003",11,"Liang",92.5,99.0,60.5}}; + int i,j=-1,k,l; + char c='a'; + char s[20]; + scanf("%s",s); + for(i=0;i