CPE 101: Fundamentals of Computer Science I
Winter 2012

Examples

This page contains the list of all examples we used in class

peaks.c Labtest 3 prep (joint effort) [March 7, 2012]
readString.c File I/O: strings [March 7, 2012]
readNum.c File I/O: integers [March 7, 2012]
readData.c File I/O: structures [March 7, 2012]
array04.c Penguin assult [February 10, 2012]
array03.c Arrays and loops [February 10, 2012]
array02.c Arrays: use of arrays in computations [February 10, 2012]
array01.c Arrays: simple example [February 10, 2012]
image.c ppm image generation [February 7, 2012]
while01.c while loops [February 7, 2012]
while02.c while loops [February 7, 2012]
while03.c while loops [February 7, 2012]
nestedFor.c Nested for loops [February 3, 2012]
forMath.c for loops for math [February 3, 2012]
forA.c for loops [February 3, 2012]
forB.c for loops [February 3, 2012]
forC.c for loops [February 3, 2012]
scan.c scanf() function [January 30, 2012]
outParams.c Use of out parameters in functions [January 30, 2012]
switch.c switch statement [January 25, 2012]
colors.c If statements [January 23, 2012]
bool.c Boolean algebra expressions [January 18, 2012]
char-test.c Use of .h files, char type [January 17, 2012]
char-test.h Use of .h files, char type [January 18, 2012]
comp.c assignment, function composition [January 13, 2012]
demo.c Use of checkit tests [January 9, 2012]
tails.c Use of checkit tests [January 9, 2012]
exp.c C expressions [January 9, 2012]

December 30, 2012, dekhtyar at calpoly.edu