//---------------------------------------- // Your own code follows after this //---------------------------------------- E* result = iPatchwork -> fPaE(); iPatchwork -> g_code("code"); cout << "\n*** REQUIRED RESOURCES ***\n" << result << endl; E* expected = new E(); if( argc >= 3 ) expected = (E*)expected->g_parse( argv[2] ); else expected = (E*)expected->g_parse( "expected" ); if ( expected == NULL ) { cerr << "Parser error." << endl; exit(1); } cout << endl; if( result->g_equal( expected ) ) cout << "SUCCESS"; else cout << "FAILURE"; cout << endl;