#include #include #include void main (int argc, char * argv[]) { int n1,n2,p1,p2,f1,f2; if (argc!=3) { cout << "error: there should be 2 command line args" << endl; cout << argc << " args" << endl; exit(1); } ifstream in1 (argv[0], ios::in); ifstream in2 (argv[1], ios::in); while (in1) { in1 >> n1 >> p1 >> f1 ; in2 >> n2 >> p2 >> f2; if (n1!=n2 || p1!=p2) { cout << "mismatching lines" << endl; cout << "n1 n2 p1 p2 " << endl << n1 << " " << n2 << " " << p1 << " " << p2 << endl; exit (1); } cout << n1 << " " << p1 << " " << f1 ; cout << " " << f2; if (f1>f2) cout << " >" << endl; else cout << " <" << endl; } }