Assignment 1 Code Review

25 September 2001 - Stream I-O


Design


Refining the Design


The Last Trick - Inserting New Words


Estimates


Line Statistics - Newlines

100200300400500
01
1011
2021
3011
40111
5011
60211
7011
8011
9021
Totals89412


Line Statistics - Semicolons

000100200
0
1021
202
30
40
503
602
7061
805
902
Totals1851


Procedure Statistics

totalpages per procedure
procs1234567
11
11
321
321
4211
4211
4211
431
431
5221
532
7511
752
862
862
871
95121
9711
22211


File Statistics

cin
File
Counts
CountAverage
Lines/File
Avg Semicolons
per File
11522486
2210237
3512131
417920
50
619735


How People Lost Points


Don't Use Char Array Strings - I


Don't Use Char Array Strings - II


Dynamic Memory Is Not Your Friend - I

Don't use it if you don't need to.


Dynamic Memory Is Not Your Friend - II


Understand the EOF Condition


Other Points to Keep In Mind


This page last modified on 25 September 2001.