亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

蟲蟲首頁| 資源下載| 資源專輯| 精品軟件
登錄| 注冊

您現在的位置是:蟲蟲下載站 > 資源下載 > 數據結構 > 編程題(15_01.c) 結構 struct student { long num char name[20] int score struct student *

編程題(15_01.c) 結構 struct student { long num char name[20] int score struct student *

  • 資源大小:2 K
  • 上傳時間: 2016-04-13
  • 上傳用戶:heyuyutu
  • 資源積分:2 下載積分
  • 標      簽: student struct score long

資 源 簡 介

編程題(15_01.c) 結構 struct student { long num char name[20] int score struct student *next } 鏈表練習: (1).編寫函數struct student * creat(int n),創建一個按學號升序排列的新鏈表,每個鏈表中的結點中 的學號、成績由鍵盤輸入,一共n個節點。 (2).編寫函數void print(struct student *head),輸出鏈表,格式每行一個結點,包括學號,姓名,分數。 (3).編寫函數struct student * merge(struct student *a,struct student *b), 將已知的a,b兩個鏈表 按學號升序合并,若學號相同則保留成績高的結點。 (4).編寫函數struct student * del(struct student *a,struct student *b),從a鏈表中刪除b鏈表中有 相同學號的那些結點。 (5).編寫main函數,調用函數creat建立2個鏈表a,b,用print輸出倆個鏈表;調用函數merge升序合并2個 鏈表,并輸出結果;調用函數del實現a-b,并輸出結果。 a: 20304,xxxx,75, 20311,yyyy,89 20303,zzzz,62 20307,aaaa,87 20320,bbbb,79 b: 20302,dddd,65 20301,cccc,99 20311,yyyy,87 20323,kkkk,88 20307,aaaa,92 20322,pppp,83

相 關 資 源

主站蜘蛛池模板: 佛学| 安乡县| 承德市| 白玉县| 佛山市| 务川| 晋城| 永登县| 高邮市| 牟定县| 金寨县| 甘肃省| 宁德市| 宜川县| 哈密市| 贡觉县| 晋宁县| 绥化市| 调兵山市| 佳木斯市| 信宜市| 闽清县| 荃湾区| 乌拉特后旗| 孝昌县| 上栗县| 江永县| 五华县| 梁平县| 教育| 东阳市| 阜新| 嘉峪关市| 台南市| 都昌县| 盘锦市| 浙江省| 西和县| 秦皇岛市| 眉山市| 永仁县|