fork download
  1. #include <iostream>
  2. #include <fstream>
  3. using namespace std;
  4. struct stabc
  5. {
  6. ofstream &t;
  7. stabc(ofstream &obj):t(obj){}
  8. };
  9.  
  10. int main()
  11. {
  12. ofstream obj2;
  13. stabc obj(obj2);
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0.01s 2720KB
stdin
Standard input is empty
stdout
Standard output is empty