编辑推荐

在计算机发展的历史上,没有哪一种程序设计语言像C语言这样应用广泛。《经典原版书库:C程序设计语言》(英文版)(第2版)是C语言的设计者之一DennisM.Ritchie和著名计算机科学家BrianW.Kernighan合著的一本介绍C语言的专家经典著作。我们现在见到的大量论述C语言程序设计的教材和专著均以此书为蓝本。

内容简介

《经典原版书库:C程序设计语言》(英文版)(第2版)第1版中介绍的C语言成为后来广泛使用的C语言版本——标准C的基础。人们熟知的“hello,World"程序就是由《经典原版书库:C程序设计语言》(英文版)(第2版)首次引入的。现在,这一程序已经成为众多程序设计语言入门的一课。第2版根据1987年制定的ANSIC标准做了适当的修订,引入了新的语言形式,并增加了新的示例。通过简洁的描述、典型的示例,作者全面、系统、准确地讲述了C语言的各个特性以及程序设计的基本方法。对于计算机从业人员来说,《经典原版书库:C程序设计语言》(英文版)(第2版)是一本必读的程序设计语言方面的参考书。

作者简介

BrianW.Kernighan贝尔实验室计算科学研究中心高级研究人员,著名的计算机科学家。他参加了UNIX系统、C语言、AWK语言和许多其他系统的开发,同时出版了许多在计算机领域具有影响的著作,如《TheCProguammingLanguage》、《TheElementsofProgrammingStyle》等。

目录

Introduction
Chapter1.ATutorialIntroduction
1.1GettingStarted
1.2VariablesandArithmeticExpressions
1.3TheForStatement
1.4SymbolicConstants
1.5CharacterInputandOutput
1.6Arrays
1.7Functions
1.8Arguments——CallbyValue
1.9CharacterArrays
1.10ExternalVariablesandScope

Chapter2.Types,Operators,andExpressions
2.1VariableNames
2.2DataTypesandSizes
2.3Constants
2.4Declarations
2.5ArithmeticOperators
2.6RelationalandLogicalOperators
2.7TypeConversions
2.8IncrementandDecrementOperators
2.9BitwiseOperators
2.10AssignmentOperatorsandExpressions
2.11ConditionalExpressions
2.12PrecedenceandOrderofEvaluation

Chapter3.ControlFlow
3.1StatementsandBlocks
3.2If-Else
3.3Else-If
3.4Switch
3.5Loops——WhileandFor
3.6Loops-Do-while
3.7BreakandContinue
3.8GotoandLabels

Chapter4.FunctionsandProgramStructure
4.1BasicsofFunctions
4.2FunctionsReturningNon-integers
4.3ExternalVariables
4.4ScopeRules
4.5HeaderFiles
4.6StaticVariables
4.7RegisterVariables
4.8BlockStructure
4.9Initialization
4.10Recursion
4.11TheCPreprocessor

Chapter5.PointersandArrays
5.1PointersandAddresses
5.2PointersandFunctionArguments
5.3PointersandArrays
5.4AddressArithmetic
5.5CharacterPointersandFunctions
5.6PointerArrays;PointerstoPointers
5.7Multi-dimensionalArrays
5.8InitializationofPointerArrays
5.9Pointersvs.Multi-dimensionalArrays
5.10Command-lineArguments
5.11PointerstoFunctions
5.12ComplicatedDeclarations

Chapter6.Structures
6.1BasicsofStructures
6.2StructuresandFunctions
6.3ArraysofStructures
6.4PointerstoStructures
6.5Self-referentialStructures
6.6TableLookup
6.7Typedef
6.8Unions
6.9Bit-fields

Chapter7.InputandOutput
7.1StandardInputandOutput
7.2FormattedOutput——Printf
7.3Variable-lengthArgumentLists
7.4FormattedInput-Scanf
7.5FileAccess
7.6ErrorHandling——StderrandExit
7.7LineInputandOutput
7.8MiscellaneousFunctions

Chapter8.TheUNIXSystemInterface
8.1FileDescriptors
8.2LowLevelI/O-ReadandWrite
8.3Open,Creat,Close,Unlink
8.4RandomAccess——Lscek
8.5Example——AnImplementationofFopenandGetc
8.6Example——ListingDirectories
8.7Example——AStorageAllocator

AppendixA.ReferenceMarital
AIIntroduction
A2LexicalConventions
A3SyntaxNotation
A4MeaningofIdentifiers
A5ObjectsandLvalues
A6Conversions
A7Expressions
A8Declarations
A9Statements
AI10ExternalDeclarations
A11ScopeandLinkage
A12Preprocessing
A13Grammar

AppendixB.StandardLibrary
B1InputandOutput:〈stdio.h〉
B2CharacterClassTests:〈ctype.h〉
B3StringFunctions:〈string.h〉
B4MathematicalFunctions:〈math.h〉
B5UtilityFunctions:〈stdlib.h〉
B6Diagnostics:

其他推荐