C/C++程序設(shè)計(jì)(C/C++ PROGRAMMING)
-
>
中醫(yī)基礎(chǔ)理論
-
>
高校軍事課教程
-
>
思想道德與法治(2021年版)
-
>
毛澤東思想和中國(guó)特色社會(huì)主義理論體系概論(2021年版)
-
>
中醫(yī)內(nèi)科學(xué)·全國(guó)中醫(yī)藥行業(yè)高等教育“十四五”規(guī)劃教材
-
>
中醫(yī)診斷學(xué)--新世紀(jì)第五版
-
>
中藥學(xué)·全國(guó)中醫(yī)藥行業(yè)高等教育“十四五”規(guī)劃教材
C/C++程序設(shè)計(jì)(C/C++ PROGRAMMING) 版權(quán)信息
- ISBN:9787302626480
- 條形碼:9787302626480 ; 978-7-302-62648-0
- 裝幀:平裝-膠訂
- 冊(cè)數(shù):暫無(wú)
- 重量:暫無(wú)
- 所屬分類:>>
C/C++程序設(shè)計(jì)(C/C++ PROGRAMMING) 本書特色
本書根據(jù)中英文教學(xué)交流的需求編寫,重點(diǎn)闡述了C/C 程序設(shè)計(jì)中的基本理論和概念、實(shí)踐應(yīng)用、項(xiàng)目操作等,可以作為雙語(yǔ)教學(xué)的指導(dǎo)教材。
C/C++程序設(shè)計(jì)(C/C++ PROGRAMMING) 內(nèi)容簡(jiǎn)介
本書特別注重理論和實(shí)踐的結(jié)合,在第四部分給出了八個(gè)精心設(shè)計(jì)的應(yīng)用實(shí)例,其中包含了三個(gè)軟硬件結(jié)合的實(shí)驗(yàn),向讀者把展示了如何用學(xué)到的知識(shí)解決實(shí)際問(wèn)題,彌補(bǔ)了理論和應(yīng)用的鴻溝。本書的每章的開始給出了本章需要掌握的重點(diǎn),每章的結(jié)束還要適量的習(xí)題。所有的習(xí)題均給出了答案。每一個(gè)章節(jié)還給出額精心制作的PPT,以方便教師上課和學(xué)生復(fù)習(xí)。 本書采用中英文“二、八開”方式排版,在頁(yè)面的左側(cè)給出了專業(yè)詞匯的釋義。本書的*后還給出了C++的常用詞匯表。 本書特別適合雙語(yǔ)教學(xué)使用,也可以作為普通的C/C++教學(xué)的參考。
C/C++程序設(shè)計(jì)(C/C++ PROGRAMMING) 目錄
1.1 The C and C Programming Language 1
1.2 Why to Learn C and C 2
1.3 Three Levels of Programming Language 4
1.4 Interpreted Languages and Compiled Languages 6
1.5 The Development Tools of C/C : Compilers and Linkers 7
1.6 The Development Cycle 7
Chapter Review 9
Chapter 2 Your First C/C Program 10
2.1 Your First C Programme on Microsoft VC 6.0 10
2.1.1 Create a Win32 Console Application Project 10
2.1.2 How does it work? 18
2.2 Your First C Program on Codeblocks 20
2.3 Writing a C Program 28
2.4 Similarities and Difference between C and C Program 29
Chapter Review 30
Programming Exercises 30
Chapter 3 Variables and Operators 31
3.1 Variables 31
3.2 Variables and identifiers 32
3.3 Data Types 32
3.4 Variables Declaration and Initialization 33
3.5 Variable Names and Comments 35
3.6 Operators 38
3.6.1 Arithmetic Operators 38
3.6.2 Logical Operators 39
3.6.3 Bitwise Operators 40
3.6.4 Relational Operators 41
3.6.5 Operators Precedence in C/C 41
3.7 Some Much Used Operators in C / C 43
3.7.1 Increment and Decrement Operator 43
3.7.2 sizeof() Operator 44
3.7.3 Modulus (%) Operator 45
3.7.4 Conditional Operator ( ? : ) 46
3.7.5 comma “,” operator 46
Chapter Review 48
Programming Exercises 48
Chapter 4 Decision Making 52
4.1 Conditional Operations 54
4.2 The if Structure 55
4.2.1 The if Statement 56
4.2.2 The if-else Statement 57
4.2.3 Nested if Statements 58
4.2.4 if-else-if Statement 59
4.2.5 switch-case statement 61
Programming Exercises 64
Chapter 5 Loops 66
5.1 for Loop 66
5.2 while Loop 69
5.3 do...while Loop 71
5.4 for Loops vs while Loops 72
5.5 Loop Control Statement “break” and “continue” 73
5.5.1 “Break” Statement 73
5.5.2 “continue” Statement 75
Chapter Review 76
Programming Exercises 77 Part 2 Core Language Features Chapter 6 Arrays 81
6.1 Declaring an Array 82
6.2 Initializing an Array 83
6.3 Accessing Array Elements 83
6.4 Array out of Bounds 85
6.5 Address-of Operator (&) 86
6.6 Pointers in C and C 87
6.7 Dynamic Array 89
Programming Exercises 91
Chapter 7 Functions 93
7.1 What is a Function 93
7.2 Library Functions 93
7.3 User-defined Functions 94
7.3.1 Defining a Function 94
7.3.2 Parameters and Arguments 96
7.3.3 Function Declarations 97
7.4 Calling a Function 98
7.4.1 Passing by Value 98
7.4.2 Passing by Address (or Pointers) 99
7.4.3 Passing by Reference 101
7.5 Recursion 102
7.6 Function Overloading 104
7.6.1 Function Overloading by Having Different types of Parameters 104
7.6.2 Function Overloading by Having Different Number of Parameters 105
Programming Exercises 106 Part 3 Object Oriented Programming Chapter 8 Strings 109
8.1 String Assignment 111
8.2 String Comparison 111
8.3 String Concatenation 112
8.4 String Functions 113
8.5 String Operations 114
Chapter Review 116
Programming Exercises 117
Chapter 9 Classes and Objects 118
9.1 Data Encapsulation 118
9.2 Declaring a Class 120
9.3 Defining a Member Function 121
9.3.1 Getter and Setter 121
9.3.2 Implementing Member Functions 122
9.4 Creating an Object 124
9.5 Constructors for Initialization 124
9.6 Destructor 126
9.7 Air ticket example for classes and objects 127
9.8 Friend Function of a Class 131
9.9 Operator Overloading 134
Chapter Review 137
Programming Exercises 138
Chapter 10 Inheritance 140
10.1 Implementing Inheritance 140
10.2 Types of Inheritance 142
10.3 Access Modes in C Inheritance 144
10.4 Example for Inheritance 145
10.5 Air Ticket Example for Inheritance 146
10.6 Polymorphism in C 151
Chapter Review 153
Programming Exercises 155 Part 4 File Operating Chapter 11 Files and Stream 157
11.1 Types of Files 157
11.2 File Operations in C 158
11.2.1 Creating/Opening a File Using Fstream 159
11.2.2 Writing Text Files 160
11.2.3 Reading Text Files 161
11.2.4 String Streams 163
11.2.5 Converting to text 164
11.3 File Operations in C 167
11.3.1 Opening a File 167
11.3.2 Writing a File 169
11.3.3 Closing a File 169
11.3.4 Read from a text file 170
11.3.5 Writing Characters to a File 171
11.3.6 Appending Data to a File 172
Chapter Review 173
Programming Exercises 173
Chapter 12 Splitting Program into Multiple Files 174
12.1 Separate a Program into Multiple Files in C 174
12.2 Practice in Microsoft Visual C 6 177
12.3 Separate a Program into Multiple Files in C 179
Programming Exercises 185 Part 5 Projects for C/C Part A Elementary C/C Projects 187
Project 1 Logical Gates 187
Project 2 Lorry Fleet 193
Project 3 Money Class 198
Part B Computer Game and Machine Learning Projects 201
Project 4 Hangman Game Project 201
Project 5 The tic-tac-toe game 205
Project 6 Designing a chatbot 209
Part C Hardware Based Projects 213
Project 7 Blinking a LED and LED chaser 213
Project 8 Distance Measurement using Ultrasonic Sensor and Arduino 218
Project 9 Servo Motor Projects 222
Appendix: Vocabulary for C/C 229
References 233
C/C 程序設(shè)計(jì)(C/C Programming) 目錄 VI
VII
- >
回憶愛瑪儂
- >
姑媽的寶刀
- >
山海經(jīng)
- >
羅曼·羅蘭讀書隨筆-精裝
- >
月亮虎
- >
伊索寓言-世界文學(xué)名著典藏-全譯本
- >
唐代進(jìn)士錄
- >
苦雨齋序跋文-周作人自編集