peHaBOT

Untitled

May 23rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. void lista::zapisz_liste() {
  2. // wskaznik na pierszy element listy
  3. student *temp = first;
  4. fstream plik("~/peHaBOT/desktop/Studia/STUDIA - OWN/SII OWN/Programowanie/Files CPP/plik.txt");
  5. plik.open("plik.txt", ios::out | ios::trunc);
  6. // przewijamy wskazniki na nastepne elementy
  7. while (temp)
  8. {
  9. if(plik.good() == true)
  10. {
  11. plik << temp->nr_albumu << "\n";
  12. plik << temp->imie << "\n";
  13. plik << temp->nazwisko << "\n";
  14. }
  15. temp=temp->next;
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment