双语版C程序设计-(第2版)

本书特色

[

本书由在计算机程序设计方面有着丰富教学和实践经验的中外作者合作编写。共14章内容,由浅入深全面介绍C程序设计方法,包括基本数据类型和基本输出输出方式、各种控制结构和语句、指针和数组、字符串、函数、结构、文件输入和输出等内容,*后讨论了C预处理器。本书所有实例经过精心挑选、贴近生活,尤其强调读者的亲自参与意识。每章都为初学者提供了常见错误分析,所选习题可提高读者上机编程的兴趣。本书采用中英文对照混排,既方便初学者熟悉相关概念和内容,也便于英文非母语的读者熟悉英文专业词汇。

]

内容简介

[

国内首次出版的中英文对照混排式双语版C 程序设计教材的姐妹篇。
内容通俗易懂,例子贴近生活,尤其强调读者的亲自参与意识。
每章都为初学者提供了常见错误分析,每章结尾有很多有趣的习题。

]

作者简介

[

Paul Kelly,爱尔兰都柏林工业大学(DIT)的高级讲师Paul Kelly。Kelly 老师长期从事程序设计类课程的教学工作,在程序设计类课程教学方面教学实践经验丰富,在国外已先后出版多本程序设计语言类书籍。苏小红,哈尔滨工业大学计算机学院博士生导师,计算机应用技术专家,研究领域主要是色彩匹配,信息融合,空间计算,人工神经网络,进化算法,计算机图形学,灰色预测,彩色图像处理等。

]

目录

Chapter One Introduction to C(引言) 11.1 Brief history of C(C 语言简史) 11.2 Why programmers use C(为什么程序员爱用C语言) 11.2.1 C is portable 11.2.2 C is a structured programming language 21.2.3 C is efficient 21.2.4 C is flexible 21.2.5 C is powerful 21.2.6 C is concise 31.3 Developing a C program(开发C 程序) 31.4 Suggestions for learning C programming(学习C 语言程序设计的建议) 4Chapter Two C Data Types(C数据类型) 62.1 Constants(常量) 62.2 Variables(变量) 62.3 Simple output to the screen(简单的屏幕输出) 82.4 Comments(注释) 92.5 Data types(数据类型) 102.5.1 Short integer data types 102.5.2 Long integer data types 112.5.3 Unsigned integer data types 112.5.4 Double floating-point data type 112.6 Data type sizes(数据类型的大小) 11Programming pitfalls 13Quick syntax reference 13Exercises 14Chapter Three Simple Arithmetic Operations and Expressions(简单的算术运算和表达式) 163.1 C operators(C 运算符) 163.1.1 The assignment operator 163.1.2 Arithmetic operators 173.1.3 Increment and decrement operators 193.1.4 Combined operators 213.2 Operator precedence(运算符优先级) 223.3 Type conversions and casts(类型转换与强制类型转换) 24Programming pitfalls 26Quick syntax reference 27Exercises 27Chapter Four Keyboard Input and Screen Output(键盘输入和屏幕输出) 304.1 Simple keyboard input(简单的键盘输入) 304.2 Using a width and precision specification in printf() [在函数printf( )中使用域宽和精度说明] 314.3 Single-character input and output(单个字符的输入和输出) 33Programming pitfalls 35Quick syntax reference 35Exercises 36Chapter Five Control Statements: if and switch(控制语句:if 和switch) 385.1 The if statement(if 语句) 385.2 The if-else statement(if-else 语句) 395.3 Logical operators(逻辑运算符) 415.4 Nested if statements(嵌套的if 语句) 425.5 The switch statement(switch 语句) 445.6 The conditional operator ?:(条件运算符) 46Programming pitfalls 47Quick syntax reference 48Exercises 48Chapter Six Iterative Control Statements: while, do-while, and for     (循环控制语句:while、do-while和for) 516.1 The while statement(while 语句) 516.2 The do-while loop(do-while 循环) 526.3 The for statement(for 语句) 546.4 Nested loops(嵌套的循环) 56Programming pitfalls 58Quick syntax reference 59Exercises 59Chapter Seven Arrays(数组) 617.1 Introduction to arrays(引言) 617.2 Initialising arrays(数组初始化) 667.3 Two-dimensional arrays(二维数组) 677.4 Initialising two-dimensional arrays(二维数组的初始化) 687.5 Multi-dimensional arrays(多维数组) 69Programming pitfalls 70Quick syntax reference 70Exercises 70Chapter Eight Pointers(指针) 738.1 Variable addresses(变量的地址) 738.2 Pointer variables(指针变量) 748.3 The dereference operator *(解引用运算符*) 758.4 Why use pointers? (为什么使用指针) 76Programming pitfalls 77Quick syntax reference 77Exercises 77Chapter Nine Pointers and Arrays(指针和数组) 799.1 Pointers and one-dimensional arrays(指针和一维数组) 799.2 Pointers and multi-dimensional arrays(指针和多维数组) 819.3 Dynamic memory allocation(动态内存分配) 829.3.1 The malloc() function 829.3.2 The calloc() function 859.3.3 The realloc() function 869.3.4 Allocating memory for multi-dimensional arrays 87Programming pitfalls 90Quick syntax reference 90Exercises 90Chapter Ten Strings(字符串) 9310.1 String literals(字符串) 9310.2 Long character strings(长字符串) 9410.3 Strings and arrays(字符串和数组) 9410.4 Displaying a string(显示一个字符串) 9510.5 The puts() function[puts( )函数] 9710.6 The gets() function[gets( )函数] 9810.7 Accessing individual characters of a string(访问字符串中的单个字符) 9910.8 Assigning a string to a pointer (用字符串为字符指针赋值) 10010.9 String functions(字符串处理函数) 10110.9.1 Finding the length of a string 10110.9.2 Copying a string 10210.9.3 String concatenation 10210.9.4 Comparing strings 10210.9.5 Other string functions 10310.10 Converting numeric strings to numbers (数值字符串向数值的转换) 10310.11 Arrays of strings(字符串数组) 105Programming pitfalls 108Quick syntax reference 109Exercises 109Chapter Eleven Functions(函数) 11211.1 Introduction(引言) 11211.2 Function arguments(函数参数) 11411.3 Returning a value from a function (从函数返回一个值) 11611.4 Passing arguments by value (按值传参) 11811.5 Passing arguments by reference(按引用传参) 11911.6 Changing arguments in a function (在函数中改变实参的值) 12011.7 Passing a one-dimensional array to a function (向函数传递一维数组) 12111.8 Passing a multi-dimensional array to a function (向函数传递多维数组) 12311.9 Storage classes(变量的存储类型) 12411.9.1 auto 12411.9.2 static 12511.9.3 extern 12611.9.4 register 12811.10 Command line arguments (命令行参数) 12811.11 Mathematical functions(数学函数) 13011.11.1 Some commonly used trigonometric functions 13011.11.2 Other common mathematical functions 13111.11.3 Pseudo-random number functions 13211.11.4 Some time-related functions 13211.12 Recursion 133Programming pitfalls 136Quick syntax reference 137Exercises 137Chapter Twelve Structures(结构体) 14112.1 Defining a structure(定义结构体) 14112.2 Pointers to structures(结构体指针) 14412.3 Initialising a structure variable (结构体变量的初始化) 14512.4 Passing a structure to a function (向函数传递结构体变量) 14712.5 Nested structures(嵌套的结构体) 14912.6 Including a structure template from a file (从文件中引用结构体模板) 15012.7 The typedef statement (typedef 语句) 15112.8 Arrays of structures(结构体数组) 15212.9 Enumerated data types(枚举数据类型) 158Programming pitfalls 160Quick syntax reference 161Exercises 162Chapter Thirteen File Input and Output(文件的输入和输出) 16513.1 Binary and ASCII (text) files [二进制文件和ASCII(文本)文件] 16513.2 Opening and closing files (文件的打开和关闭) 16613.3 Reading a character from a file using fgetc()   [使用函数fgetc( )从文件中读字符] 16813.4 Writing a character to a file using fputc()    [使用函数fputc( )向文件中写字符] 17013.5 Reading a string of characters from a file using fgets()   [使用函数fgets( )从文件中读字符串] 17113.6 Writing a string of characters to a file using fputs()   [使用函数fputs( )向文件中写字符串] 17213.7 Formatted input-output to a file using fscanf() and fprintf() 173   [使用函数fscanf( )和fprintf( )进行文件的格式化读写] 17313.8 The standard files(标准文件) 17413.9 Block input-output using fread() and fwrite() 175   [使用函数fread( )和fwrite( )进行块读写] 17513.10 Rewinding a file using rewind()[使用函数rewind( )对文件重定位] 17713.11 Random access of files using fseek() [使用函数fseek( )随机访问文件] 17913.12 Finding the position in a file using ftell()   [使用函数ftell( )查找文件的当前位置] 18413.13 Deleting a file using remove()[使用函数remove( )删除文件] 184Programming pitfalls 185Quick syntax reference 186Exercises 187Chapter Fourteen The C Preprocessor(C编译预处理) 19014.1 Including files(包含文件) 19014.2 Defining macros(定义宏) 19114.3 Macro parameters(带参数的宏) 19214.4 Macros and functions(宏和函数) 19414.5 Some useful macros(一些有用的宏) 19514.6 Conditional directive

封面

双语版C程序设计-(第2版)

书名:双语版C程序设计-(第2版)

作者:保罗.凯利

页数:220

定价:¥45.0

出版社:电子工业出版社

出版日期:2017-03-01

ISBN:9787121305559

PDF电子书大小:141MB 高清扫描完整版

百度云下载:http://www.chendianrong.com/pdf

发表评论

邮箱地址不会被公开。 必填项已用*标注