Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class read : public virtual f{
- public:
- void f_read() {
- struct student chel;
- fopen_s(&ou, "flilk", "ab+");
- fread(&chel, sizeof(chel), 1, ou);
- while (!feof(ou)) {
- cout << " ФИО студента " << chel.im << " " << chel.fam << " " << chel.ot << endl;
- cout << " Дата рождения студента " << chel.b_day << " " << chel.b_month << " " << chel.b_year << endl;
- cout << " Кафедра, номер группы и зачётки " << chel.kaf << " " << chel.group << " " << chel.zachetka << endl;
- cout << " Количество ссесий " << chel.sess_co << endl;
- for (int i = 0; i < chel.sess_co; i++) {
- cout << " Количество предметов " << i +1 << " сессии равно " << chel.s[i].predm_co << endl;
- for (int j = 0; j < chel.s[i].predm_co; j++) {
- cout << " Название предмета и оценка " << chel.s[i].p[j].name << " " << chel.s[i].p[j].mark << endl;
- }
- }
- cout << "\n\n";
- fread(&chel, sizeof(chel), 1, ou);
- }
- fclose(ou);
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment