Transcription of C++ Essentials - PragSoft
{{id}} {{{paragraph}}}
C++ EssentialsSharam HekmatPragSoft Preliminaries1A Simple C++ Program2 Compiling a Simple C++ Program3 How C++ Compilation Works4 Variables5 Simple Input/Output7 Comments9 Memory10 Integer Numbers11 Real Numbers12 Characters13 Strings14 Names15 Exercises162. Expressions17 Arithmetic Operators18 Relational Operators19 Logical Operators20 Bitwise Operators21 Increment/Decrement Operators22 Assignment Operator23 Conditional Operator24 Comma Operator25 The sizeof Operator26 Operator Precedence27 Simple Type Conversion28 Exercises29viC++ EssentialsCopyright 2005 PragSoft3. Statements30 Simple and Compound Statements31 The if Statement32 The switch Statement34 The while Statement36 The do Statement37 The for Statement38 The continue Statement40 The break Statement41 The goto Statement42 The return Statement43 Exercises444. Functions45A Simple Function46 Parameters and Arguments48 Global and Local Scope49 Scope Operator50 Auto Variables51 Register Variables52 Static Variables and Functions53 Extern Variables and Functions54 Symbolic Constants55 Enumerations56 Runtime Stack57 Inline Functions58 Recursion59 Default Arguments60 Variable Number of Arguments61 Command Line Arguments63 Exercises645.
www.pragsoft.com Contents vii 6. Classes 82 A Simple Class 83 Inline Member Functions 85 Example: A Set Class 86 Constructors 90 Destructors 92 Friends 93
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}