Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void nove_nacteni(knihovna *p, unsigned int &pocet)
- {
- ifstream f("project.txt");
- int x=0;
- while(f >> p[x].nazev)
- {
- f >> p[x].prijmeni;
- f >> p[x].jmeno;
- f >> p[x].zanr;
- f >> p[x].cena;
- f >> p[x].strany;
- f >> p[x].rok;
- f >> p[x].precteno;
- f >> p[x].hodnoceni;
- f >> p[x].id;
- x++;
- }
- pocet=x;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement