c109p1 - CSE 109 Programming Assignment#1 Due 9 PM Thursday...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CSE 109 Programming Assignment #1 Due: 9 PM Thursday 14 February 2008 (Late collections 9 PM Saturday 16 February, 9 PM Sunday 17 February) This assignment is an exercise in developing class Scan that provides the functionality for reading a text file and faithfully writing out the same file line by line, except for removing any occurrences of certain characters and except for removing comments that follow a special "comment character" on a line. The "comment character" is removed as well. The characters to be ignored are specified by the call to the constructor. The "special comment" charcters is '#'. Thus, when '#' is encountered everything up to the end of the line should be ignored as a comment. Provide the declaration of the class Scan in the file scan.h and provide the definitions (code) for class Scan in the file scan.cc. In /proj/csc109/p1 I have stored the file p1.cc, which is a driver for testing the class Scan. I have also stored a sample input file, /proj/csc109/p1/p1.dat.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 2

c109p1 - CSE 109 Programming Assignment#1 Due 9 PM Thursday...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online