Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. void TabD::Fill()
  2. {
  3. fstream file;
  4. file.open("plik.txt", ios::in);
  5. if (file.good())
  6. {
  7. int tmp_size, tmp_value;
  8. file >> tmp_size;
  9. for (int i = 0; i < tmp_size; i++)
  10. {
  11. file >> tmp_value;
  12. AddLast(tmp_value);
  13. }
  14. file.close();
  15. } else cout << "Blad otwierania pliku!" << endl;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement