#include #include #include #include using namespace std; main(int argc, char *argv[]){ char line1[10000], line2[10000]; string strline1, strline2; ostringstream ostr1, ostr2; bool flag; cout << "The first parameter: " << argv[1] << "\n"; cout << "The second parameter: " << argv[2] << "\n"; ifstream Y11(argv[1], ios::in | ios::binary); ifstream Y12(argv[2], ios::in | ios::binary); if(!Y11.is_open() || !Y12.is_open()) throw ofstream::failure("couldn't open "); //Y11.getline(line1,9000); // Y12.getline(line2,9000); // getline(Y11, strline1); //cout << "You entered " << strline1 << endl; //cout << "\nLetto: \n" << line1 << endl; while(getline(Y11, strline1)){ flag = false; //caso di lettura stringa vuota if(strline1.size() == 0) continue; // For all the characters of the string for(int i=0; i