fork download
  1. #include <iostream>
  2. #include <fstream>
  3.  
  4. void out(std::ofstream &fout)
  5. {
  6. fout << "TEST";
  7. }
  8.  
  9. int main()
  10. {
  11. std::ofstream fout{"test.txt"};
  12.  
  13. out(fout);
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 3268KB
stdin
Standard input is empty
stdout
Standard output is empty