Advertisement
Dawid_PAr

dane1

Aug 6th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <fstream>
  4. #include <conio.h>
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. ofstream plik1;
  10. plik1.open("plik1.txt");
  11. string tab;
  12. while(getchar() != '\n')
  13. {
  14. getline(cin, tab, '\n');
  15. plik1 << tab << endl;
  16. }
  17. plik1.close();
  18.  
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement