設計一個Windows應用程序實現如下功能:(1)輸入學生姓名和考試成績,並保存到結構體數組中。 (2)使用foreach語句求最高分,並輸出對應的學生姓名。

(1)新建windows應用程序,名爲MyForm1。 (2)在窗體上添加控件,如圖所示。 輸入框的name屬性分別爲:txtname 、txtscore 按鈕的name屬性分別爲:btnadd、btnmaxscore (3)代碼: using System; using System.Collections.Generic; using System.ComponentModel; using
相關文章
相關標籤/搜索