【正文】
le, dowhile,for語句的用法)。(3)運行程序,輸入數(shù)據(jù),分析結(jié)果。for(k=0。百錢買百雞,問雞翁、雞母、雞雛各幾何?提示:采用窮舉法解決該問題。char sex。要求:⑴一律使用 STUDENT 聲明學(xué)生結(jié)構(gòu)體的變量,一律使用 PSTUDENT 聲明指向?qū)W生結(jié)構(gòu)體的指針變量⑵程序運行過程中要有菜單提示,菜單如下:*************************************************************** * a student* * a student* * the link list* * excellent students* * a student by the name* * the average score of three courses * * the program* ***************************************************************“Insert a student”:插入一個學(xué)生記錄,要求按平均分從高到低插入 “Delete a student”:刪除指定學(xué)號的學(xué)生 “Display the link list”:輸出單鏈表中所有學(xué)生的信息 “Display excellent students”:輸出鏈表中三門功課平均成績高于85分(含85分)的學(xué)生信息 “Search a student by the name”:根據(jù)輸入的姓名,輸出鏈表中相應(yīng)學(xué)生的信息 “Display the average score of three cou