Sams Teach Yourself C++ in 24 Hours, 5th Edition (Sams Teach Yourself -- Hours)
معرفی کتاب «Sams Teach Yourself C++ in 24 Hours, 5th Edition (Sams Teach Yourself -- Hours)» نوشتهٔ Jesse Liberty; Rogers Cadenhead; ProQuest، منتشرشده توسط نشر Sams ; Pearson Education [distributor در سال 2011. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است.
Starter Kit Includes C++ compiler and IDE for Windows, Mac & Linux In just 24 lessons of one hour or less, you can learn the basics of programming with C++–one of the most popular and powerful programming languages ever created. Using a straightforward, step-by-step approach, this fast and friendly tutorial teaches you everything you need to know, from installing and using a compiler, to debugging the programs you’ve created, to what’s coming in C++0x, the next version of C++. Each lesson builds on what you’ve already learned, giving you a solid understanding of the basics of C++ programming concepts and techniques. Step-by-step instructions carefully walk you through the most common C++ programming tasks Quizzes and Exercises at the end of each chapter help you test yourself to make sure you’re ready to go on Starter Kit software provides everything you need to create and compile C++ programs on any platform–Windows, Mac or Linux Learn how to... Install and use a C++ compiler for Windows, Mac OS X or Linux Build object-oriented programs in C++ Master core C++ concepts such as functions, classes, arrays, and pointers Add rich functionality with linked lists and templates Debug your programs for flawless code Learn exception and error-handling techniques Discover what’s new in C++0x, the next version of C++ Jesse Liberty is the author of numerous books on software development, including best selling titles on C++ and .NET. He is the president of Liberty Associates, Inc. where he provides custom programming, consulting, and training. Rogers Cadenhead is a web application developer who has written many books on Internet-related topics, including Teach Yourself Java in 24 Hours. He maintains this book’s official website at http://cplusplus.cadenhead.org. CD-ROM Includes C++ compiler Visual development environment for Windows, Mac and Linux Source code for the book’s examples Register your book at informit.com/register for convenient access to updates and corrections as they become available. Table of Contents......Page 4 Introduction......Page 14 Using C++......Page 18 Finding a Compiler......Page 19 Compiling and Linking the Source Code......Page 22 Creating Your First Program......Page 23 Reasons to Use C++......Page 28 The Parts of a Program......Page 32 Comments......Page 35 Functions......Page 36 What Is a Variable?......Page 42 Defining a Variable......Page 46 Assigning Values to Variables......Page 48 Using Type Definitions......Page 49 Constants......Page 50 Statements......Page 56 Expressions......Page 57 Operators......Page 58 If-Else Conditional Statements......Page 66 Logical Operators......Page 69 Tricky Expression Values......Page 71 What Is a Function?......Page 76 Declaring and Defining Functions......Page 77 Using Variables with Functions......Page 79 Function Parameters......Page 82 Returning Values from Functions......Page 83 Default Function Parameters......Page 85 Overloading Functions......Page 87 while Loops......Page 94 do-while Loops......Page 98 for Loops......Page 99 switch Statements......Page 103 What Is an Array?......Page 110 Writing Past the End of Arrays......Page 112 Initializing Arrays......Page 113 Multidimensional Arrays......Page 114 Character Arrays......Page 117 Copying Strings......Page 119 What Is a Type?......Page 124 Classes and Members......Page 125 Accessing Class Members......Page 127 Private Versus Public Access......Page 128 Implementing Member Functions......Page 129 Creating and Deleting Objects......Page 131 const Member Functions......Page 138 Organizing Class Declarations and Function Definitions......Page 139 Inline Implementation......Page 140 Classes with Other Classes as Member Data......Page 142 Understanding Pointers and Their Usage......Page 150 The Stack and the Heap......Page 159 Deleting Objects......Page 168 Accessing Data Members Using Pointers......Page 170 Member Data on the Heap......Page 171 The this Pointer......Page 173 Stray or Dangling Pointers......Page 174 const Pointers......Page 175 const Pointers and const Member Functions......Page 176 What Is a Reference?......Page 182 Creating a Reference......Page 183 Using the Address of Operator on References......Page 184 What Can Be Referenced?......Page 186 Passing Function Arguments by Reference......Page 187 Returning Multiple Values......Page 192 Passing by Reference for Efficiency......Page 198 Passing a const Pointer......Page 201 References as an Alternative to Pointers......Page 204 When to Use References and When to Use Pointers......Page 205 Don’t Return a Reference to an Object That Isn’t in Scope!......Page 206 Returning a Reference to an Object on the Heap......Page 207 Pointer, Pointer, Who Has the Pointer?......Page 209 Overloaded Member Functions......Page 214 Using Default Values......Page 216 Initializing Objects......Page 218 The Copy Constructor......Page 219 Operator Overloading......Page 228 Conversion Operators......Page 238 What Is Inheritance?......Page 246 Private Versus Protected......Page 249 Constructors and Destructors......Page 251 Passing Arguments to Base Constructors......Page 254 Overriding Functions......Page 258 Polymorphism Implemented with Virtual Methods......Page 266 How Virtual Member Functions Work......Page 270 Problems with Single Inheritance......Page 282 Abstract Data Types......Page 286 Linked Lists and Other Structures......Page 302 Linked List Case Study......Page 303 Linked Lists as Objects......Page 312 Static Member Data......Page 316 Static Member Functions......Page 318 Containment of Classes......Page 320 Friend Classes and Functions......Page 326 The Next Version of C++......Page 344 Null Pointer Constant......Page 345 Compile-Time Constant Expressions......Page 346 Auto-Typed Variables......Page 348 New for Loop......Page 351 The Development Cycle......Page 356 Simulating an Alarm System......Page 357 PostMaster: A Case Study......Page 364 What Are Templates?......Page 386 Template Definition......Page 387 Using Template Items......Page 394 Bugs, Errors, Mistakes, and Code Rot......Page 402 Handling the Unexpected......Page 403 Exceptions......Page 404 Using try and catch Blocks......Page 408 Writing Professional-Quality Code......Page 413 APPENDIX A: Binary and Hexadecimal......Page 422 Around the Bases......Page 423 Hexadecimal......Page 427 B......Page 432 D......Page 433 H......Page 434 L......Page 435 P......Page 436 S......Page 437 T......Page 438 W......Page 439 APPENDIX C: This Book’s Website......Page 440 A......Page 442 B......Page 443 C......Page 444 E......Page 446 F......Page 447 I......Page 448 L......Page 449 M......Page 451 O......Page 452 P-Q......Page 453 R......Page 454 S......Page 455 U......Page 456 Y-Z......Page 457 The best-selling C++ tutorial - updated for the latest standards, and enhanced to be even more engaging for beginners Teaches C++ as a first programming language, through short, simple chapters that can be completed in no more than an hour each Includes well-crafted, up-to-date, and concise examples, and provides a C++ compiler to test them Contains new and revised material that reflects the forthcoming new C++ language standard Sams Teach Yourself C++ in 24 Hours, 5/e , will help C++ beginners gain true mastery over the latest version of the C++ standard. In this book's straightforward, step-by-step approach, each lesson builds on everything that's come before, helping readers learn C++'s core features and techniques from the ground up. Friendly, accessible, and conversational, this book offers a practical grounding in the language, without ever becoming overwhelming or intimidating. Readers master key concepts, syntax, and techniques through short, practical examples that reflect today's best practices and cross-platform language standards. Coverage includes: organizing C++ programs; using variables, constants, expressions, statements, operators, and functions; controlling program flow; working with arrays and strings; creating basic and advanced classes; managing memory; using operator overloading; working with inheritance, polymorphism, and linked lists; reading and writing IO; employing object-oriented analysis and design; creating templates; handling exceptions and errors; and much more. By the time readers are finished with this book's lessons, they won't just understand C++: they'll be comfortable using it in real-world projects In just 24 lessons of one hour or less, you can learn the basics of programming with C++ — one of the most popular and powerful programming languages ever created.
دانلود کتاب Sams Teach Yourself C++ in 24 Hours, 5th Edition (Sams Teach Yourself -- Hours)
¿
Using a straightforward, step-by-step approach, this fast and friendly tutorial teaches you everything you need to know, from installing and using a compiler, to debugging the programs you’ve created, to what’s coming in C++0x, the next version of C++.
¿
Each lesson builds on what you’ve already learned, giving you a solid understanding of the basics of C++ programming concepts and techniques.
- Step-by-step instructions carefully walk you through the most common C++ programming tasks
- Quizzes and exercises at the end of each chapter help you test yourself to make sure you’re ready to go on
- Starter kit software provides everything you need to create and compile C++ programs on any platform — Windows, Mac or Linux