图书介绍

C程序设计基础教程 英文版2025|PDF|Epub|mobi|kindle电子书版本百度云盘下载

C程序设计基础教程 英文版
  • 亚沙万P·卡内特卡编著 著
  • 出版社: 北京:电子工业出版社
  • ISBN:9787121092671
  • 出版时间:2009
  • 标注页数:449页
  • 文件大小:22MB
  • 文件页数:467页
  • 主题词:C语言-程序设计-教材-英文

PDF下载


点此进入-本书在线PDF格式电子书下载【推荐-云解压-方便快捷】直接下载PDF格式图书。移动端-PC端通用
种子下载[BT下载速度快]温馨提示:(请使用BT下载软件FDM进行下载)软件下载地址页直链下载[便捷但速度慢]  [在线试读本书]   [在线获取解压码]

下载说明

C程序设计基础教程 英文版PDF格式电子书版下载

下载的文件为RAR压缩包。需要使用解压软件进行解压得到PDF格式图书。

建议使用BT下载工具Free Download Manager进行下载,简称FDM(免费,没有广告,支持多平台)。本站资源全部打包为BT种子。所以需要使用专业的BT下载软件进行下载。如BitComet qBittorrent uTorrent等BT下载工具。迅雷目前由于本站不是热门资源。不推荐使用!后期资源热门了。安装了迅雷也可以迅雷进行下载!

(文件页数 要大于 标注页数,上中下等多册电子书除外)

注意:本站所有压缩包均有解压码: 点击下载压缩包解压工具

图书目录

Chapter 1:Getting Started1

1.1 Whatis C2

1.2 Getting Started with C3

1.2.1 The C Character Set3

1.2.2 Constants,Variables and Keywords4

1.2.3 Types of C Constants4

1.2.4 Rules for Constructing Integer Constants5

1.2.5 Rules for Constructing Real Constants5

1.2.6 Rules for Constructing Character Constants6

1.2.7 Types of C Variables6

1.2.8 Rules for Constructing Variable Names7

1.2.9 C Keywords7

1.3 The First C Program8

1.4 Compilation and Execution11

1.5 Receiving Input12

1.6 C Instructions14

1.6.1 Type Declaration Instruction14

1.6.2 Arithmetic Instruction15

1.6.3 Integer and Float Conversions17

1.6.4 Type Conversion in Assignments17

1.6.5 Hierarchy of Operations19

1.6.6 Associativity of Operators20

1.7 Control Instructions in C22

1.8 Summary22

1.9 Exercise23

Chapter 2:The Decision Control Structure30

2.1 Decisions!Decisions!30

2.2 The if Statement31

2.2.1 The Real Thing33

2.2.2 Multiple Statements within if34

2.3 The if-else Statement35

2.3.1 Nested if-elses37

2.3.2 Forms of if38

2.4 Use of Logical Operators39

2.4.1 The else if Clause41

2.4.2 The!Operator44

2.4.3 Hierarchy of Operators Revisited45

2.5 A Word of Caution45

2.6 The Conditional Operators47

2.7 Summary48

2.8 Exercise48

Chapter3:The Loop Control Structure60

3.1 Loops60

3.2 The while Loop61

3.2.1 Tips and Traps62

3.2.2 More Operators65

3.3 The for Loop67

3.3.1 Nesting of Loops70

3.3.2 Multiple lnitialisations in the for Loop71

3.4 The Odd Loop72

3.5 The break Statement73

3.6 The continue Statement74

3.7 The do-while Loop75

3.8 Summary76

3.9 Exercise77

Chapter4:The Case Control Structurs84

4.1 Decisions Using switch84

4.1.1 The Tips and Traps87

4.2 switch Versus if-else Ladder90

4.3 The goto Keyword90

4.4 Summary92

4.5 Exercise92

Chapter 5:Functions & Pointers97

5.1 What is a Function97

5.1.1 Why Use Functions102

5.2 Passing Values between Functions103

5.3 Scope Rule of Functions106

5.4 Calling Convention106

5.5 One Dicey Issue107

5.6 Advanced Features of Functions108

5.6.1 Return Type of Function108

5.6.2 Call by Value and Call by Reference109

5.6.3 An Introduction to Pointers109

5.6.4 Pointer Notation109

5.6.5 Back to Function Calls113

5.6.6 Conclusions115

5.6.7 Recursion116

5.6.8 Recursion and Stack119

5.7 Adding Functions to the Library120

5.8 Summary122

5.9 Exercise123

Chapter6:Data Types Revisited132

6.1 Integers,long and short132

6.2 Integers,signed and unsigned134

6.3 Chars,signed and unsigned134

6.4 Floats and Doubles135

6.5 A Few More Issues137

6.6 Storage Classes in C138

6.6.1 Automatic Storage Class138

6.6.2 Register Storage Class140

6.6.3 Static Storage Class141

6.6.4 External Storage Class142

6.6.5 A Few Subtle Issues144

6.6.6 Which to Use When145

6.7 Summary146

6.8 Exercise146

Chapter 7:The C Preprocessor152

7.1 Features of C Preprocessor152

7.2 Macro Expansion153

7.2.1 Macros with Arguments155

7.2.2 Macros versus Functions158

7.3 File Inclusion158

7.4 Conditional Compilation159

7.5 #if and #elif Directives162

7.6 Miscellaneous Directives163

7.6.1 #undef Directive163

7.6.2 #pragma Directive163

7.7 The Build Process165

7.7.1 Preprocessing166

7.7.2 Compilation166

7.7.3 Assembling166

7.7.4 Linking167

7.7.5 Loading168

7.8 Summary168

7.9 Exercise169

Chapter 8:Arrays172

8.1 What are Arrays172

8.1.1 A Simple Program Using Array173

8.2 More on Arrays175

8.2.1 Array Initialisation175

8.2.2 Bounds Checking176

8.2.3 Passing Array Elements to a Function177

8.3 Pointers and Arrays178

8.3.1 Passing an Entire Array to a Function183

8.3.2 The Real Thing183

8.4 Two Dimensional Arrays184

8.4.1 Initialising a 2-Dimensional Array185

8.4.2 Memory Map of a 2-Dimensional Array186

8.4.3 Pointers and 2-Dimensional Arrays186

8.4.4 Pointer to an Array188

8.4.5 Passing 2-D Array to a Function189

8.5 Array of Pointers192

8.6 Three-Dimensional Array193

8.7 Summary194

8.8 Exercise195

Chapter 9:Puppetting On Strings210

9.1 What are Strings210

9.2 More about Strings211

9.3 Pointers and Strings214

9.4 Standard Library String Functions215

9.4.1 strlen()215

9.4.2 strcpy()217

9.4.3 strcat()219

9.4.4 strcmp()219

9.5 Two-Dimensional Array of Characters220

9.6 Array of Pointers to Strings222

9.7 Limitation of Array of Pointers to Strings224

9.7.1 Solution225

9.8 Summary226

9.9 Exercise226

Chapter 10:Structures231

10.1 Why Use Structures231

10.1.1 Declaring a Structure233

10.1.2 Accessing Structure Elements235

10.1.3 How Structure Elements are Stored235

10.2 Array of Structures236

10.3 Additional Features of Structures237

10.4 Uses of Structures243

10.5 Summary244

10.6 Exercise244

Chapter 11:Console Input/Output249

11.1 Types of I/O249

11.2 Console I/O Functions250

11.2.1 Formatted Console I/O Functions250

11.2.2 sprintf() and sscanf() Functions256

11.2.3 Unformatted Console I/O Functions256

11.3 Summary259

11.4 Exercise259

Chapter 12:File Input/Output263

12.1 Data Organization264

12.2 File Operations264

12.2.1 Opening a File265

12.2.2 Reading from a File266

12.2.3 Trouble in Opening a File266

12.2.4 Closing the File267

12.3 Counting Characters,Tabs,Spaces,268

12.4 A File-copy Program269

12.4.1 Wriring to a File269

12.5 File Opening Modes270

12.6 Siring(line)I/O in Files270

12.6.1 The Awkward Newline272

12.7 Record I/O in Files272

12.8 Text Files and Binary Files275

12.9 Record I/O Revisited277

12.10 Database Management279

12.11 Low Level Disk I/O283

12.11.1 A Low Level File-copy Program283

12.12 I/O Under Windows286

12.13 Summary286

12.14 Exercise287

Chapter 13:More Issues In Input/Output294

13.1 Using argc and argv294

13.2 Detecting Errors in Reading/Writing297

13.3 Standard I/O Devices298

13.4 I/O Redirection299

13.4.1 Redirecting the Output299

13.4.2 Redirecting the Input300

13.4.3 Both Ways at Once301

13.5 Summary301

13.6 Exercise302

Chapter 14:Operations On Bits303

14.1 Bitwise Operators303

14.1.1 One's Complement Operator305

14.1.2 Right Shift Operator306

14.1.3 Left Shift Operator307

14.1.4 Bitwise AND Operator310

14.1.5 Bitwise OR Operator313

14.1.6 Bitwise XOR Operator313

14.2 The showbits() Function314

14.3 Hexadecimal Numbering System315

14.4 Relation between Binary and Hex316

14.5 Summary317

14.6 Exercise317

Chapter 15:Miscellaneous Features320

15.1 Enumerated Data Type320

15.1.1 Uses of Enumerated Data Type321

15.1.2 Are Enums Necessary323

15.2 Renaming Data types with typedef323

15.3 Typecasting325

15.4 Bit Fields326

15.5 Pointers to Functions327

15.6 Functions Returning Pointers329

15.7 Functions with Variable Number of Arguments330

15.8 Unions332

15.8.1 Union of Structures336

15.8.2 Utility of Unions337

15.9 The volatile Qualifier338

15.10 Summary339

15.11 Exercise339

Chapter 16:C Under Windows342

16.1 Which Windows343

16.2 Salient Features of Windows Programming343

16.2.1 Powerful API Functions344

16.2.2 Sharing of Functions344

16.2.3 Consistent Look and Feel344

16.2.4 Hardware Independent Programming345

16.2.5 Event Driven Programming Model345

16.3 Obvious Programming Differences347

16.3.1 Integers347

16.3.2 Heavy Use of typedef347

16.3.3 Size of Pointers348

16.4 The First Windows Program349

16.5 Hungarian Notation351

16.6 Role of the Message Box351

16.7 Here Comes the window352

16.8 More Windows354

16.9 A Real-World Window355

16.9.1 Creation and Displaying of Window356

16.9.2 Interaction with Window356

16.9.3 Reacting to Messages357

16.10 Program Instances359

16.11 Summary359

16.12 Exercise360

Chapter 17:Graphics Under Windows361

17.1 Graphics as of Now361

17.2 Device Independent Drawing362

17.3 Hello Windows362

17.4 Drawing Shapes365

17.5 Types of Pens367

17.6 Types of Brushes369

17.6.1 Code and Resources371

17.7 Freehand Drawing,the Paintbrush Style371

17.7.1 Capturing the Mouse373

17.8 Device Context,a Closer Look374

17.9 Displaying a Bitmap375

17.10 Animation at Work377

17.10.1 WM_CREATE and OnCreate()379

17.10.2 WM_TIMER and OnTimer()380

17.10.3 A Few More Points380

17.11 Windows.the Endless World381

17.12 Summary381

17.13 Exercise382

Chapter 18:Internet Programming383

18.1 Network Communication383

18.2 Packets and Sockets385

18.3 Before We Start385

18.3.1 Protocols385

18.3.2 IP Addresses386

18.3.3 Port Numbers386

18.3.4 Byte Ordering387

18.4 Getting Started387

18.5 What's The Time Now389

18.5.1 Creation of Socket392

18.5.2 Sending Data to a Time Server392

18.5.3 Receiving Date and Time393

18.6 Communicating with Whois Server393

18.7 Give Me the Home Page396

18.8 Sending and Receiving Emails397

18.9 Two-Way Communication405

18.10 Summary410

18.11 Exercise410

Chapter 19:C Under Linux411

19.1 What is Linux411

19.2 C Programming Under Linux412

19.3 The'Hello Linux'Program412

19.4 Processes413

19.5 Parent and Child Processes414

19.6 More Processes417

19.7 Zombies and Orphans418

19.8 One Interesting Fact419

19.9 Summary420

19.10 Exercise420

Chapter 20:More Linux Programming422

20.1 Communication using Signals422

20.2 Handling Multiple Signals424

20.3 Registering a Common Handler425

20.4 Blocking Signals426

20.5 Event Driven Programming428

20.6 Where Do You Go From Here431

20.7 Summary431

20.8 Exercise432

Appendix A:Precedence Table433

Appendix B:Library Functions434

Appendix C:Chasing The Bugs440

Appendix D:ASCII Chart444

Appendix E:Helper.h File447

Appendix F:Linux Installation448

热门推荐