fork(1) download
  1. #include <iostream>
  2. #include <fstream>
  3. using namespace std;
  4.  
  5. int main(){
  6.  
  7. // cout // cin
  8.  
  9. ofstream fout;
  10. ifstream fin;
  11. string str;
  12. char filename[256]="c:\\tempo\\gb.txt";
  13. /*
  14.   fin.open(filename);
  15.   while(getline(fin, str)){
  16.   cout << str << "\n";
  17.   }
  18.   fin.close();
  19.   *
  20.   *
  21.   * */
  22.  
  23. int i=102, j=405;
  24. fout.open(filename);
  25. fout << i*j;
  26.  
  27.  
  28.  
  29. return 0;
  30. }
  31.  
Success #stdin #stdout 0s 2856KB
stdin
Standard input is empty
stdout
Standard output is empty