Advertisement
Dawid_PAr

dane

Aug 6th, 2019
190
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. int main()
  7. {
  8. ofstream plik1;
  9. plik1.open("plik1.txt");
  10. string tab;
  11. while(getchar() != '\n')
  12. {
  13. cin >> tab;
  14. getchar();
  15. plik1 << tab << endl;
  16. }
  17. plik1.close();
  18.  
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement