"sed \'s/\t/ /g\' "
謝謝!它是這樣的代碼的一部分sed程序,它有什麼作用?
string cmd = "sed \'s/\t/ /g\' " + string(filename) + " > sample.clean";
system(cmd.c_str());
ifstream infile("sample.clean");
if (!infile){
cerr << "error loading file after clean-up!\n";
return 0;
}