这个题。。太水了。。
#include<iostream>
#include<string>
using namespace std;
const int MAX = 10000;
int main() {
string str;
char left = '`';
char right = '\'';
int count = 0;
int i;
while (getline(cin, str)) {
for (i = 0; str[i] != 0; i++) {
if (str[i] == '"') {
if (count == 0) {
cout << left << left;
count = 1;
} else {
cout << right << right;
count = 0;
}
} else
cout << str[i];
}
cout << endl;
}
return 0;
}