Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdio.h>
- #include <cstdio>
- #include <cstdlib>
- #include <cmath>
- using namespace std;
- void default_action();
- void add_student();
- void edit();
- void show_information_about_one_student();
- void show_students_passed_eight_nine_ten();
- struct data_about_student {
- char FemailIO[30];
- short int year_of_birth;
- int number_of_group;
- short int mark_of_physic;
- short int mark_of_math;
- short int mark_of_informatic;
- short int mark_of_chimestry;
- double several_mark;
- } information;
- int main() {
- default_action();
- cout << "???";
- }
- void default_action() {
- printf("\n", "choose waht you need to do\n1. Add student\n2. Edit information about student\n3. Show information about 1 student\n4. Show students, who pass exams on the 8, 9, 10.\n");
- short int variants_of_actions;
- cin >> variants_of_actions;
- cout << endl;
- switch (variants_of_actions) {
- case 1:
- add_student();
- break;
- case 2:
- edit();
- break;
- case 3:
- show_information_about_one_student();
- break;
- case 4:
- show_students_passed_eight_nine_ten();
- break;
- }
- }
- void add_student() {
- cout << "good1";
- }
- void edit() {
- cout << "good2";
- }
- void show_information_about_one_student() {
- cout << "good3";
- }
- void show_students_passed_eight_nine_ten() {
- cout << "good4";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement