程序應該將輸入數字的字符串和數字分隔符作爲輸入,並將4個單詞輸出到單獨的行中。 例 Please enter a digit infused string to explode: You7only7live7once
Please enter the digit delimiter: 7
The 1st word is: You
The 2nd word is: only
The 3rd
第二次不起作用。我試圖filestr.clear()/ flush()和其他人沒有結果。如果我在第一時間評論一切正常,但我需要對象的數量。有人請幫助 while (std::getline(filestr, line)) {
if (line.find("<rect") != std::string::npos) count_rect++;
}
rect =