Standard C ++ introduction to development and programming practices prepares the second edition. Please provide suggestions!

Source: Internet
Author: User
Tags bit set case statement mathematical functions

Introduction to Standard C ++ development and programming practices

Standard C ++ introduction to development and programming practices prepares the second edition. Please provide suggestions! What aspects do you want to focus on?


1st articles C ++ quick browsing
Chapter 4 C ++
1.1 Programming Language
1.1.1 machine language
1.1.2 Assembly Language
1.1.3 advanced language
A Brief History of 1.2 C ++ Development
1.3 C ++ Development Environment
1.3.1 C ++ Compiler
1.3.2 C ++ standards and compilers
1.3.3 C ++ Development Environment
1.3.4 Development Environment Selection
Chapter 2 numerical representation of computers
2.1 hexadecimal System
2.1.1 decimal
2.1.2 binary
2.1.3 octal and hexadecimal
Representation of A 2.2 Value
2.2.1 integer Representation
2.2.2 negative expression

2.2.3 integer representation range
2.2.4 floating point representation
2.2.5 observe the binary representation of a value *
2.3 characters
2.3.1 ASCII code
2.3.2 Chinese character encoding
2.3.3 unicode encoding
2.3.4 observe the binary representation of characters *
2.3.5 characters and Fonts
2.3.6 keyboard and Input Method
Chapter 4 C ++ Program
C ++ programming started in 3.1
3.1.1 C ++ Program Development Process
3.1.2 documents and engineering (Project)
3.2 Develop helloworld in Dev-C ++
3.2.1 edit helloworld
3.2.2 compile and connect helloworld
3.2.3 run helloworld
3.3 develop helloworld in VC 2003
3.3.1 edit helloworld
3.3.2 compile and connect Hello World
3.3.3 run helloworld
3.4 possible problems
3.5.1 Main Function
3.5.2 Functions
3.5.3 object
3.5.4 header file
3.5.5 namespace
3.5.6 Standard Input and Output
3.5.7 compiler Behavior
3.5 understand helloworld
Article 3 C ++ data presentation
Chapter 2 C ++ basic syntax
4.1 understand C = 2? R
4.2 annotations
4.3 identifier
4.3.1 naming rules
4.3.2 keywords
4.4 numbers and types
4.5 Basic Types
4.5.1 integer
4.5.2 floating point type
4.5.3 Boolean
4.5.4 accept type
4.5.5 bytes of the basic type *
4.6 literal Constants
4.6.1 Integer constants
4.6.2 floating point Constants
4.6.3 Boolean Constants
4.6.4 constant type Constants
4.6.5 string constants
4.6.6 literal constant type *
4.6.7 Variables
4.7 statement
4.7.1 expression
4.7.2 statement
4.7.3 statement
4.7.4 value assignment statement
4.7.5 initialization statement
4.7.6 use the debugger to observe the variable value *
4.8 Operator
4.8.1 value assignment operator
4.8.2 Arithmetic Operators
4.8.3 Relational operators
4.8.4 logical operators
4.8.5 conditional Operators
4.8.6 Operators
4.8.7 observe binary operations *
4.8.8 compound assignment operator
4.8.9 comma Operator
4.8.10 sizeof Operator
4.8.11 typeid Operator
4.8.12 operator priority
4.9 type conversion
4.9.1 implicit conversion
4.9.2 explicit conversion
4.9.3 arithmetic conversion *
Chapter 2 arrays and strings
Array 5.1
5.1.1 array Concept
5.1.2 array in memory *
5.1.3 array Initialization
5.1.4 access to array elements
5.1.5 use array subscript safely *
5.1.6 ** Array
5.2 string
5.2.1 traditional strings
5.2.2 secure use string *
5.2.3 STD: String
Chapter 2 pointer and reference
6.1 pointer
6.1.1 pointer Concept
6.1.2 address fetch Operator
6.1.3 value Operators
6.1.4 in-depth understanding of pointers *
6.1.5 comparison of pointers
6.1.6 addition and subtraction of pointers
6.1.7 understanding pointer operations *
6.1.8 array and pointer
6.1.9 pointer
6.1.10 pointer Array
6.2 reference
6.2.1 concepts referenced
6.2.2 understanding references *
6.3 dynamic memory allocation
6.3.1 new
6.3.2 Delete
6.3.3 Array Memory Allocation
Chapter 4 Custom Data Types
7.1 Structure
7.1.1 Structure Definition
7.1.2 define Structure Variables
7.1.3 structure data member
7.1.4 structure member reference
7.1.5 structure Initialization
7.1.6-bit domain
7.2 Union
7.2.1 definition of union
7.2.2 Joint Use
7.3 Enumeration
7.3.1 enumeration Definition
7.3.2 enumeration and int
7.4 typedef
7.5 data type Modifier
7.5.1 const
7.5.2 volatile
Article 3 C ++ Process Design
Chapter 3 C ++ Process Control
8.1 judgment
8.1.1 if
8.1.2 statement block *
8.1.3 if... Else
8.1.4 if... Else if... Else
8.1.5 flowchart *
8.2 Branch
8.3 cycles
8.3.1 while
8.3.2 do... While
8.3.3
8.4 jump statement
8.4.1 nested loop
8.4.2 use break to stop a loop
8.4.3 use break to stop a branch
8.4.4 continue
8.4.5 GOTO
8.4.6 reasonably use the GOTO statement *
Chapter 2 C ++ Functions
9.1 Functions
9.1.1 Functions
9.1.2 function call
9.1.3 use the debugger to observe function calls *
9.1.4 function parameters
9.1.5 Return Value
9.2 function prototype
9.2.1 function prototype)
9.2.2 main () function
9.2.3 define the main () function with parameters *
9.2.4 default parameters
9.2.5 variable parameters *
9.2.6 inline functions
9.3 function Overloading
9.3.1 function Overloading
9.3.2 call of overload Functions
9.3.3 secure connection
9.3.4 name reorganization *
9.4 recursive functions
9.4.1 recursive functions
9.4.2 use the debugger to observe recursive function calls *
9.5 functions and pointers
9.5.1 pointer to function
9.5.2 understanding function pointers *
9.5.3 function and value transfer
Chapter 2 preprocessing
10.1 preprocessing commands
10.2 macro commands
10.2.1 macro
10.2.2 macro with Parameters
10.2.3 macros and constants and functions *
10.2.4 # Operator
10.2.5 ## Operator
10.2.6 canceling macros
10.2.7 C ++ predefined macros
10.3 Conditional compilation instructions
10.3.1 # If... # Endif
10.3.2 # else
10.3.3 # Elif
10.3.4 # If defined and # If! Defined
10.3.5 # ifdef and # ifndef
10.4 File Inclusion commands
10.4.1 # include
10.4.2 rational use of header files
10.5 other standard instructions
10.5.1 # error
10.5.2 # Line
10.5.3 # pragma
Article 3 C ++ Object-Oriented Programming
Chapter 2 C ++ classes
11.1 categories and objects
11.1.1 object
11.1.2 class
Design of the 11.2 category
11.2.1 class definition
11.2.2 object definition
11.2.3 access to data members
11.2.4 member Access Control
11.2.5 member functions
11.2.6 inline member functions
11.2.7 overload of member functions
11.2.8 this pointer
11.2.9 class in memory *
11.3 class discussion
11.3.1 class and Structure
11.3.2 Abstraction
11.3.3 Encapsulation
11.4 class combination
11.4.1 use a combination of Classes
11.4.2 class declaration
Chapter 1 Special Functions of Classes
12.1 Constructor
12.1.1 Constructor)
12.1.2 constructors with Parameters
12.1.3 Initial Value List
12.2 member Initial Value List
12.2.1 use the member Initial Value List
12.2.2 object member Initialization
12.3 destructor
12.3.1 destructor Definition
12.3.2 structure and structure of object members *
12.4 special Constructors
12.4.1 conversion Constructor
12.4.2 explicit
12.4.3 copy constructor
12.5 Operator Functions
12.5.1 operator overload
12.5.2 unary operator overload
12.5.3 binary operator overloading
12.5.4 overload of global operators
12.5.5 reloaded Operators
12.5.6 type conversion functions
12.6 const and mutable
12.6.1 const
12.6.2 mutable
$12.7
12.7.1 declare a function as a friend
12.7.2 declare a member function of a class as youyuan
12.7.3 declare a class as a friend
Chapter 2 Inheritance
Inheritance of class 13.1
13.1.1 concept of Inheritance
13.1.2 class inheritance
13.1.3 derived class in memory *
13.1.4 protected
13.1.5 base class Access Control
13.2 structure and Analysis
13.2.1 structure of a derived class
13.2.2 initialization of the base class
13.2.3 default constructor
13.2.4 structure of a derived class
13.3 name hiding
13.3.1 hide data members
13.3.2 hide member functions
13.3.3 understanding and hiding
Chapter 2 polymorphism
14.1 type conversion
14.1.1 up conversion
14.1.2 downward Conversion
14.2 virtual functions and Polymorphism
14.2.1 problems caused by type conversion
14.2.2 virtual functions
14.2.3 filling of virtual functions *
14.2.4 Polymorphism
14.2.5 virtual destructor
14.2.6 pure virtual functions
14.2.7 abstract class
14.3 multi-level inheritance
14.3.1 use of multi-level inheritance
14.3.2 multiple filling of virtual functions *
More than 14.4 inheritance
14.4.1 use of multiple inheritance
14.4.2 problems caused by multi-Inheritance
14.4.3 virtual inheritance
5th C ++ advanced features
Chapter 4 Template
15.1 function Template
15.1.1 function template Concept
15.1.2 template parameters and function parameters
15.1.3 function template instantiation
15.1.4 function template overload
15.1.5 special function template *
15.2 class templates
15.2.1 concept of class templates
15.2.2 class template member functions
15.2.3 class templates containing multiple parameters
15.2.4 default parameters of the class template
Chapter 3 C ++ Exception Handling
16.1 traditional error handling
16.2 throw an exception.
16.3 capture exceptions
16.3.1 catch exceptions
16.3.2 capture different types of exceptions
16.3.3 capture all exceptions
16.3.4 throw an exception in the Catch Block
16.3.5 uncaptured exceptions
16.3.6 customized terminate () behavior *
16.4 statement for throwing an exception
Chapter 2 namespace and domain
17.1 namespace
17.1.1 namespace Definition
17.1.2 using statement
17.1.3 using command
17.1.4 namespace alias
17.2 Scope
17.3 local scope
17.3.1 concept of local scope
17.3.2 for statement Scope
17.3.3 scope of case statement Block
17.3.4 function Scope
17.4 storage type of local variables
17.4.1 Automatic Storage Type
17.4.2 register storage type
17.4.3 static storage type
17.5 namespace domain
17.5.1 full-region
17.5.2 external storage type
17.5.3 file domain
17.5.4 namespace domain
17.6 category
17.6.1 category concept
17.6.2 static data member
17.6.3 static member function
17.7 nesting of scopes
17.7.1 nesting of statement Blocks
17.7.2 namespace nesting
17.7.3 class nesting
17.7.4 define classes in the statement Block
Hidden by 17.7.5 nesting
17.8 lifecycle of an object
Chapter 2 runtime type information
18.1 Obtain Dynamic types
18.1.1 typeid keyword
18.1.2 type_info
18.1.3 enable rtti *
18.1.4 obtain the dynamic type of the object
18.2 C ++ type conversion
18.2.1 dynamic type conversion dynamic_cast
18.2.2 static type conversion static_cast
18.2.3 re-interpret type conversion reinterpret_cast
18.2.4 constant type conversion const_cast
6th C ++ programming practices
Chapter 3 C ++ standard library
Composition of the 19.1 C ++ standard library
19.2 string Library [String]
19.2.1 string construction and assignment
19.2.2 string connection
19.2.3 string comparison
19.2.4 subscript of a string
19.2.5 substring
19.2.6 string SEARCH
19.2.7 string and C-style string
19.2.8 empty string
19.3 complex category [complex]
19.3.1 construction of plural numbers
19.3.2 arithmetic operation of the plural number
19.3.3 complex operation functions
19.4 exception class [stdexcept]
19.5 c Standard Library
19.5.1 assert macro
19.5.2 Type Functions
19.5.3 mathematical functions
19.5.4 type conversion functions
19.5.5 random number Function
19.5.6 Variable Parameter Processing
19.5.7 memory operation functions
19.5.8 system control functions
19.5.9 string processing functions
19.5.10 time processing functions
Chapter 4 C ++ stream
20.1 input/output stream [iostream]
4.1.1.1 input and output streams
Stream operator 1.2
4.1.1.3 format the output function
1.4 1.4 format Operator
Listen 1.5 stream output
Listen 1.6 buffer output
Stream Input 1.7
Pending 1.8 status flag *
20.2 standard input and output streams
20.3 file stream [fstream]
4.1.3.1 open and close a file
Optional 3.2 binary input and output
3.3 locate the file location
20.4 string stream [sstream]
Optional 4.1 ostringstream
Listen 4.2 istringstream
Limit 4.3 stringstream
Chapter 2 STL containers
21.1 standard template library
21.1.1 STL Concept
21.1.2 STL Composition
21.1.3 STL instance
21.2 containers
21.2.1 STL container
21.2.2 container template parameters
21.2.3 comparison of containers
21.2.4 container assignment and switching
21.2.5 operator []
21.2.6 indicator acquisition
21.2.7 element iterative access
21.2.8 container size
Vector 21.3
21.3.1 Vector Construction
21.3.2 vector element access
21.3.3 adding vector Elements
21.3.4 deletion of vector Elements
21.4 list
21.4.1 list Construction
21.4.2 access to list elements
21.4.3 add list elements
21.4.4 Delete list elements
21.5 dual-end queue
21.5.1 structure of Dual-end queue
21.5.2 access to two-end queue Elements
21.5.3 addition of double-end queue Elements
21.5.4 Delete two-end queue Elements
21.6 container Adapter
21.6.1 Stack
21.6.2 queue
21.6.3 priority queue
21.7 ing
21.7.1 ing Construction
Access to 21.7.2 ing Elements
21.7.3 Add a ing Element
21.7.4 delete a ing Element
21.7.5 search for ing Elements
21.7.6 multi- ing
21.8 set
21.8.1 Collection Construction
21.8.2 access to collection Elements
21.8.3 Add a set Element
21.8.4 delete a set Element
21.8.5 search for collection Elements
21.8.6 multiple sets
21.9-bit set
21.9.1 concept of bit set
21.9.2-Bit Set construction
21.9.3-bit set output
21.9.4-bit operations
Assignment and conversion of 21.9.5-bit sets
21.9.6-digit SET SIZE
Comparison of 21.9.7-bit sets
Bitwise operation of the 21.9.8-bit set
Chapter 2 generic algorithms
22.1 indicator
22.1.1 indicator acquisition
22.1.2 Data Type of the indicator
22.1.3 indicator Iteration
22.1.4 iteration direction *
Iteration type of 22.1.5 indicator
22.2 indicator Adapter
22.2.1 reverse indicator
22.2.2 Insert indicator
22.3 function objects
22.4 Algorithm
22.4.1 Search Algorithm
22.4.2 sorting and general sorting algorithms
22.4.3 Delete and replace Algorithms
22.4.4 permutation and combination algorithm
22.4.5 arithmetic Algorithm
22.4.6 generation and variant Algorithms
22.4.7 relational Algorithm
22.4.8 set algorithm
22.4.9 heap Algorithm
Chapter 3 C ++ Practice Guide
23.1 improve code readability
23.1.1 do not comment
23.1.2 do not mean blank space
23.1.3 cherish identifier
23.1.4 rational use of Operator Functions
23.1.5 use aliases reasonably
23.1.6 rational use of Jump statements
23.2 compile a stupid program
23.2.1 normal expression
23.2.2 use the bool type for determination
23.2.3 ensure object initialization
23.2.4 try to write more if
23.2.5 do not invent the string class
23.2.6 use standard C ++
23.3 reasonable use of memory
23.3.1 memory in C ++
23.3.2 illegal Memory Access
23.3.3 Memory leakage
23.3.4 Memory leakage detection
23.3.5 cmemory state
23.3.6 smart pointer (auto_ptr)
23.4 rational use of OOP
23.4.1 reasonably encapsulate objects
23.4.2 generation of object copy
23.4.3 object initialization
23.4.4 object assignment and initialization
23.4.5 rational use of inheritance and combination
23.4.6 rational use of multi-Inheritance
23.4.7 rational use of virtual functions and virtual base classes
23.5 not dogmatism
Chapter 2 Integrated Practice: game simulation of Journey to the West
24.1 Function Analysis
24.1.1 game running interface
24.1.2 division of game roles
24.1.3 battle formation
24.1.4 weapons allocation
24.2 design ideas
24.2.1 design roles using classes and inheritance
24.2.2 use a file stream to load the role list
24.2.3 using virtual functions for role Polymorphism
24.2.4 use Operator Overloading
24.2.5 use exception handling to improve program robustness
24.2.6 use rtti to obtain the role category
24.2.7 use the STL container management role
24.2.8 use STL container management weapons
24.2.9 search and sort using generic algorithms
24.2.10 Use loop and judgment to complete the master control logic
24.3 Implementation Details
24.3.1 weapon
24.3.2 actor
24.3.3 monk
24.3.4 actorpowersaccumulater
24.3.5 God
24.3.6 monster
24.3.7 followermonster
24.3.8 gameexception
24.3.9 game
24.3.10 main () function
24.4 run and watch the game
24.4.1 actors. ini
24.4.2 run the program

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.