例如,如果我想在两个对象上使用提取运算符将相同的数据发送到两个对象以获取语法快捷方式
(out_file, cout) << "\n\nTotal tokens found: " << statistics[0] << "\n\nAlphaNumeric Tokens: " << statistics[1]
<< "\n\nPunctuation character found: " << statistics[2] << "\nNumber of whitespace: " << statistics[3]
<< "\nNumber of newlines: " << statistics[4] << "\n\nTokens are stored in out file\n\nPress Enter to exit....";
那么数据同时应用于 out_file 和 cout 呢?out_file 是 fstream..