Advertisement
3axap_010

header.h

Jun 18th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.23 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5. #include <string.h>
  6. #include <conio.h>
  7. #include <locale.h>
  8.  
  9. struct student
  10. {
  11.     char* name;
  12.     char* surname;
  13.     char* patronimyc;
  14.     char letter;
  15.     int year;
  16.     int marks_numb;
  17.     int *marks;
  18. };
  19.  
  20. struct list
  21. {
  22.     struct student* stud;
  23.     struct list* left;
  24.     struct list* right;
  25. };
  26.  
  27. int get_int();
  28.  
  29. char* get_string();
  30.  
  31. int get_year();
  32.  
  33. int get_positive();
  34.  
  35. int* get_ints(int size);
  36.  
  37. struct student* get_student();
  38.  
  39. struct student* student_delete(struct student* stud);
  40.  
  41. void student_print(struct student* stud);
  42.  
  43. int students_cmp(struct student* stud1, struct student* stud2);
  44.  
  45. void student_copy(struct student* source, struct student* destinition);
  46.  
  47. struct list* add_element(struct list* ring, struct student* stud);
  48.  
  49. struct list* move(struct list* el, char direction);
  50.  
  51. void show(struct list* ring, char direction);
  52.  
  53. struct list* search(struct list* head, struct student* stud);
  54.  
  55. struct list* delete_node(struct list* ring, struct student* stud);
  56.  
  57. void ring_free(struct list** ring);
  58.  
  59. void sort_by_value(struct list* head);
  60.  
  61. struct list* sort_by_pointer(struct list* head);
  62.  
  63. int choose();
  64.  
  65. void info();
  66.  
  67. void choose(struct list** ring, struct student* stud);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement