![](/c49/99/10027970537959.jpg)
店鋪:遼寧音像出版社圖書專營店 出版社:電子工業出版社 ISBN:9787121293580 商品編碼:10027970537959 包裝:平裝 出版時間:2016-07-01 作者:Paul
"基本信息 書名:雙語版C++程序設計 定價 作者:(愛爾蘭)Paul Kelly(P. 凱利)著 出版社:電子工業出版社 出版日期:2016-07-01 ISBN:9787121293580 字數:716000 頁碼:339 版次:2 裝幀:平裝 開本:16開 商品重量: 編輯推薦
內容提要
本書由在計算機程序設計方面有著豐富教學和實踐經驗的中外作者合作編寫。本書內容共分14章,由淺入深、全面介紹C 程序設計方法。本書通俗易懂,例子貼近生活,尤其強調讀者的親自參與意識。所有實例經過精心挑選。每章都為初學者提供了常見錯誤分析,每章結尾有很多有趣的習題,可以提高讀者上機編程的興趣。本書是首次出版的中英文對照混排式雙語版C 程序設計教材的更新版,既方便初學者熟悉相關概念和內容,也便於英文非母語的讀者熟悉英文專業詞彙。 目錄
目 錄 Chapter OneTypographic Conventions(緒論)1 1.1 What is a puter program (什麼是計算機程序 )1 1.2 Developing a puter program(開發計算機程序) 2 1.2.1 Program development cycle 2 1.3 Learning C (學習 C )4 1.4 Web site for this book(本書的網站)4 1.5 Brief history of C (C 簡史) 4 1.6 ANSI/ISO C standard(ANSI/ISO C 標準) 5
Chapter TwoBeginning to Program in C (C 編程入門)6 2.1 Constants(常量)6 2.2 Variables(變量)6 2.3 Simple output to the screen(簡單的屏幕輸出)7 2.4 Comments(注釋)9 2.5 Data types(數據類型)10 2.5.1 Short integer data types10 2.5.2 Long integer data types10 2.5.3 Boolean data types11 2.5.4 Double floating-point data types11 2.5.5Unsigned integer data types11 2.6 Data type sizes(數據類型的大小)11 2.7 Operators (運算符)12 2.7.1 The assignment operator12 2.7.2 Arithmetic operators12 2.7.3 Increment and decrement operators13 2.7.4 Combined assignment operators15 2.8 Operator precedence(運算符的優先級)16 2.9 Data type conversions and casts(類型轉換和強轉)18 Programming pitfalls20 Quick syntax reference21 Exercises22 Chapter ThreeKeyboard Input and Screen Output(鍵盤輸入和屏幕輸出)26 3.1 Simple keyboard input(簡單的鍵盤輸入)26 3.2 Manipulators(流操縱符)28 3.3 Single-character input and output(單個字符的輸入和輸出)30 Programming pitfalls32 Quick syntax reference32 Exercises32 Chapter FourSelection and Iteration(選擇與循環)34 4.1 Selection(選擇)34 4.1.1 The if statement34 4.1.2 The if-else statement35 4.1.3 Compound statements35 4.1.4 Logical operators37 4.1.5 Nested if statements37 4.1.6 The switch statement37 4.1.7 The conditional operator :39 4.2 Iteration(循環)40 4.2.1 The while statement40 4.2.2 The do-while loop42 4.2.3 The for statement43 4.2.4 Nested loops45 Programming pitfalls47 Quick syntax reference49 Exercises50 Chapter FiveArrays and Structures(數組和結構體)53 5.1 Arrays(數組)53 5.1.1 Introduction53 5.1.2 Initialising an array56 5.1.3 Two-dimensional arrays57 5.1.4 Initialising a two-dimensional array59 5.1.5 Multi-dimensional arrays60 5.2 Structures(結構體)60 5.2.1 Introduction60 5.2.2 Declaring a structure61 5.2.3 Initialising a structure variable63 5.2.4 Nested structures64 5.3 The typedef statement(typedef 語句)65 5.4 Arrays of structures(結構體數組)66 5.5 Enumerated data types(枚舉數據類型)66 Programming pitfalls68 Quick syntax reference68 Exercises69 Chapter SixStrings(字符串)72 6.1 C-strings(C 風格字符串)72 6.2 C-string input and output(C 風格字符串的輸入和輸出)73 6.3 Accessing individual characters of a C-string(訪問C 風格字符串中的單個字符)77 6.4 C-string functions(C 風格字符串函數)77 6.4.1 Finding the length of a C-string78 6.4.2 Copying a C-string78 6.4.3 C-string concatenation79 6.4.4 Comparing C-strings79 6.4.5 Other C-string functions79 6.4.6 Converting numeric C-strings to numbers80 6.5 C strings(C 字符串)80 6.5.1 string initialisation and assignment82 6.5.2 string concatenation84 6.5.3 string length, string indeng and sub-strings85 6.5.4 string replace, erase, insert and empty strings86 6.5.5 string searching88 6.5.6 string parisons89 6.5.7 string input91 6.5.8 string conversions92 6.6 Arrays of strings(string 類型的數組)93 6.7 Character classification(字符分類)94 Programming pitfalls96 Quick syntax reference96 Exercises97 Chapter SevenFunctions(函數)100 7.1 Introduction(引言)100 7.2 Function arguments(函數實參)102 7.3 Default parameter values(默認的形參值)105 7.4 Returning a value from a function(從函數返回一個值)106 7.5 Inline functions(內聯函數)107 7.6 Passing arguments by value(按值傳遞實參)108 7.7 Passing arguments by reference(按引用傳遞實參)109 7.8 Passing a one-dimensional array to a function(向函數傳遞一維數組)112 7.9 Passing a multi-dimensional array to a function(向函數傳遞多維數組)115 7.10 Passing a structure variable to a function(向函數傳遞結構體變量)116 7.11 Passing a string to function(向函數傳遞字符串)118 7.11.1 Passing a C string to a function118 7.11.2 Passing a C-string to a function119 7.12 Recursion(遞歸)120 7.13 Function overloading(函數重載)122 7.14 Storage classes auto and static (auto 和static 存儲類型)123 7.14.1 auto123 7.14.2 static124 7.15 The scope of a variable(變量的作用域)125 7.15.1 Block scope125 7.15.2 Global scope126 7.15.3 Reusing a variable name127 7.16 Mathemat 作者介紹
Paul Kelly,愛爾蘭都柏林工業大學(DIT)的高級講師Paul Kelly。Kelly 老師長期從事程序設計類課程的教學工作,在程序設計類課程教學方面教學實踐經驗豐富,在國外已先後出版多本程序設計語言類書籍。蘇小紅,哈爾濱工業大學計算機學院博士生導師,計算機應用技術專家,研究領域主要是色彩匹配,信息融合,空間計算,人工神經網絡,進化算法,計算機圖形學,灰色預測,彩色圖像處理等。 序言
" |