1. 首页
  2. 编程语言
  3. C
  4. C primer plus

C primer plus

上传者: 2019-09-26 14:41:15上传 PDF文件 500kb 热度 24次
C primer plus 6 editionDeveloper's LibraryESSENTIAL REFERENCES FOR PROGRAMMING PROFESSIONALSDeveloper's library books are designed to provide practicing programmers with unique,high-quality references and tutorials on the programming languages and technologiesthey use in their daily workall books in the Developer's Library are written by expert technology practitioners whoare especially skilled at organizing and presenting information in a way that's usefulfor other programmersKey titles include some of the best, most widely acclaimed books within theirtopic areasPHP mysQl web DevelopmentPython Essential ReferenceLuke Welling laura ThomsonDavid beazleyISBN9780-67232916-6ISBN-13:978-0-672-32978-4MySOIPostgresQlPaul duboisKorry douglasISBN-13:978-0-32183387-7ISBN-13:978-0-672-32756-8Linux Kernel DeveloprnentC++ primer plusStephISBN-13:978-0-672-32946-3ISBN-13:978-0-321-77640-2Devcloper's Library books arc available in print and in clectronic formats at most retailand online bookstores, as well as by subscription from Safari Books Online at safariinformit. comDevelopersibrarynformit. com/devlibrarywww.allitebooks.coC Primer plusSixth editionStephen PrataA Addison-WesleyUpper Saddle river,NJ· Boston· Indianapolis· San franciscoNew york· Toronto· Montreal· London· Munich· Paris· MadridCape Town· Sydney· Tokyo· Singapore· Mexico citywww.allitebooks.comC Primer plusAcquisitions EditorSixth EditionMark TaberCopyright o 2014 by Pearson Education, IncManaging EditorAll rights reserved. No part of this book shall be reproduced, stored in a retrievalSandra schroedersystem,or transmitted by any means, electronic, mechanical, photocopying, recording, orProject Editorotherwise, without written permission trom the publisher. No patent liability is assumedMandie frankwith respect to the use of the information contained herein. although every precautionCopy editorhas been taken in the preparation of this book, the publisher and author assume noGenel breezeresponsibility for errors or omissions. Nor is any liability assumed for damages resultingfrom the use of the information contained hereinIndexerJohnna vanhoosesBN13:9780321928429DinsesBN10:0-321928423ProofreaderJess de gabrieleLibrary of Congress Cantrol Number: 2013953007Technical EditorDanny KalevPrinted in the United states of americaPublishingFirst Printing: December 2013CoordinatorVanessa evansTrademarksAll terms mentioned in this book that are known to be trademarks or service marks haveDesignerbeen appropriately capitalized. Pearson cannot attest to the accuracy of this informationChuti PrasertsithUse of a term in this book should not be regarded as affecting the validity of anytrademark or service markJake mcfarlandWarning and disclaimerEvery effort has been made to make this book as complete and as accurate as possiblebut no warranty or fitness is implied. The information provided is on an"as is basisBulk salesPearson offers excellent discounts on this book when ordered in quantity for bulkpurchases or special sales. For more information, please contactU.S. Corporate and government sales1-800-382-3419corpsales@pearsontechgroup.comFor sales outside of the U.s., please contactnternational salesinternational@pearsoned comwww.allitebooks.coContents at a GlancePreface xxvii1 Getting Ready 12 Introducing 273 Data and c 554 Character Strings and Formatted Input/Output 995 Operators, Expressions, and statements 1436C Control Statements: Looping 1897 C Control Statements: Branching and Jumps 2458 Character Input/output and Input validation 2999 Functions 33510 Arrays and Pointers 38311 Character Strings and String Functions 44112 Storage Classes, Linkage, and Memory Management 51113 File Input/Output 56514 Structures and other data forms 60115 Bit Fiddling 67316 The C Preprocessor and the C Library 71117 Advanced Data Representation 773AppendixesA Answers to the Review Questions 861B Reference section 905Index 1005www.allitebooks.comTable of contentsPreface xxvii1 Getting Ready 1Whence c? 1Why C?Design Features 2EfficiencyPortability 3Power and Flexibility 3Programmer Oriented 3Shortcomings 4Whither c? 4What Computers do 5High-level Computer Languages and Compilers 6Language Standards 7The First ANSI/Iso C Standard 8The c99 standard 8The c11 standard 9Using c: Seven Steps 9Step 1: Define the Program Objectives 10Step 2: Design the Program 10Step 3: Write the Code 11Step 4: Compile 11Step 5: Run the program 12Step 6: Test and Debug the Program 12Step 7: Maintain and Modify the Program 13Commentary 13Programming Mechanics 13Object Code Files, Executable Files, and Libraries 14Unix System 16The gNu Compiler Collection and the LLvM project 18Linux Systems 18Command-Line Compilers for the Pc 19Integrated Development Environments(Windows) 19The Windows/Linux Option 21C on the macintosh 21www.allitebooks.coHow This book Is Organized 22Conventions used in this book 22Te22Program Output 23Special Elements 24Summary 24Review Questions 25Programming EXercise 252 Introducing C 27A Simple Example of c 27The Example Explained 28Pass 1: Quick Synopsis 30Pass 2: Program Details 31The Structure of a Simple Program 40Tips on Making Your Programs Readable 41Taking Another Step in Using c 42Documentation 43Multiple Declarations 43Multiplication 43Printing Multiple Values 43While You're at It-Multiple Functions 44Introducing Debugging 46Syntax Errors 46Semantic Errors 47Program State 49Keywords and reserved identifiers 49Key Concepts 50Summary 51Review Questions 51Programming Exercises 533 Data andc 55A Sample Program 55What's New in This Program? 57Data variables and constants 59Data-Type Keywords 59Integer Versus Floating-Point Types 60www.allitebooks.comContentsThe Inte61The Floating-Point Number 61C Data TypesThe int Type 62Other Integer Types 66Using Characters: Type char 71The Bool Type 77Portable Types: stdint. h and inttypesh 77Types float, double, and long double 79Complex and Imaginary Types 85beyond the basic types 85Type Sizes 87Using data Types 88Arguments and Pitfalls 89One More Example: Escape Sequences 91What Happens When the Program Runs 91Flushing the Output 92y Concepts 93Summary 93Review Questions 94Programming EXercises 974 Character Strings and Formatted Input/ output 99Introductory Program 99Character Strings: An Introduction 101Type char Arrays and the Null character 101Using Strings 102The strlen()Function 103Constants and the c Preprocessor 106The const modifier 109Manifest Constants on the job 109Exploring and Exploiting printf( and scanf() 112The printf() Function 112ng printf() 113Conversion Specification Modifiers for printf( 115What does a Conversion Specification Convert? 122Usingwww.allitebooks.coContentsXThe Modifier with printf() and scanf133Usage Tips for printf() 135Key Concepts 136ry137Review Questions 138Programming Exercises 1405 Operators, Expressions, and Statements 143Introducing Loops 144Fundamental operators 146Assignment Operator:= 146Addition Operator: 149Subtraction Operator:- 149Sign Operators:-and+ 150Multiplication Operator: 151Division Operator/ 153Operator Precedence 154Precedence and the order of evaluation 156Some Additional Operators 157The sizeof Operator and the size t Type 158Modulus Operator: 159Increment and Decrement Operators: ++ and160nting164Precedence 165Dont Be too clever 166Expressions and statements 167Expressions 167Statements 168Compound Statements(Blocks) 171ype Conversions 174The Cast Operator 176Function with Arguments 177A Sample Program 180Key Concepts 182Summary 182Review Questions 183Programming Exercises 187www.allitebooks.com
下载地址
用户评论