Ch1- Introduction to Programming
1.1 What Does It Mean to Program
1.2 Coding
1.3 Compiling and linking
1.4 The First Steps with Visual C++
Ch2- Variables
2.1 Introduction
2.2 Why Variables
2.3 Declaring Variables
2.4 Assignment
2.5 Initiating Variables
2.6 Constants
2.7 More about Assignment of Values
2.8 The main function
2.9 Input and Output
2.10 An Entry Program
2.11 Formatted Output
2.12 Invoice Program
2.13 Time Conversion Program
2.14 Type Conversion
2.15 The Random Number Generator
2.16 Game Program
2.17 Summary
2.18 Exercises
Ch3- Selections and Loops
3.1 Introduction
3.2 Selection
3.3 if statement
3.4 Price Calculation Program
3.5 Comparison Operators
3.6 Even or Odd
3.7 else if
3.8 and (&&), or (||)
3.9 Conditional Input
3.10 The switch statement
3.11 Menu Program
3.12 Loops
3.13 The while Loop
3.14 The for Loop
3.15 Addition Program
3.16 Double Loop
3.17 Roll Dice
3.18 Two Dice Roll
3.19 Breaking Entry with Ctrl-Z
3.20 Pools
3.21 Equation
3.22 Interrupting a Loop - break
3.23 Summary
3.24 Exercises
Ch4- Arrays
4.1 Introduction
4.2 Why Arrays
4.3 Declaring an Array
4.4 Initiating an Array
4.5 Copying an Array
4.6 Comparing Arrays
4.7 Average
4.8 Sales Statistics
4.9 Product File, Search
4.10 Two-Dimensional Array
4.11 Sorting
4.12 Searching a Sorted Array
4.13 Summary
4.14 Exercises
Ch5- Strings
5.1 Introduction
5.2 Data Type char
5.3 Menu Program
5.4 Menu Program with Loop
5.5 Christmas Tree
5.6 int - char
5.7 Å, Ä, Ö
5.8 String Array, char[]
5.9 Length of a String
5.10 Upper/Lower Case
5.11 Initials
5.12 Comparing Two Strings
5.13 Copying Strings
5.14 Array with String Array
5.15 Sorting Strings
5.16 Substring
5.17 Concatenating Strings
5.18 Interchanging First Name and Surname
5.19 Encryption
5.20 Random Password
5.21 Translation Table
5.22 Summary
5.23 Exercises
Ch6- Functions
6.1 Introduction
6.2 What Is a Function
6.3 Average
6.4 Calling a Function
6.5 Several return Statements
6.6 Least of Three Numbers
6.7 Least Item of an Array
6.8 Array As Parameter
6.9 Function and Subfunction
6.10 Function without Return Values
6.11 Replacing Characters in a String
6.12 Declaration Space
6.13 The Word Program
6.14 Override Functions
6.15 Declaration - Definition
6.16 Header Files
6.17 Reference Parameters
6.18 Parameters with Default Values
6.19 Recursive Functions
6.20 Summary
6.21 Exercises
Ch7- Files
7.1 Introduction
7.2 Streams
7.3 Reading from a Stream
7.4 Writing to a Stream
7.5 Attaching a File to a Stream
7.6 A Complete Write Program
7.7 A Complete Reading Program
7.8 New Item at the End of the File
7.9 Products and Prices
7.10 Search for a Product Price
7.11 Sorting a File in Memory
7.12 Updating File Content
7.13 Copying Files
7.14 Summary
7.15 Exercises
Ch8- Pointers
8.1 Introduction
8.2 What Is a Pointer
8.3 Declaring a Pointer
8.4 Assigning Values to Pointers
8.5 Addresses and char Pointers
8.6 cout and char Pointers
8.7 Price Program with Pointers
8.8 Pointer Arithmetics
8.9 Tax Program
8.10 Functions and Pointers
8.11 Dynamic Memory
8.12 Summary
8.13 Exercises
Ch9- Structures
9.1 Introduction
9.2 What Is a Structure
9.3 Defining a Structure
9.4 Declaring and Initiating Structure Variables
9.5 Assigning Values to Structure Members
9.6 A Structure Program
9.7 Array with Structure Variables
9.8 Pointer to Structure
9.9 Structures in the Dynamic Memory
9.10 Structure As Function Parameter
9.11 Summary
9.12 Exercises
Ch10- Answers
10.1 Variables
10.2 Selections and Loops
10.3 Arrays
10.4 Strings
10.5 Functions
10.6 Files
10.7 Pointers
10.8 Structures
0 تعليقات