程式設計與計算思維

《程式設計與計算思維》是2023年電子工業出版社出版的圖書,作者是劉正余。

基本介紹

  • 書名:程式設計與計算思維
  • 作者:劉正余
  • 出版社:電子工業出版社
  • 出版時間:2023年2月
  • 頁數:244 頁
  • 定價:56.00 元
  • 開本:16 開
  • ISBN:9787121450754
內容簡介,圖書目錄,

內容簡介

本書是基於“新工科”背景套用型工程教育中人才培養模式要求編寫而成的,從計算思維視角探索程式設計的過程和目標,其中設計的每個案例代表性都很強。本書共 12 章,內容包括引論、數據類型、運算符與表達式、輸入與輸出、順序結構程式設計與執行、分支結構程式設計與執行、循環結構程式設計與執行、指針的定義與引用、數組與指針、模組化程式設計、結構體與鍊表、檔案操作。本書既適合信息類相關人員了解程式設計與計算思維所用,又適合為非信息類相關人員提供信息理論與技術幫助。

圖書目錄

第 1 章 引論····································1
案例 1:設計加法表 ·····················1
Prog1.1 ································1
Prog1.2 ································2
Prog1.3 ································3
Prog1.4 ································4
Prog1.5 ································5
案例 2:一組數據的“逆序”輸出 ···5
Prog2.1 ································5
Prog2.2 ································6
Prog2.3 ································7
Prog2.4 ································7
Prog2.5 ································8
Prog2.6 ································9
第 2 章 數據類型 ··························.10
案例 3:求兩個數的和 ···············.10
Prog3.1 ·····························.10
Prog3.2 ·····························.10
案例 4:整型數據 ·····················.11
Prog4.1 ·····························.11
Prog4.2 ·····························.12
Prog4.3 ·····························.12
Prog4.4 ·····························.13
案例 5:實型數據 ·····················.15
Prog5.1 ·····························.15
Prog5.2 ·····························.15
Prog5.3 ·····························.16
Prog5.4 ·····························.17
案例 6:字元型數據 ··················.17
Prog6.1 ·····························.17
Prog6.2 ·····························.18
Prog6.3 ·····························.18
Prog6.4 ·····························.19
Prog6.5 ·····························.20
Prog6.6 ·····························.21
Prog6.7 ·····························.21
第 3 章 運算符與表達式 ·················.23
案例 7:算術運算符與表達式······.23
Prog7.1 ·····························.23
Prog7.2 ·····························.23
Prog7.3 ·····························.24
Prog7.4 ·····························.25
案例 8:關係運算符與表達式······.26
Prog8.1 ·····························.26
案例 9:邏輯運算符與表達式······.27
Prog9.1 ·····························.27
Prog9.2 ·····························.28
Prog9.3 ·····························.28
Prog9.4 ·····························.29
案例 10:賦值運算符與表達式·····.30
Prog10.1 ····························.30
案例 11:逗號運算符與表達式·····.31
Prog11.1 ····························.31
第 4 章 輸入與輸出 ·······················.32
案例 12:整型數據輸入··············.32
Prog12.1 ····························.32
案例 13:實型數據輸入··············.33
Prog13.1 ····························.33
案例 14:字元型數據輸入···········.34
Prog14.1 ····························.34
案例 15:數值型數據與字元型
數據混合輸入··············.35
Prog15.1 ····························.35
案例 16:整型數據輸出··············.36
Prog16.1 ····························.36
案例 17:實型數據輸出··············.37
Prog17.1 ····························.37
案例 18:字元型數據輸出···········.38
Prog18.1 ····························.38
案例 19:檔案數據寫入和讀出·····.39
Prog19.1 ····························.39
第 5 章 順序結構程式設計與執行 ·····.42
案例 20:順序結構程式設計
與執行·······················.42
Prog20.1 ····························.42
案例 21:數據的交換·················.42
Prog21.1 ····························.42
Prog21.2 ····························.43
Prog21.3 ····························.44
Prog21.4 ····························.46
案例 22:四捨五入····················.48
Prog22.1 ····························.48
第 6 章 分支結構程式設計與執行 ·····.50
案例 23:分支結構程式設計
與執行·······················.50
Prog23.1 ····························.50
Prog23.2 ····························.51
Prog23.3 ····························.51
Prog23.4 ····························.54
案例 24:求數據的極值··············.56
Prog24.1 ····························.56
Prog24.2 ····························.57
案例 25:簡單數據排序··············.59
Prog25.1 ····························.59
Prog25.2 ····························.60
案例 26:分段函式求解··············.61
Prog26.1 ····························.61
Prog26.2 ····························.62
Prog26.3 ····························.63
Prog26.4 ····························.64
案例 27:開關語句程式設計與
執行··························.65
Prog27.1 ····························.65
案例 28:學生成績分析與設計·····.66
Prog28.1 ····························.66
案例 29:簡易選單設計··············.67
Prog29.1 ····························.67
第 7 章 循環結構程式設計與執行 ·····.69
案例 30:循環結構程式設計
與執行·······················.69
Prog30.1 ····························.69
Prog30.2 ····························.70
Prog30.3 ····························.71
案例 31:順序結構與循環結構 ····.72
Prog31.1 ····························.72
案例 32:多重(嵌套)循環結構
程式設計與執行···········.73
Prog32.1 ····························.73
案例 33:求和問題····················.74
Prog33.1 ····························.74
Prog33.2 ····························.76
Prog33.3 ····························.78
Prog33.4 ····························.79
Prog33.5 ····························.80
案例 34:循環結構解決典型問題 ·.81
Prog34.1 ····························.81
Prog34.2 ····························.82
Prog34.3 ····························.84
Prog34.4 ····························.86
Prog34.5 ····························.87
Prog34.6 ····························.89
Prog34.7 ····························.90
Prog34.8 ····························.91
案例 35:鑽石圖的設計··············.92
Prog35.1 ····························.92
Prog35.2 ····························.95
Prog35.3 ····························.97
Prog35.4 ····························.99
第 8 章 指針的定義與引用 ·············.102
案例 36:指針的定義與含義 ······.102
Prog36.1 ···························.102
案例 37:指針的引用················.104
Prog37.1 ···························.104
Prog37.2 ···························.105
Prog37.3 ····························106
案例 38:指針的指針定義與
引用··························107
Prog38.1 ····························107
第 9 章 數組與指針 ·······················109
案例 39:數組的含義與定義········109
Prog39.1 ····························109
Prog39.2 ···························.110
Prog39.3 ···························.112
Prog39.4 ···························.113
案例 40:數組與指針················.115
Prog40.1 ···························.115
案例 41:指針運算···················.117
Prog41.1 ···························.117
Prog41.2 ····························120
Prog41.3 ····························123
案例 42:數組元素引用··············125
Prog42.1 ····························125
Prog42.2 ····························126
Prog42.3 ····························130
Prog42.4 ····························132
Prog42.5 ····························134
案例 43:多維數組與指針···········135
Prog43.1 ····························135
Prog43.2 ····························137
Prog43.3 ····························139
Prog43.4 ····························142
Prog43.5 ····························144
案例 44:多維數組解決經典
問題··························145
Prog44.1 ····························145
Prog44.2 ····························147
Prog44.3 ····························149
Prog44.4 ····························152
案例 45:字元數組與字元串········154
Prog45.1 ····························154
Prog45.2 ····························156
Prog45.3 ····························158
Prog45.4 ····························161
案例 46:數組數據處理綜合
案例·························.162
Prog46.1 ···························.162
第 10 章 模組化程式設計···············.168
案例 47:庫函式調用················.168
Prog47.1 ···························.168
Prog47.2 ···························.168
案例 48:形參與實參················.170
Prog48.1 ···························.170
案例 49:函式的返回值·············.172
Prog49.1 ···························.172
案例 50:函式調用···················.174
Prog50.1 ···························.174
Prog50.2 ···························.175
案例 51:和與積······················.177
Prog51.1 ···························.177
Prog51.2 ···························.179
案例 52:遞歸調用···················.180
Prog52.1 ···························.180
Prog52.2 ···························.182
案例 53:遞歸調用經典案例 ······.185
Prog53.1 ···························.185
Prog53.2 ···························.186
案例 54:數組、指針與模組化 ···.187
Prog54.1 ···························.187
Prog54.2 ···························.189
Prog54.3 ···························.191
案例 55:變數的作用域·············.192
Prog55.1 ···························.192
Prog55.2 ···························.194
案例 56:函式返回值為指針 ······.196
Prog56.1 ···························.196
案例 57:預編譯處理················.197
Prog57.1 ···························.197
第 11 章 結構體與鍊表··················.199
案例 58:結構體類型與結構體
變數·························.199
Prog58.1 ···························.199
Prog58.2 ···························.201
案例 59:結構體變數與結構體
指針··························202
Prog59.1 ····························202
Prog59.2 ····························204
案例 60:結構體數組與指針········205
Prog60.1 ····························205
案例 61:結構體典型案例···········209
Prog61.1 ····························209
案例 62:鍊表··························210
Prog62.1 ····························210
Prog62.2 ····························213
案例 63:鍊表套用案例··············214
Prog63.1 ····························214
案例 64:共用體類型·················219
Prog64.1 ····························219
案例 65:枚舉類型····················220
Prog65.1 ···························.220
案例 66:位運算······················.222
Prog66.1 ···························.222
Prog66.2 ···························.224
第 12 章 檔案操作························.226
案例 67:檔案的打開與關閉 ······.226
Prog67.1 ···························.226
案例 68:檔案的讀寫················.228
Prog68.1 ···························.228
Prog68.2 ···························.229
Prog68.3 ···························.230
案例 69:檔案的控制················.233
Prog69.1 ···························.233
案例 70:檔案操作典型案例 ······.234
Prog70.1 ···························.234
參考文獻 ····································.236

相關詞條

熱門詞條

聯絡我們