CSC135 -
Examples
CSC135 Home
Intro (name.cpp)
Intro program (avgs.cpp)
If statement (nameIf.cpp)
If statement (text p. 184, 4.15)
Switch statement (text p. 230, 4.36)
Switch example
Functions
Functions calling functions
Functions with parameters and return
values Function example (nameFuncs.cpp)
Function example (calcAvgFuns.cpp)
Loop example
Files example
Files with functions and data
validation
Files and reference parameters (shapes.cpp)
Arrays
More Arrays
Files - function to open input or
output file |