In-class Examples for CISC-1600-E01 and CISC-1610-E01

  1. Definitions: computer, program, language.
  2. Linux commands.
    1. Linux commands for moving files around on our Fedora Linux server storm.cis.fordham.edu.
    2. Shellscript to compile the C++ program and rename the executable file.
  3. Output characters to the destination cout.
  4. Variables and input.
  5. Data types, in addition to the familiar type int.
  6. Expressions and how to compute their value.
  7. Division, quotient, and remainder.
  8. Operators that have a side effect.
  9. Exercises about expressions.
  10. Control Structure: the most important part of the course.
    1. Loops:
      1. while
      2. for
      3. do-while
    2. Nested loops: the crown jewels 👑
    3. if statements
      1. if statements and nested if statements
      2. if/else statements
      3. switch as an alternative to if
      4. An if statement in a loop
  11. Midterm
    1. Questions
    2. Answers
  12. Arrays. An array is a series of mass producted variables (maybe millions of them), all of the same data type.
    1. Many individual variables vs. one big array
    2. An array of strings
    3. Initialize, copy, and assign to an array. A range for loop.
    4. One-dimensional arrays: searching and sorting
    5. Two-dimensional arrays
    6. Parallel arrays and arrays of structures
  13. Functions.
    1. Don’t write the same code twice.
    2. Scope and Storage Allocation
    3. Arguments and return value
    4. Make the code more localized.
    5. Combine local scope with static allocation.
    6. References: two ways of talking about the same value
    7. Recursion: another way of looping
  14. Postfix vs. prefix increment and decrement.
  15. Review for the final exam on Thursday, December 18, 2025.