czemu

Wyświetlanie

Jun 8th, 2022 (edited)
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. void zad2wyswietlA()
  2. {
  3.     cout << "plik1: " << endl;
  4.     ifstream Wodczyt("plik1.txt");
  5.     string wiersz;
  6.     while (!Wodczyt.eof()){
  7.         getline(Wodczyt,wiersz);
  8.         cout << wiersz << endl;
  9.     }
  10.     Wodczyt.close();
  11. }
Add Comment
Please, Sign In to add comment