CPE 101: Fundamentals of Computer Science I
Fall 2013

Examples

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

report.c Structs [December 3, 2013]
paint.c Arrays for PPM images [November 7, 2013]
largest.c Arrays and loops [November 7, 2012]
search.c Arrays and loops [November 7, 2013]
tictac.c Arrays:(2D), start of tictactoe game [November 5, 2013]
array.c Arrays: simple example [November 5, 2013]
flip.c Out parameters and pointers [October 31, 2013]
addy.c Out parameters and pointers [October 31, 2013]
image.c PPM files [October 24, 2013]
boxes.c PPM files [October 24, 2013]
chartable.c for loops, ASCII table [October 22, 2013]
picture.c nested for loops [October 22, 2013]
sum.c for loops [October 22, 2013]
peter.c ++ and -- [October 17, 2013]
grades.c switch statement [October 17, 2013]
cond01.c if statements [October 10, 2013]
cond.c boolean expressions [October 8, 2013]
chtest01.c char values [October 8, 2013]
chtest.c char values [October 8, 2013]
char-test.c char values [October 8, 2013]
printing.c printf() function [October 3, 2013]
division.c integer vs. floating point division [October 3, 2013]
fn.c functions, checkit macors [October 1, 2013]
demo.c Use of checkit tests [September 12, 2013]
tails.c Use of checkit tests [September 12, 2013]
exp.c C expressions [September 12, 2013]

September 12, 2013, dekhtyar at calpoly.edu