Advertisement
illfate

Untitled

Mar 9th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdio.h>
  3. #include <cstdio>
  4. #include <cstdlib>
  5. #include <cmath>
  6. using namespace std;
  7.  
  8. void default_action();
  9. void add_student();
  10. void edit();
  11. void show_information_about_one_student();
  12. void show_students_passed_eight_nine_ten();
  13. struct data_about_student {
  14. char FemailIO[30];
  15. short int year_of_birth;
  16. int number_of_group;
  17. short int mark_of_physic;
  18. short int mark_of_math;
  19. short int mark_of_informatic;
  20. short int mark_of_chimestry;
  21. double several_mark;
  22. } information;
  23. int main() {
  24. default_action();
  25. cout << "???";
  26. }
  27. void default_action() {
  28. 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");
  29. short int variants_of_actions;
  30. cin >> variants_of_actions;
  31. cout << endl;
  32. switch (variants_of_actions) {
  33. case 1:
  34. add_student();
  35. break;
  36. case 2:
  37. edit();
  38. break;
  39. case 3:
  40.  
  41. show_information_about_one_student();
  42. break;
  43. case 4:
  44. show_students_passed_eight_nine_ten();
  45. break;
  46. }
  47. }
  48. void add_student() {
  49. cout << "good1";
  50. }
  51. void edit() {
  52. cout << "good2";
  53. }
  54. void show_information_about_one_student() {
  55. cout << "good3";
  56. }
  57. void show_students_passed_eight_nine_ten() {
  58. cout << "good4";
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement