Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void List::ReadFromFile()
- {
- ifstream fin("TUR.txt");
- Vladelec *temp;
- if (fin.is_open())
- {
- cout << "Файл открыт" << endl;
- while (!fin.eof())
- {
- temp = new Vladelec;
- fin >> temp->NameTUR >> temp->NameCountry>> temp->Duration >> temp->Stand >> temp->Thenumberofperm;
- temp->Next = Head;
- Head = temp;
- }
- cout << "Данные получены" << endl;
- fin.close();
- }
- else cout << "Файл не найден" << endl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement