Название: The Rook’s Guide to C++

Автор: Jeremy A. Hansen

Язык: Английский

Год: 2013

Лицензия: Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License

ISBN 978-1-304-66105-0

ID: 1

Сайт книги: http://rooksguide.org/

Скачать: PDF

 

 

 

Содержание


1  History

2  Variables
2.1   How do I decide which data type I need?
2.2   Identifiers                            
2.3   Declaring a Variable                   
2.4   Initializing Variables                 
2.5   Assignment Statements                  
2.6   Review Questions                        
2.7   Review Answers                         
2.8   Further Reading

3  Literals and Constants
3.1   Literals
3.2   Declared Constants
3.3   Review Questions
3.4   Review Answers

4  Assignments
4.1   Review Questions
4.2   Review Answers

5  Output
5.1   Review Questions
5.2   Review Answers
5.3   Further Reading

6  Input
6.1   Review Questions
6.2   Review Answers
6.3   Further Reading

7  Arithmetic
7.1   Review Questions
7.2   Review Answers
7.3   Further Reading

8  Comments
8.1   Review Questions
8.2   Review Questions

9  Data Types and Conversion
9.1   Floating-point types
9.2   Other types introduced by C++11
9.3   Conversion Between Types
9.4   Coercion & Casting
9.5   Automatic Types in C++11
9.6   Review Questions
9.7   Review Answers
9.8   Further Reading

10 Conditionals
10.1 if, else, and else if
10.1.1  A small digression on expressions
10.1.2  Using else
10.2 switch statements
10.3  Review Questions
10.4  Review Answers

11 Strings
11.1  Review Questions
11.2  Review Answers
11.3  Further Reading

12 Loops
12.1  Introduction
12.2  Having Fun while Programming
12.3 do-while Loops
12.4  Event-Based Loops vs Count-Based Loops
12.5 for work or for play
12.6  Picking a Loop 
12.7  Nested Loops
12.8  Infinite Loops
12.9  Review Questions
12.10 Review Answers
12.11 Further Reading

13 Arrays
13.1  Multi-dimensional Arrays
13.2  Review Questions
13.3  Review Answers
13.4  Further Reading

14 Blocks, Functions, and Scope
14.1  Blocks
14.2  Basic Functions in C++
14.2.1  What are functions and why do we use them?
14.2.2  The parts of a basic function
14.3 void Functions
14.4  Overloading Function Names
14.5  Scope
14.6  Review Questions
14.7  Review Answers
14.8  Further Reading

15 Problem Solving & Troubleshooting
15.1  The Compilation Error
15.2  The Logic Error
15.3  The Infinite Loop
15.4  Review Questions
15.5  Review Answers

16 The Preprocessor
16.1  Review Questions
16.2  Review Answers

17 Advanced Arithmetic
17.1  Examples
17.1.1 pow()
17.1.2 sqrt()
17.1.3  Modulo
17.2  Review Questions
17.3  Review Answers
17.4  Further Reading

18 File I/O 103
18.1  I/O Streams
18.2  File I/O
18.3  Opening and closing a File
18.4  Reading from a File
18.5  Writing data to a File
18.6  Introduction to Classes and Objects
18.7  Other functions
18.8  Review Questions
18.9  Review Answers
18.10 Further Reading

19 Pointers
19.1  Review Questions
19.2  Review Answer

20 Dynamic Data
20.1  Review Questions
20.2  Review Answers
20.3  Further Reading

21 Classes and Abstraction
21.1 structs
21.2  Assigning values to member variables
21.3  Classes
21.4 public and private variables and functions
21.5  Defining member functions
21.6  Using member functions
21.7 classes and structs together
21.8  Constructors
21.9  Overloading Member Functions
21.10 Review Questions
21.11 Review Answers
21.12 Further Reading

22 Separate Compilation
22.1  Review Questions
22.2  Review Answers
22.3  Further Reading

23 STL 137
23.1 #include <utility> #include <tuple> (C++11)
23.2  #include <iterator>
23.2.1  Forward iterators
23.2.2  Bidirectional iterators
23.2.3  Random access iterators
23.3  #include <vector>
23.4  #include <map>
23.5  Further Reading

The Rook's Guide to C++