wonman

Untitled

Feb 7th, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <fstream>
  4.  
  5. using namespace std;
  6. int main()
  7. {
  8.    
  9.     string a;
  10.     getline(cin,a);
  11.     ofstream OUT;
  12.     OUT.open("nowy.txt", ios::out | ios::app);
  13.     OUT<<a;
  14.     OUT<<endl;
  15.     OUT.close();
  16.    
  17.    
  18.    
  19.    
  20.     system("pause");
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment