Advertisement
Guest User

Untitled

a guest
Dec 18th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #include<iostream>
  2. #include<fstream>
  3. #include<string>
  4.  
  5. using namespace std;
  6.  
  7. void zad1()
  8. {
  9. string a;
  10. ifstream wejscie("text.txt");
  11. while (!wejscie.eof())
  12. {
  13. getline(wejscie, a);
  14. cout << a << endl;
  15. }
  16. wejscie.close();
  17.  
  18. }
  19.  
  20. void zad2()
  21. {
  22. string a;
  23. ofstream wyjscie("output.txt");
  24. getline(cin, a);
  25. wyjscie << a;
  26. wyjscie.close();
  27. }
  28.  
  29. void zad5()
  30. {
  31. string a;
  32. ifstream wejscie()
  33. }
  34. int main()
  35. {
  36. zad2();
  37.  
  38. system("pause");
  39. return 0;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement