Sams Teach Yourself C++ in One Hour a Day, 8/e (Paperback)

Siddhartha Rao

買這商品的人也買了...

相關主題

商品描述

In just one hour a day, you’ll have all the skills you need to begin programming in C++. With this complete tutorial, you’ll quickly master the basics, and then move on to more advanced features and concepts. Completely updated for the C++14 standard, with a preview of C++17, this book presents the language from a practical point of view, helping you learn how to use C++ to create faster, simpler, and more efficient C++ applications.

 

  • Master the fundamentals of C++ and object-oriented programming
  • Understand how C++ features help you write compact and efficient code using concepts such as lambda expressions, move constructors, and assignment operators
  • Learn best practices and avoid pitfalls via useful Do’s and Don’ts 
  • Learn the Standard Template Library, including containers and algorithms used in most real-world C++ applications
  • Test your knowledge and expertise with exercises at the end of every lesson 

 

Learn on your own time, at your own pace:

 

  • No previous programming experience required
  • Write fast and powerful C++ programs, compile the source code, and create executable files
  • Learn object-oriented programming concepts such as encapsulation, abstraction, inheritance, and polymorphism
  • Use the Standard Template Library’s algorithms and containers to write feature-rich yet stable C++ applications
  • Learn how automatic type deduction helps simplify C++ code
  • Develop sophisticated programming techniques using lambda expressions, smart pointers, and move constructors
  • Master the features of C++ by learning from programming experts
  • Learn C++ features that allow you to program compact and high-performance C++ applications
  • Preview what’s new in C++17

 

Contents at a Glance

 

 

Part I: The Basics

 

Lesson 1: Getting Started

Lesson 2: The Anatomy of a C++ Program

Lesson 3: Using Variables, Declaring Constants

Lesson 4: Managing Arrays and Strings

Lesson 5: Working with Expressions, Statements, and Operators

Lesson 6: Controlling Program Flow

Lesson 7: Organizing Code with Functions

Lesson 8: Pointers and References Explained

 

 

Part II: Fundamentals of Object-Oriented C++ Programming

 

Lesson 9: Classes and Objects

Lesson 10: Implementing Inheritance

Lesson 11: Polymorphism

Lesson 12: Operator Types and Operator Overloading

Lesson 13: Casting Operators

Lesson 14: An Introduction to Macros and Templates

 

 

Part III: Learning the Standard Template Library (STL)

 

Lesson 15: An Introduction to the Standard Template Library

Lesson 16: The STL String Class

Lesson 17: STL Dynamic Array Classes

Lesson 18: STL list and forward_list

Lesson 19: STL Set Classes 

Lesson 20: STL Map Classes

 

 

Part IV: More STL

 

Lesson 21: Understanding Function Objects

Lesson 22: Lambda Expressions 

Lesson 23: STL Algorithms

Lesson 24: Adaptive Containers: Stack and Queue

Lesson 25: Working with Bit Flags Using STL

 

 

Part V: Advanced C++ Concepts

 

Lesson 26: Understanding Smart Pointers

Lesson 27: Using Streams for Input and Output 

Lesson 28: Exception Handling

Lesson 29: Going Forward

 

Part VI: Appendixes

Appendix A: Working with Numbers: Binary and Hexadecimal

Appendix B: C++ Keywords

Appendix C: Operator Precedence

Appendix D: ASCII Codes

Appendix E: Answers

商品描述(中文翻譯)

在每天僅一小時的學習中,您將擁有開始使用C++編程所需的所有技能。這本完整的教程將幫助您迅速掌握基礎知識,並深入了解更高級的功能和概念。本書根據C++14標準進行了全面更新,並提供了C++17的預覽,從實用的角度介紹了這門語言,幫助您學習如何使用C++創建更快、更簡單、更高效的應用程序。


  • 掌握C++和面向對象編程的基礎知識

  • 了解C++的特性,如lambda表達式、移動構造函數和賦值運算符,幫助您編寫緊湊高效的代碼

  • 通過有用的Do's和Don'ts學習最佳實踐並避免常見問題

  • 學習標準模板庫(STL),包括在大多數實際C++應用程序中使用的容器和算法

  • 在每個課程結束時通過練習測試您的知識和專業技能

根據您自己的時間和進度學習:


  • 無需任何編程經驗

  • 編寫快速而強大的C++程序,編譯源代碼並創建可執行文件

  • 學習面向對象編程的概念,如封裝、抽象、繼承和多態性

  • 使用標準模板庫(STL)的算法和容器來編寫功能豐富且穩定的C++應用程序

  • 了解自動類型推斷如何簡化C++代碼

  • 使用lambda表達式、智能指針和移動構造函數開發複雜的編程技巧

  • 從編程專家那裡學習C++的特性

  • 學習允許您編寫緊湊且高性能的C++應用程序的C++特性

  • 預覽C++17的新功能

內容一覽

第一部分:基礎知識

課程1:入門

課程2:C++程序的結構

課程3:使用變量,聲明常量

課程4:管理數組和字符串

課程5:使用表達式、語句和運算符

課程6:控制程序流程

課程7:使用函數組織代碼

課程8:指針和引用解釋

第二部分:面向對象的C++編程基礎

課程9:類和對象

課程10:實現繼承

課程11:多態性

課程12:運算符類型和運算符重載

課程13:類型轉換運算符

課程14:宏和模板簡介

第三部分:學習標準模板庫(STL)

課程15:標準模板庫(STL)簡介

課程16:STL字符串類

課程17:STL動態數組類

課程18:STL列表和前向列表