C語言程序設計實驗教程

馬楊琿

  • 出版商: 電子工業
  • 出版日期: 2023-12-01
  • 定價: $270
  • 售價: 8.5$229
  • 語言: 簡體中文
  • 頁數: 192
  • ISBN: 7121469022
  • ISBN-13: 9787121469022
  • 相關分類: C 程式語言
  • 下單後立即進貨 (約4週~6週)

相關主題

商品描述

本教材共分兩個部分,第一部分主要介紹C語言程序設計實驗的基本目的與要求,以及電腦程序設計的基本過程;第二部分包含14個實驗,主要訓練學生基本編程技能; 每個實驗由實驗目的、預備知識、實例解析、實驗內容四部分組成,其中:"實驗目的”對學生提出本次實驗的預期目標;"預備知識”幫助學生總結本次實驗所需的理論知識;"實例解析”通過精心選擇的例題向學生講解如何應用相關知識解決具體問題,以更好地幫助學生進行實驗準備工作;"實驗內容”除了提供傳統的編程題目供學生練習外,還提供程序分析題、程序改錯題、程序測試題、程序填空題等多種類型的題目,讓學生進行全方位的編程實踐,從而幫助學生更好地理解程序設計的方法。 本書可以作為各類高等院校C語言程序設計課程的實驗教材,也可以作為廣大編程愛好者學習C語言程序設計的參考書。

目錄大綱

第一部分 C 語言程序設計實驗概述
第1 章 C 語言程序設計實驗的目的與要求 ·························································.2
1.1 C 語言程序設計實驗的目的 ····························································.2
1.2 C 語言程序設計實驗的要求 ····························································.3
第2 章 C 語言程序設計的基本過程 ··································································.4
2.1 問題的描述與分析 ········································································.4
2.2 算法的設計與表示 ········································································.4
2.3 程序的編寫與測試 ········································································.5
2.4 計算思維的培養與訓練 ··································································.6
第二部分 C 語言程序設計實驗
實驗1 運行一個簡單的C 語言程序 ··································································.8
一、實驗目的 ·····················································································.8
二、預備知識 ·····················································································.8
三、實例解析 ·····················································································.9
四、實驗內容 ···················································································.13
實驗2 順序結構程序設計 ·············································································.15
一、實驗目的 ···················································································.15
二、預備知識 ···················································································.15
三、實例解析 ···················································································.17
四、實驗內容 ···················································································.19
實驗3 選擇結構程序設計 ·············································································.23
一、實驗目的 ···················································································.23
二、預備知識 ···················································································.23
三、實例解析 ···················································································.25
四、實驗內容 ···················································································.29
實驗4 循環結構程序設計 ·············································································.32
一、實驗目的 ···················································································.32
二、預備知識 ···················································································.32
三、實例解析 ···················································································.34
四、實驗內容 ···················································································.39
實驗5 一維數組及應用 ················································································.42
一、實驗目的 ···················································································.42
二、預備知識 ···················································································.42
三、實例解析 ···················································································.45
四、實驗內容 ···················································································.53
實驗6 二維數組及應用 ················································································.58
一、實驗目的 ···················································································.58
二、預備知識 ···················································································.58
三、實例解析 ···················································································.59
四、實驗內容 ···················································································.65
實驗7 字符串應用 ······················································································.69
一、實驗目的 ···················································································.69
二、預備知識 ···················································································.69
三、實例解析 ···················································································.70
四、實驗內容 ···················································································.74
實驗8 指針應用 ·························································································.78
一、實驗目的 ···················································································.78
二、預備知識 ···················································································.78
三、實例解析 ···················································································.81
四、實驗內容 ···················································································.84
實驗9 函數應用 ·························································································.88
一、實驗目的 ···················································································.88
二、預備知識 ···················································································.88
三、實例解析 ···················································································.90
四、實驗內容 ···················································································.98
實驗10 結構體 ··························································································.104
一、實驗目的 ··················································································.104
二、預備知識 ··················································································.104
三、實例解析 ··················································································.106
四、實驗內容 ··················································································.113
實驗11 鏈表操作 ·······················································································.119
一、實驗目的 ··················································································.119
二、預備知識 ··················································································.119
三、實例解析 ··················································································.121
四、實驗內容 ··················································································.128
實驗12 文件及應用 ····················································································.133
一、實驗目的 ··················································································.133
二、預備知識 ··················································································.133
三、實例解析 ··················································································.137
四、實驗內容 ··················································································.144
實驗13 簡單C++程序設計 ··········································································.147
一、實驗目的 ··················································································.147
二、預備知識 ··················································································.147
三、實例解析 ··················································································.149
四、實驗內容 ··················································································.154
實驗14 綜合應用 ·······················································································.156
一、實驗目的 ··················································································.156
二、預備知識 ··················································································.156
三、實例解析 ··················································································.157
四、實驗內容 ··················································································.170
附 錄
附錄A ASCII 碼字符集 ···············································································.174
附錄B C 語言中的關鍵字 ············································································.175
附錄C 運算符優先級與結合性 ······································································.176
附錄D 常用庫函數 ·····················································································.177
附錄E Dev-C++環境下的程序調試方法 ··························································.181