#include #include #include #include #include #include using namespace std; char modify(const char c) { if (c=='(' || c=='[' || c=='{') return '('; else if (c==')' || c==']' || c=='}') return ')'; else if (c==',' || c==';') return ','; else if (isalpha(c)) return tolower(c); else return c; } void nospace(string& str) { str.insert(0, 1, ' '); for (int i=0; i>K; ifile.ignore(1); for (int S=1; S<=K; ++S) { string str1, str2; getline(ifile, str1); getline(ifile, str2); transform(str1.begin(), str1.end(), str1.begin(), modify); transform(str2.begin(), str2.end(), str2.begin(), modify); nospace(str1); nospace(str2); cout<<"Data Set "<