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