-
Definitions:
computer, program, language, superset, subset.
-
Output
to
cout
-
Connect
to
storm.cis.fordham.edu
from room 317 Keating.
- Connect
- Explore the directories in
storm.cis.fordham.edu
using
cd
,
pwd
,
and
ls -l
.
-
Download, compile, and execute a C++ program using
wget
and
c++
.
-
See the C++ program and its output on the web
-
Clean up: how to
remove
a file
-
Practice using the Linux
vi
(“visual”) editor
-
Variables
and input.
-
The other built-in
data types.
-
Expressions
and how to compute their value.
-
Division,
quotient and remainder.
-
Operators that have a
side effect.
-
Expression
exercises.
-
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
-
Arrays.
An array is a set of mass producted variables
(maybe thousands 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
-
Midterm.
- review
- portmortem
- remedial execises
- second midterm
- second postmortem
-
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
-
Pointers.
- Display the value of an
int
in hexadecimal (base 16).
- Store the address of a variable into a pointer.
- Pointers and loops.
(This example is intended to motivate pointers.)
- Pointer arguments vs. reference arguments.
- Pass an array to a function using pointers.
-
Review for the final exam on Thursday, December 19, 2024.