Presentation is loading. Please wait.

Presentation is loading. Please wait.

陸運會Sports day winner09.txt 沒有中文名 EVENT GRD POS HSE CNO CREDIT

Similar presentations


Presentation on theme: "陸運會Sports day winner09.txt 沒有中文名 EVENT GRD POS HSE CNO CREDIT"— Presentation transcript:

1 陸運會Sports day winner09.txt 沒有中文名 EVENT GRD POS HSE CNO CREDIT
項目 組別 名次 社 班號 得分 10 BA 2 M 5A11 6 10 BA 1 S 5B15 7 1H BA 1 S 5B15 7 1H BA 2 L 5B07 6 20 BA 2 S 4D13 6 20 BA 1 C 7B19 7 40 BA 1 M 5A11 8 40 BA 2 C 7B19 6 10 BB 2 M 4C01 6 10 BB 3 M 4E07 5 10 BB 4 C 4A13 4 10 BB 1 M 3C14 7 20 BB 1 M 4C01 7 20 BB 2 S 3A07 6 school09.txt CNO NAME HSE GRD 1A01 陳進豪 C BC 1A02 陳 灝 M BC 1A03 陳偉康 S BC 1A04 陳穎齊 C BC 1A05 鄭兆傑 S BC 1A06 蔡國威 M BC 1A07 郭浩豐 M BC 1A08 林顯政 L BC 1A09 李哲信 L BC 暫時不顯示 中文名 name[i] classno[i] Sports Winner

2   winner09e.txt (1) list all (2) winner list (all)
(3) grade champion (4) house champion Q: option 1 5B15 曾日東 BA S 5A11 莫庭軒 BA M 4D13 黃銘健 BA S 5C15 梁逸軒 BA M 3C14 李浩軒 BB M 4C01 陳嘉峰 BB M 4E07 黎洛言 BB M 4A13 林廷浩 BB C 1C08 雷梓諾 BB L 2E11 孟梓陽 BB S Event: 10 Grade: BA B15 曾日東 S A11 莫庭軒 M D13 黃銘健 S C15 梁逸軒 M Grade: BB C14 李浩軒 M C01 陳嘉峰 M E07 黎洛言 M A13 林廷浩 C C08 雷梓諾 L E11 孟梓陽 S while(!feof(fp)){ fgets... event = grade = classno = if(event!=event0)... if(grade!=grade0)... printf ... } Sports Winner

3   winner09n.txt (1) list all (2) winner list (all)
(3) grade champion (4) house champion Q: option 3 Q: grade(BA/BB/BC/GA/GB/GC)? BA 3 4D13 黃銘健 13 5 5A11 莫庭軒 20 10 5B15 曾日東 21 14 5C05 樊梓軒 11 20 6A02 陳偉業 11 27 7B16 吳競淳 13 28 7B17 吳明中 10 Grade champion of BA is 5B15 曾日東 while(!feof(fp)){ fgets... grade = classno = if(classno!=classno0)... printf ... } winner09.txt L:288 M:312 C:199 S:265 House champion is M Sports Winner

4  重寫 並必須顯示中文名 宣告全程global文字陣列: classno name void init(){
school09.txt 宣告全程global文字陣列: classno name CNO NAME HSE GRD 1A01 陳進豪 C BC 1A02 陳 灝 M BC 1A03 陳偉康 S BC 1A04 陳穎齊 C BC 1A05 鄭兆傑 S BC 1A06 蔡國威 M BC 1A07 郭浩豐 M BC 1A08 林顯政 L BC 1A09 李哲信 L BC void init(){ fopen school09.txt 載入 classno, name } int find(char cno[]){ ... 傳回cno班號所在位置 (-1=找不到) } name[i] classno[i] Sports Winner


Download ppt "陸運會Sports day winner09.txt 沒有中文名 EVENT GRD POS HSE CNO CREDIT"

Similar presentations


Ads by Google