CSCI 104 - Summer 2016 Data Structures and Object Oriented Design

In-class Exercises

Here is a C++ scratchpad:

cpp/scratch

Variables and Expressions

cpp/var-expr/examples/maxplus
cpp/var-expr/char_arith
cpp/var-expr/4swap
cpp/var-expr/examples/funccall
cpp/var-expr/hello
cpp/var-expr/examples/tacos
cpp/var-expr/quadratic
cpp/var-expr/math
cpp/F14/printseconds

Conditionals (if..else)

cpp/control/discount
cpp/control/compare2
cpp/control/weekday
cpp/control/letter_grade
cpp/control/nth

Loops 1

cpp/control/loop_example1
cpp/control/count_example
cpp/control/count_odd