Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次の C++ 関数では:
void save_data(std::ofstream& csv) { csv << "a message"; }
わからないことがあります:save_dataが呼び出された場合、どこに書き込みますか? ファイルに?それはどのように正確に使用されますか?
save_data
ofstreamはファイル システム上のファイルを表します。
ofstream
int main() { ofstream file("Plop.txt"); save_data(file); }