2 A Tour of C++
2.1 What is C++? [tour.intro]
2.2 Programming Paradigms [tour.paradigm]
2.3 Procedural Programming [tour.proc]
Curly braces, { }, express grouping in C++.
2.3.1 Variables and Arithmetic [tour.var]
A declaration is a statement that introduces a name into the program.
2.3.2 Tests and Loops [tour.loop]
2.3.3 Pointers and Arrays [tour.ptr]
In declarations, [] means ‘‘array of’’ and * means ‘‘pointer to.’’
Unary & is the address-of operator.
2.4 Modular Programming [tour.module]
A set of related procedures with the data they manipulate is often called a module.
C++ provides a mechanism for grouping related data, functions, etc., into separate namespaces
2.4.1 Separate Compilation [tour.comp].
2.4.2 Exception Handling [tour.except]
(page 39)
(page 40)
2.5 Data Abstraction [tour.da]
Modularity is a fundamental aspect of all successful large programs.
2.5.1 Modules Defining Types [tour.types]
Programming with modules leads to the centralization of all data of a type under the control of a
type manager module.
(p 41)
This is often less than ideal.
(p42)
2.5.2 User-Defined Types [tour.udt]
C++ attacks this problem by allowing a user to directly define types that behave in (nearly) the same way as built-in types.
Arithmetic types such as rational and complex numbers are common examples of user-defined types.
2.5.3 Concrete Types [tour.concrete]
(p43)
User-defined types can be designed to meet a wide variety of needs.
(p44)
No comments:
Post a Comment