C++ in 24 Hours, Sams Teach Yourself
Home > Computing and Information Technology > Computer programming / software engineering > Programming and scripting languages: general > C++ in 24 Hours, Sams Teach Yourself: (Sams Teach Yourself)
C++ in 24 Hours, Sams Teach Yourself: (Sams Teach Yourself)

C++ in 24 Hours, Sams Teach Yourself: (Sams Teach Yourself)

|
     0     
5
4
3
2
1




Out of Stock


Notify me when this book is in stock
About the Book

Sams Teach Yourself C++ in 24 Hours is a hands-on guide to the C++ programming language. Readers are provided with short, practical examples that illustrate key concepts, syntax, and techniques. Using a straightforward 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 new in C++14. 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 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 and classes Add rich functionality with templates and lambda expressions Debug your programs for flawless code Learn exception and error-handling techniques Put to use the new features in C++14, the latest version of the language Create and use templates Control program flow with loops Store information in arrays and strings Declare and use pointers Use operator overloading Extend classes with inheritance Use polymorphism and derived classes Employ object-oriented analysis and design

Table of Contents:
 Introduction     1 PART I:  BEGINNING C++ Hour 1:  Writing Your First Program     5 Using C++     5 Compiling and Linking the Source Code     6 Creating Your First Program     7 Hour 2:  Organizing the Parts of a Program     13 Reasons to Use C++     13 The Parts of a Program     17 Comments     19 Functions     20 Hour 3:  Creating Variables and Constants     27 What Is a Variable?     27 Defining a Variable     32 Assigning Values to Variables     33 Using Type Definitions     34 Constants     36 Auto-Typed Variables     38 Hour 4:  Using Expressions, Statements, and Operators     43 Statements     43 Expressions     44 Operators     45 If-Else Conditional Statements     52 Logical Operators     56 Tricky Expression Values     58 Hour 5:  Calling Functions     61 What Is a Function?     61 Declaring and Defining Functions     61 Using Variables with Functions     64 Function Parameters     67 Returning Values from Functions     68 Default Function Parameters     70 Overloading Functions     72 Auto-Typed Return Values     73 Hour 6:  Controlling the Flow of a Program     79 Looping     79 while Loops     79 do-while Loops     83 for Loops     84 switch Statements     89 Hour 7:  Storing Information in Arrays and Strings     95 What Is an Array?     95 Writing Past the End of Arrays     97 Initializing Arrays     98 Multidimensional Arrays     99 Character Arrays     102 Copying Strings     104 Reading Arrays with Foreach Loops     105 PART II:  CLASSES Hour 8:  Creating Basic Classes     109 What Is a Type?     109 Creating New Types     110 Classes and Members     110 Accessing Class Members     112 Private Versus Public Access     112 Implementing Member Functions     114 Creating and Deleting Objects     116 Hour 9:  Moving into Advanced Classes     123 const Member Functions     123 Interface Versus Implementation     124 Organizing Class Declarations and Function Definitions     124 Inline Implementation     124 Classes with Other Classes as Member Data     127 PART III:  MEMORY MANAGEMENT Hour 10:  Creating Pointers     135 Understanding Pointers and Their Usage     135 The Stack and the Heap     145 Null Pointer Constant     150 Hour 11:  Developing Advanced Pointers     155 Creating Objects on the Heap     155 Deleting Objects     155 Accessing Data Members Using Pointers     157 Member Data on the Heap     158 The this Pointer     160 Stray or Dangling Pointers     161 const Pointers     162 const Pointers and const Member Functions     163 Hour 12:  Creating References     167 What is a Reference?     167 Creating a Reference     167 Using the Address of Operator on References     169 What Can Be Referenced?     171 Null Pointers and Null References     172 Passing Function Arguments by Reference     172 Understanding Function Headers and Prototypes     177 Returning Multiple Values     177 Hour 13:  Developing Advanced References and Pointers     183 Passing by Reference for Efficiency     183 Passing a const Pointer     186 References as an Alternative to Pointers     189 When to Use References and When to Use Pointers     191 References to Objects Not in Scope     191 Returning a Reference to an Object on the Heap     192 Pointer, Pointer, Who Has the Pointer?     195 PART IV:  ADVANCED C++ Hour 14:  Calling Advanced Functions     199 Overloaded Member Functions     199 Using Default Values     201 Initializing Objects     203 The Copy Constructor     204 Compile-Time Constant Expressions     208 Hour 15:  Using Operator Overloading     213 Operator Overloading     213 Conversion Operators     224 PART V:  INHERITANCE AND POLYMORPHISM Hour 16:  Extending Classes with Inheritance     231 What Is Inheritance?     231 Private Versus Protected     234 Constructors and Destructors     236 Passing Arguments to Base Constructors     239 Overriding Functions     244 Hour 17:  Using Polymorphism and Derived Classes     251 Polymorphism Implemented with Virtual Member Functions     251 How Virtual Member Functions Work     256 Hour 18:  Making Use of Advanced Polymorphism     267 Problems with Single Inheritance     267 Abstract Data Types     271 PART VI:  SPECIAL TOPICS Hour 19:  Storing Information in Linked Lists     287 Linked Lists and Other Structures     287 Linked List Case Study     289 Linked Lists as Objects     298 Hour 20:  Using Special Classes, Functions, and Pointers     301 Static Member Data     301 Static Member Functions     303 Containment of Classes     305 Friend Classes and Functions     312 Hour 21:  Using New Features of C++14     331 The Newest Version of C++     331 Using auto in Function Return Types     332 Improved Numeric Literals     334 The constexpr Keyword     335 Lambda Expressions     338 Hour 22:  Employing Object-Oriented Analysis and Design     343 The Development Cycle     343 Simulating an Alarm System     344 PostMaster:  A Case Study     350 Hour 23:  Creating Templates     373 What Are Templates?     373 Instances of the Template     374 Template Definition     374 Using Template Items     381 Hour 24:  Dealing with Exceptions and Error Handling     391 Bugs, Errors, Mistakes, and Code Rot     391 Handling the Unexpected     392 Exceptions     393 Using try and catch Blocks     397 Writing Professional-Quality Code     403 PART VII:  APPENDIXES Appendix A:  Binary and Hexadecimal     411 Other Bases     412 Around the Bases     412 Hexadecimal     416 Appendix B:  Glossary     419 Appendix C:  This Book’s Website     427 Appendix D:  Using the MinGW C++ Compiler on Windows     429 Downloading MinGW-w64     429 Setting the Path Environment Variable     431 Testing Your Installation     433 Index     439


Best Sellers


Product Details
  • ISBN-13: 9780134192543
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Addison Wesley
  • Language: English
  • Series Title: Sams Teach Yourself
  • ISBN-10: 0134192540
  • Publisher Date: 02 Aug 2016
  • Binding: Digital download
  • No of Pages: 480
  • Weight: 1 gr


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
C++ in 24 Hours, Sams Teach Yourself: (Sams Teach Yourself)
Pearson Education (US) -
C++ in 24 Hours, Sams Teach Yourself: (Sams Teach Yourself)
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

C++ in 24 Hours, Sams Teach Yourself: (Sams Teach Yourself)

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals

    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!