如果执行下面C++代码后,输出的结果是“gesp ccf org cn ”,则横线上应填入哪个代码?( )
1 #include <iostream> 2 using namespace std; 3 4 int main() { 5 string str = "gesp.ccf.org.cn"; 6 7 string delimiter = "."; 8 string result=""; 9 string token; 10 size_t found = str.find(delimiter); 11 while (found != string::npos) { 12 token = str.substr(0, found); 13 result += token; 14 result += " "; 15 __________________________ // 在此处填入代码 16 found = str.find(delimiter); 17 } 18 19 //最后一部分 20 result += str; 21 result += " "; 22 23 cout << result << endl; 24 return 0; 25 }