Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Fill(struct zmones mas [])
- {
- ifstream file ("Gyventojai.txt");
- int n;
- file >> n;
- for(int i = 0; i < n; i++){
- file >> mas[i].Vardas; file >> mas[i].Pavarde;
- file >> mas[i].metai; file >> mas[i].menuo; file >> mas[i].diena;
- file >> mas[i].miestas; file >> mas[i].lytis;
- }
- file.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement