Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdio.h>
- #include <windows.h>
- #include <fstream>
- using namespace std;
- struct predm {
- char name[20];
- int mark;
- };
- struct session {
- predm p[10];
- int count;
- };
- struct student {
- char fam[20];
- char im[20];
- char ot[20];
- int b_day;
- int b_month;
- int b_year;
- int year_apply;
- char kaf[20];
- char group[20];
- int zachetka;
- session s[10];
- };
- class input {
- public:
- int count;
- void in_count() { cout << "введите число студентов"; cin >> count;}
- };
- class filework : public input {
- public:
- void f_in() {
- FILE* ou;
- int s = 0;
- fopen_s(&ou, "flilk", "wb");
- struct student chel;
- for (int i = 0; i < count ; i++) {
- cout << "ВВедите имя, фамилию и отчество студента ";
- cin >> chel.im >> chel.fam >> chel.ot;
- cout << "Введите дату рожедния студента, день, месяц и год ";
- cin >> chel.b_day >> chel.b_month >> chel.b_year;
- cout << "Введите кафедру, номер груммы и номер зачётки студента ";
- cin >> chel.kaf >> chel.group >> chel.zachetka;
- cout << "Введите количество ссесий, по которым вы хотите ввести информацию по данному студенту ";
- int temp_sess;
- cin >> temp_sess;
- for (int i; i < temp_sess; i++) {
- cout << "Введите количество предметов, по которым вы хотите ввести данные этой сессии ";
- int temp_subj;
- cin >> temp_subj;
- for (int j; j < temp_subj; j++) {
- cout << "Введите название предмета, а затем оценку по нему";
- }
- }
- }
- }
- };
- int main()
- {
- SetConsoleCP(1251);
- SetConsoleOutputCP(1251);
- input obj;
- obj.in_count();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement