Assignment 1 Code Review

26 September 2002 - CS 509


Assignment 1 Code Review


The Test Cases


Test Your Code


Design


A Solution


Line Statistics - Newlines

100200300400500
011
1021
202
3011
40
50
6011
7031
8011
90111
Totals16382


Line Statistics - Semicolons

000100
02
101
202
303
402
50
604
7012
80
903
Totals119


Procedure Statistics

totalpages per procedure
procs12345678
211
211
211
3111
4211
4211
6411
9441
9621
10451
115321
11821
13103
151131
161321
17161


Follow Directions


A Tale of Two mains()


Procedure Size Matters


Prefer Strings to Character Arrays I


Prefer Strings to Character Arrays II


Use Named Constants


Understand How EOF Works


Understand How Stream I-O Works


Understand Your Tools


Other Irritants


Points to Remember


This page last modified on 26 September 2002.