登入帳戶  | 訂單查詢  | 購物車/收銀台( 0 ) | 在線留言板  | 付款方式  | 聯絡我們  | 運費計算  | 幫助中心 |  加入書簽
會員登入 新註冊 | 新用戶登記
HOME新書上架暢銷書架好書推介特價區會員書架精選月讀2023年度TOP分類閱讀雜誌 香港/國際用戶
最新/最熱/最齊全的簡體書網 品種:超過100萬種書,正品正价,放心網購,悭钱省心 送貨:速遞 / EMS,時效:出貨後2-3日

2024年03月出版新書

2024年02月出版新書

2024年01月出版新書

2023年12月出版新書

2023年11月出版新書

2023年10月出版新書

2023年09月出版新書

2023年08月出版新書

2023年07月出版新書

2023年06月出版新書

2023年05月出版新書

2023年04月出版新書

2023年03月出版新書

2023年02月出版新書

『簡體書』双语版C++程序设计(第2版)

書城自編碼: 2870831
分類: 簡體書→大陸圖書→教材研究生/本科/专科教材
作者: [爱尔兰]Paul Kelly[P. 凯利]
國際書號(ISBN): 9787121293580
出版社: 电子工业出版社
出版日期: 2016-07-01
版次: 1 印次: 1
頁數/字數: 352/
書度/開本: 16开 釘裝: 平塑

售價:NT$ 413

我要買

share:

** 我創建的書架 **
未登入.



新書推薦:
区域经济与产业发展研究
《 区域经济与产业发展研究 》

售價:NT$ 381.0
正念心理学:全面开启自我觉察与接纳的疗愈之旅
《 正念心理学:全面开启自我觉察与接纳的疗愈之旅 》

售價:NT$ 391.0
车用锂离子动力电池碰撞安全
《 车用锂离子动力电池碰撞安全 》

售價:NT$ 885.0
中国近代史(中国史学大家蒋廷黻典作品)
《 中国近代史(中国史学大家蒋廷黻典作品) 》

售價:NT$ 223.0
先跳了再说: 仓本聪的工作与生活哲学
《 先跳了再说: 仓本聪的工作与生活哲学 》

售價:NT$ 314.0
抗焦虑饮食(赠实践手册)
《 抗焦虑饮食(赠实践手册) 》

售價:NT$ 498.0
生活不是掷骰子:理性决策的贝叶斯思维
《 生活不是掷骰子:理性决策的贝叶斯思维 》

售價:NT$ 386.0
万有引力书系·基辅罗斯:东斯拉夫文明的起源
《 万有引力书系·基辅罗斯:东斯拉夫文明的起源 》

售價:NT$ 661.0

建議一齊購買:

+

NT$ 518
《 平衡计分卡演进 》
+

NT$ 239
《 人类沟通的语用学:一项关于互动模式、病理学与悖论的研究 》
+

NT$ 885
《 C++大学教程(第九版) 》
+

NT$ 675
《 城市化——城市地理学导论(原书第3版) 》
+

NT$ 789
《 食物:味道的历史 精装 》
+

NT$ 315
《 数学速览:即时掌握的200个数学知识 》
內容簡介:
本书由在计算机程序设计方面有着丰富教学和实践经验的中外作者合作编写。本书内容共分14章,由浅入深、全面介绍C++程序设计方法。本书通俗易懂,例子贴近生活,尤其强调读者的亲自参与意识。所有实例经过精心挑选。每章都为初学者提供了常见错误分析,每章结尾有很多有趣的习题,可以提高读者上机编程的兴趣。本书是国内首次出版的中英文对照混排式双语版C++程序设计教材的更新版,既方便初学者熟悉相关概念和内容,也便于英文非母语的读者熟悉英文专业词汇。
關於作者:
Paul Kelly,爱尔兰都柏林工业大学(DIT)的高级讲师Paul Kelly。Kelly 老师长期从事程序设计类课程的教学工作,在程序设计类课程教学方面教学实践经验丰富,在国外已先后出版多本程序设计语言类书籍。苏小红,哈尔滨工业大学计算机学院博士生导师,计算机应用技术专家,研究领域主要是色彩匹配,信息融合,空间计算,人工神经网络,进化算法,计算机图形学,灰色预测,彩色图像处理等。
目錄
目 录
Chapter One Typographic Conventions(绪论)1
1.1 What is a computer program (什么是计算机程序 )1
1.2 Developing a computer 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 ANSIISO C++ standard(ANSIISO C++标准) 5
Chapter Two Beginning 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.5 Unsigned 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 Three Keyboard 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 Four Selection 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 Five Arrays 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 Six Strings(字符串)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 indexing and sub-strings85
6.5.4 string replace, erase, insert and empty strings86
6.5.5 string searching88
6.5.6 string comparisons89
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 Seven Functions(函数)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 Mathematical functions(数学函数)129
7.16.1 Some trigonometric functions129
7.16.2 Pseudo-random number functions130
Programming pitfalls132
Quick syntax reference132
Exercises133
Chapter Eight Objects and Classes(对象和类)137
8.1 What is an object (什么是对象 )137
8.2 What is a class (什么是类 )137
8.3 Further examples of classes and objects(类和对象的更进一步的示例)140
8.3.1 A student class140
8.3.2 A bank account class140
8.4 Abstraction(抽象)141
8.5 Constructing a class in C++(用C++构造一个类)142
8.6 Using a class: defining and using objects(使用类:定义和使用对象)144
8.7 Abstract data types(抽象数据类型)145
8.8 Constructors(构造函数)146
8.9 Default class constructor(默认的类构造函数)148
8.10 Overloading class constructors(重载类构造函数)149
8.11 Constructor initialisation lists(构造函数初始化列表)151
8.12 Default argument values in a constructor(构造函数中的默认实参值)152
8.13 static class data members(静态类数据成员)154
8.14 Using return in a member function(在成员函数中使用return)157
8.15 Inline class member functions(内联成员函数)159
8.16 Class interface and class implementation(类的接口和类的实现)160
8.16.1 Separation of class interface and class implementation162
8.16.2 Use of namespaces in header files164
Programming pitfalls167
Quick syntax reference167
Exercises167
Chapter Nine Pointers and Dynamic Memory(指针和动态内存分配)171
9.1 Variable addresses(变量的地址)171
9.2 Pointer variables(指针变量)172
9.3 The dereference operator *(解引用运算符*)173
9.4 Using const with pointers(使用const 修饰指针变量)174
9.5 Pointers and one-dimensional arrays(指针和一维数组)175
9.6 Pointers and multi-dimensional arrays(指针和多维数组)177
9.7 Pointers to structures(指向结构体的指针)178
9.8 Pointers to class objects(指向类对象的指针)179
9.9 Pointers as function arguments(指针变量作为函数实参)180
9.10 Dynamic memory allocation(动态内存分配)182
9.10.1 Allocating memory dynamically for an array183
9.10.2 Initialisation with new184
9.10.3 Allocating memory for multi-dimensional arrays186
9.10.4 Out of memory error187
Programming pitfalls189
Quick syntax reference190
Exercises190
Chapter Ten Operator Overloading(运算符重载)193
10.1 The need for operator overloading(运算符重载的必要性)193
10.2 Overloading the addition operator +(重载加法运算符+)193
10.3 Rules of operator overloading(运算符重载的规则)200
10.4 Overloading ++(重载运算符++)200
10.4.1 Overloading prefix and postfix forms of ++203
10.4.2 Improving the prefix ++ operator member function206
10.5 Overloading relational operators(重载关系运算符)206
10.6 Overloading << and >> (重载运算符<<和>>)209
10.7 Conversion operators(转换运算符)214
10.8 Use of friend functions(使用友元函数)217
10.9 Overloading the assignment operator =(重载赋值运算符=)218
10.9.1 A class with a pointer data member218br
內容試閱
Preface

This textbook teaches the fundamentals of programming using C, a programming language which supports the development of software using the object-oriented paradigm.
Although the book is primarily intended as a textbook for a programming module in a computer science course, it is equally suited to an individual familiar with another programming language and who now wants to learn how to program in C.
This book focuses on core concepts and features of C while keeping the explanations as simple as possible. Drawing on their professional experience, the authors teach C programming largely by way of examples that are organized for easy step-by-step learning.
Like so many other programming languages, C contains numerous English technical terms that are difficult for all students, including the native English speaking student.
Learn C through English and Chinese explains C concepts and terminology in English with additional explanatory annotations in Chinese. This bi-lingual approach will be appreciated by Chinese students and will help them focus on the C language without being over-burdened by English technical terminology. Despite C being available on a wide variety of platforms, this book is not specific to any particular machine, compiler, or operating system. All programs are designed to be portable with little or no modification to a wide variety of platforms.
Learn C through English and Chinese
Is a comprehensive introduction to programming in C.
Uses practical examples to explain difficult theoretical examples.
Uses a step-by-step approach with detailed explanation of programming examples.
Uses explanatory annotations written in Chinese.
Provides end-of-chapter programming pitfalls commonly experienced by learners.
Provides a quick syntax reference at the end of each chapter that summarises the C syntax covered in the chapter. This is a useful resource for experienced programmers as well as for learners.
Provides end-of-chapter exercises, allowing the learner to test and re-enforce their understanding of C.
Is suitable for students new to programming and those familiar with some other language, such as C or Basic, and who now wish to learn C.
Is accompanied by a web site containing the example programs, solutions to selected exercises, frequently asked questions and links to other useful resources.
Typographic Conventions
The line numbers to the left of the program examples are for reference purposes only and are not part of the C language.
When a new term is introduced it is in italic type.
C statements, keywords, program variables and values are in this font.
This font is used in examples to show values that should be typed at the keyboard by the user.

Paul Kelly
Dublin Institute of Technology


前 言

针对国内大学逐渐与国际接轨的发展趋势,英语教学和双语教学逐渐被人们重视起来。一方面,在教育部的大力支持下,许多课程建设成了教育部双语教学示范课程,但是这些课程大多采用英文原版教材,而面向双语教学的双语版教材在国内实属罕见。另一方面,以国际化、工业化为办学理念,注重国际化、工业化人才培养的国家示范软件学院的部分课程还邀请了一些外籍教师进行全英语授课,但是由于目前国内学生的英语水平参差不齐,导致全英语授课的教学效果不是非常理想。本书正是在此背景和需求下应运而生的。
本书的第一作者是爱尔兰都柏林工业大学(DIT)的高级讲师Paul Kelly。Kelly 老师长期从事程序设计类课程的教学工作,在程序设计类课程教学方面教学实践经验丰富,在国外已先后出版多本程序设计语言类书籍。自哈尔滨工业大学软件示范学院成立以来,一直作为外聘教师在哈尔滨工业大学软件示范学院从事程序设计方面的教学工作,对中国学生比较了解,针对其在教学中发现的问题,即初学者面临着既不熟悉专业术语和基本概念、又不熟悉英文专业词汇的双重困难,提出了出版英汉对照混排式双语版教材的思路,帮助学生在克服语言障碍的同时,能够更快更好地熟悉和掌握计算机程序设计方面的基础知识,为国内的双语教学提供了一种最佳的解决方案。
本书内容共分14 章,由浅入深、全面介绍C程序设计方法,既适合于以C作为入门语言的读者,也适合于学习过其他程序设计语言后想再学习C 的读者。本书的特点如下:
1. 使用非常实用和贴近生活的例子以及图示来通俗易懂地讲解难于理解的概念,在介绍面向对象程序设计方法的同时,尤其强调读者的亲自参与意识。
2. 采用案例驱动和循序渐进方式,从一个应用实例出发,先利用现有知识编写出一个较为简单的程序,然后在此基础上,不断扩充,在扩充的过程中引入一个新的概念和知识点,逐渐编写出一个较大的程序,每个例程都有详细的讲解。有的章以一个例子为中心贯穿始终讲解,后面章节的例子还会重用已有的部分程序代码,前后章节之间既有内容上的联系,也有例程上的联系。
3. 重点内容和段落给出了中文注解。
4. 每章后面都有一节介绍初学者编程时易犯的错误,以帮助初学者在程序设计中避免这些错误。
5. 每章后面都有快速语法索引,总结本章内容,便于读者快速查询相关内容。
6. 每章后面都有精心设计的、有趣的习题,便于读者测试和强化对相关内容的理解。
7. 有相关的教学网站(华信教育资源网,网址http:www.hxedu.com.cn),方便读者下载示例的源代码、部分习题解答及教学课件等资料。
本书由在计算机程序设计方面有着丰富教学和实践经验的中外作者合作编写。本书是国内首次出版的中英文对照混排式双语版教材的更新版,适合低年级的学生对照阅读,既方便初学者熟悉相关概念和内容,也便于母语不是英语的读者熟悉英文的专业词汇,尤其适合作为双语教学示范课程的教材。
Paul Kelly是一位治学非常严谨的教师,本书的第二作者苏小红在与他合著过程中,经常为一个细节内容的编写进行反复交流与讨论,书稿完成后又进行了多次校对工

 

 

書城介紹  | 合作申請 | 索要書目  | 新手入門 | 聯絡方式  | 幫助中心 | 找書說明  | 送貨方式 | 付款方式 香港用户  | 台灣用户 | 海外用户
megBook.com.tw
Copyright (C) 2013 - 2024 (香港)大書城有限公司 All Rights Reserved.