/********************************************************************** * * File: main.cc * * This file accepts input from standard input and prints to * standard output. * * The resulting executable should accept no arguments at the command * line. * * You are NOT allowed to change this file. * * Created by: * Vivian Tsang * Created on: * 11/05/2000 * ***********************************************************************/ #include #include "contig.h" void Warning(const char msg[]) { cerr << "Warning: " << msg << endl; } int main () { char cmd; CLONE a, b; while(!cin.eof()) { cin >> cmd; switch (cmd) { case 'n': case 'N': cin >> a; NEW(a); break; case 'o': case 'O': cin >> a >> b; OVERLAP(a, b); break; case 'p': case 'P': cin >> a; PRINT(a); break; case 'q': case 'Q': exit(1); default: Warning("Bad input!"); } } return 0; }