Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void write_file() {
- ofstream File("database.txt");
- for (int current_size = 0; current_size < max; current_size++) {
- File << list[current_size].number << " | " << list[current_size].B << " | " << list[current_size].day << " | " << list[current_size].hour_a << ":" << list[current_size].minute_a << " | ";
- File<< list[current_size].hour_b <<':'<< list[current_size].minute_b << " | "<<endl;
- }
- cout << "Запись завершена...";
- File.close();
- cout << "Что дальше?" << endl;
- main();
- }
- void read_file() {
- ifstream File("database.txt");
- string a;
- for (int i = 0; i < max; i++) {
- getline(File, a);
- cout << a<<endl;
- }
- cout << "Что дальше?" << endl;
- main();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement