/************************************************************************** Program Wrapper for CS113 Program Assignment 1 Date: Jan 19, 2000 Author: Stan Sclaroff Login: sclaroff@cs.bu.edu Description: In this assignment, you are expected to change the source code of this file such that your program filters out all comments from a C++ file. Requirements for this assignment are detailed on the WWW page: http://www.cs.bu.edu/fac/sclaroff/courses/cs113/assignments/p1.html This example program simply reads characters from standard input and writes them to standard output (without removing comments). You must modify this file (by filling in missing pieces of code) so that it satisfies the requirements in the assignment specification. To run this program, compile it on CSA.BU.EDU: g++ -o filter filter.cpp To filter a file: filter < testfile.cpp ****************************************************************************/ // include files #include int main() { char c; // Keep reading input until end of file is reached while(!(cin.eof())) { cin.get(c); // read a character cout << c; // write a character } // while not end of file /* done! */ return 0; } // end main