幫助中心 | 我的帳號 | 關於我們

C\C++程序設計(英文版)

  • 作者:陳宗民|責編:張玥
  • 出版社:清華大學
  • ISBN:9787302626480
  • 出版日期:2023/04/01
  • 裝幀:平裝
  • 頁數:232
人民幣:RMB 55 元      售價:
放入購物車
加入收藏夾

內容大鋼
    C++是在C語言的基礎上發展起來的面向對象的程序設計語言,是C語言的超集,所以C++和C語言有密切的關係,C++兼容C語言,在很多方面和C語言是相通的。
    本書以初學者為閱讀對象,由淺入深地介紹了C/C++語言的基本概念,基本語句和語法,基本演算法。在此基礎之上,重點編寫了九個編程實例,以培養讀者用所學的編程知識解決實際問題的能力。
    全書共分為六部分。第一部分介紹了C/C++語言的基本概念和基礎知識,包括變數和基本的數據類型,基本的程序結構,選擇和循環等。第二部分介紹了C/C++語言面向過程部分的核心特徵,主要包括函數、數組和指針。第三部分介紹了面向對象的知識,包括類與對象、類的繼承等。第四部分介紹了C語言和C++的文件操作。第五部分介紹了九個編程案例,包括基於機器學習和基於硬體的編程。第六部分是附錄,列出了本書一些常用專業辭彙的中文解釋。
    本書採用淺顯易懂的英文編寫,對概念的描述也有新意,適合中國學生閱讀,特別適合雙語教學的學生閱讀。

作者介紹
陳宗民|責編:張玥

目錄
Part 1  C/C++ Fundamentals
  Chapter 1  Getting Started with C/C++
    1.1  The C and C++ Programming Language
    1.2  Why to Learn C and C++
    1.3  Three Levels of Programming Language
    1.4  Interpreted Languages and Compiled Languages
    1.5  The Development Tools of C/C++: Compilers and Linkers
    1.6  The Development Cycle
    Chapter Review
  Chapter 2  Your First C/C++ Program
      2.1.1  Create a Win32 Console Application Project
      2.1.2  How does it work?
    2.2  Your First C++ Program on Codeblocks
    2.3  Writing a C Program
    2.4  Similarities and Difference between C and C++ Program
    Chapter Review
    Programming Exercises
  Chapter 3  Variables and Operators
    3.1  Variables
    3.2  Variables and identifiers
    3.3  Data Types
    3.4  Variables Declaration and Initialization
    3.5  Variable Names and Comments
    3.6  Operators
      3.6.1  Arithmetic Operators
      3.6.2  Logical Operators
      3.6.3  Bitwise Operators
      3.6.4  Relational Operators
      3.6.5  Operators Precedence in C/C++
    3.7  Some Much Used Operators in C/ C++
      3.7.1  Increment and Decrement Operator
      3.7.2  sizeof()Operator
      3.7.3  Modulus(%)Operator
      3.7.4  Conditional Operator (?:)
      3.7.5  comma "," operator
    Chapter Review
    Programming Exercises
  Chapter 4  Decision Making
    4.1  Conditional Operations
    4.2  The if Structure
      4.2.1  The if Statement
      4.2.2  The if-else Statement
      4.2.3  Nested if Statements
      4.2.4  if-else-if Statement
      4.2.5  switch-case statement
    Programming Exercises
  Chapter 5  Loops
    5.1  for Loop
    5.2  while Loop
    5.4  for Loops vs while Loops

    5.3  do...while Loop
    5.5  Loop Control Statement "break" and "continue"
      5.5.1  「Break」 Statement
      5.5.2  "continue" Statement
    Chapter Review
    Programming Exercises
Part 2  Core Language Features
  Chapter 6  Arrays
    6.1  Declaring an Array
    6.2  Initializing an Array
    6.3  Accessing Array Elements
    6.4  Array out of Bounds
    6.5  Address-of Operator (&)
    6.6  Pointers in C and C++
    6.7  Dynamic Array
    Programming Exercises
  Chapter 7  Functions
    7.1  What is a Function
    7.2  Library Functions
    7.3  User-defined Functions
      7.3.1  Defining a Function
      7.3.2  Parameters and Arguments
      7.3.3  Function Declarations
    7.4  Calling a Function
      7.4.1  Passing by Value
      7.4.2  Passing by Address (or Pointers)
      7.4.3  Passing by Reference
    7.5  Recursion
    7.6  Function Overloading
      7.6.1  Function Overloading by Having Different types of Parameters
      7.6.2  Function Overloading by Having Different Number of Parameters
    Programming Exercises
Part 3  Object Oriented Programming
  Chapter 8  Strings
    8.1  String Assignment
    8.2  String Comparison
    8.3  String Concatenation
    8.4  String Functions
    8.5  String Operations
    Chapter Review
    Programming Exercises
  Chapter 9  Classes and Objects
    9.1  Data Encapsulation
    9.2  Declaring a Class
    9.3  Defining a Member Function
      9.3.1  Getter and Setter
      9.3.2  Implementing Member Functions
    9.4  Creating an Object
    9.5  Constructors for Initialization
    9.6  Destructor

    9.7  Air ticket example for classes and objects
    9.8  Friend Function of a Class
    9.9  Operator Overloading
    Chapter Review
    Programming Exercises
  Chapter 10  Inheritance
    10.1  Implementing Inheritance
    10.2  Types of Inheritance
    10.3  Access Modes in C++ Inheritance
    10.4  Example for Inheritance
    10.5  Air Ticket Example for Inheritance
    10.6  Polymorphism in C++
    Chapter Review
    Programming Exercises
Part 4  File Operating
  Chapter 11  Files and Stream
    11.1  Types of Files
    11.2  File Operations in C++
      11.2.1  Creating/Opening a File Using Fstream
      11.2.2  Writing Text Files
      11.2.3  Reading Text Files
      11.2.4  String Streams
      11.2.5  Converting to text
    11.3  File Operations in C
      11.3.1  Opening a File
      11.3.2  Writing a File
      11.3.3  Closing a File
      11.3.4  Read from a text file
      11.3.5  Writing Characters to a File
      11.3.6  Appending Data to a File
    Chapter Review
    Programming Exercises
  Chapter 12  Splitting Program into Multiple Files
    12.1  Separate a Program into Multiple Files in C
    12.2  Practice in Microsoft Visual C++ 6
    12.3  Separate a Program into Multiple Files in C++
    Programming Exercises
Part 5  Projects for C/C++
  Part A  Elementary C/C++ Projects
    Project 1  Logical Gates
    Project 2  Lorry Fleet
    Project 3  Money Class
  Part B  Computer Game and Machine Learning Projects
    Project 4  Hangman Game Project
    Project 5  The tic-tac-toe game
    Project 6  Designing a chatbot
  Part C  Hardware Based Projects
    Project 7  Blinking a LED and LED chaser
    Project 8  Distance Measurement using Ultrasonic Sensor and Arduino
    Project 9  Servo Motor Projects

Appendix: Vocabulary for C/C++
References

  • 商品搜索:
  • | 高級搜索
首頁新手上路客服中心關於我們聯絡我們Top↑
Copyrightc 1999~2008 美商天龍國際圖書股份有限公司 臺灣分公司. All rights reserved.
營業地址:臺北市中正區重慶南路一段103號1F 105號1F-2F
讀者服務部電話:02-2381-2033 02-2381-1863 時間:週一-週五 10:00-17:00
 服務信箱:bookuu@69book.com 客戶、意見信箱:cs@69book.com
ICP證:浙B2-20060032