Topics Covered
(1) Output and input statements in C++, the extraction operator >>, the insertion operator <<, cin, cout, endl.
(2) Comments in C++.
(3) Using the backslash to print characters such as double quotes in the output statements.
(4) Simple data types: integral data types (bool, char, int, short, long, unsigned, unsigned short, unsigned long), floating-point data types (float, double, long double).
(5) Variables, named constants, and experssions.
(6) The assignment statement.
(7) Scientific notation.
(8) Mathematical operations (+, -, *, /, %).
(9) Precedence of operators.
(10) Integer division.
(11) The postincrement, preincrement, postdecrement, and predecrement operators.
(12) cin.get
(13) Type casting.
(14) Math functions.
(15) Logical operators and logical expressions.
(16) The if statement. (Chapter 5)
Mon, Sep 18, 06: if statement continued.
Wed, Sep 20, 06: if statement continued.
Fri, Sep 22, 06: if statement continued.
Mon, Sep 25, 06: if statement continued; the conditional operator (pages 461-462).
Wed, Sep 27, 06: The string data type and operations on strings (Pages 57-58, 122-128): concatenation, size, length, substr, find, at; the while statement/loop. (Chapter 6, page 249)
Fri, Sep 29, 06: The while statement continued.
Mon, Oct 2, 06: char functions (page 57, 470-471): islower, isupper, tolower, toupper, isalpha, isdigit; the while statement continued.
Wed, Oct 4, 06: the while statement continues, shortcut operators (+=, -=, *=, /=, %=).
Mon, Oct 9, 06: Nested loops, the for loop/statement (Chapter 9, page 426).
Wed, Oct 11, 06: Loops continued.
Fri, Oct 13, 06: Loops continued.
Mon, Oct 16, 06: Exam I.
Wed, Oct 18, 06: The continue and break statements, the do while statement/loop and the switch statement (pages 423 and 418).
Fri, Oct 20, 06: Functions (chapters 7 and 8); value-returning and void functions.
Mon, Oct 23, 06: Functions continued.
Wed, Oct 25, 06: Functions continued; value and reference parameters; local and global variables/constants; the scope operator; Assignment 7.
Fri, Oct 27, 06: Functions continued.
Mon, Oct 30, 06: Functions continued.
Wed, Nov 1, 06: Functions continued.
Fri, Nov 3, 06: Functions continued.
Mon, Nov 6, 06: Text files (pages 153-162).
Wed, Nov 8, 06: Text files continued.
Fri, Nov 10, 06: Text files continued.
Mon, Nov 13, 06: One-dimensional arrays . 1DA (Chapter 12)
Wed, Nov 15, 06: 1DA continued.
Fri, Nov 17, 06: 1DA continued.
Mon, Nov 27, 06: Exam II.
Wed, Nov 29, 06: One-dimensional arrays as parameters/arguments.
Fri, Dec 1, 06: Assignment 10, random numbers, rand(), srand((), generating a random integer between 0 and N, generating a random integer between integers M and N, generating a random real number between 0 and 1, generating a random real number between real numbers M and N.
Mon, Dec 4, 06: Two-dimensional arrays.
Wed, Dec 6, 06: Two-dimensional arrays as parameters/arguments.
Fri, Dec 8, 06: sorting arrays.
Mon, Dec 11, 06: structs (Page 520) and structs as parameters/arguments.
Wed, Dec 13, 06: Selection Sort (Page 679).
Fri, Dec 15, 06: Formatting the output (pages 115-122).
Then
(1) Arrays of structs and structs of arrays.
(2) User-defined data types. (Page 485)
(3) User-defined header files.
(4) Formatting the output.