Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <string>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. ifstream plik("C:/liczby.txt");
  9.  
  10. if(plik)
  11. {
  12.  
  13.  
  14. string linia;
  15. while(getline(plik, linia))
  16. }
  17. else
  18. {
  19. cout << "BŁĄD: nie można otworzyć pliku do odczytu." << endl;
  20. }
  21.  
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement