給我壹個我之前寫的,函數應該類似於# include # include # include # include # include # include # include # include # include使用命名空間STD/*定義學生結構*/struct Student { char ID[20];char Name[20];float mark 1;浮動標記2;浮動標記3;浮動平均值;};/*聲明學生數組和學生數*/struct student students[1000];int num = 0;/* average */float avg(struct student stu){ return(stu . mark 1+stu . mark 2+stu . mark 3)/3;}/*返回數組下標*/int student _ searchbyindex(charid[]){ int I;for(I = 0;我
上一篇:深圳研究生資助申請條件下一篇:盧嘉熙的性格影響