Advertisement
macrofish

lalalalalalallallalalla

May 15th, 2013
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. void nove_nacteni(knihovna *p, unsigned int &pocet)
  2. {
  3.         ifstream f("project.txt");
  4.         int x=0;
  5.         while(f >> p[x].nazev)
  6.     {
  7.                 f >> p[x].prijmeni;
  8.                 f >> p[x].jmeno;
  9.                 f >> p[x].zanr;
  10.                 f >> p[x].cena;
  11.                 f >> p[x].strany;
  12.                 f >> p[x].rok;
  13.                 f >> p[x].precteno;
  14.                 f >> p[x].hodnoceni;
  15.                 f >> p[x].id;
  16.         x++;
  17.         }
  18.         pocet=x;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement