Advertisement
Maksud3

Creatures.h

Oct 16th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. #pragma once
  2.  
  3. #define STR_LEN 50
  4.  
  5. #define MENU_RESET -1
  6. #define MENU_EXIT 0
  7. #define MENU_PRINT 1
  8. #define MENU_ADD 2
  9. #define MENU_DEL 3
  10.  
  11. struct Creature
  12. {
  13.     int year;
  14.     char name[STR_LEN];
  15.     char author[STR_LEN];
  16.     char museum[STR_LEN];
  17. };
  18.  
  19. struct List
  20. {
  21.     Creature C;
  22.     List* next;
  23. };
  24.  
  25. void PrintChar(char c, int count);
  26.  
  27. bool Menu(int* pTask);
  28. void InputCtgMenu(int from, int to, int* pTask);
  29.  
  30. void InsertList(List** begin, Creature *C);
  31. void PrintList(List *L);
  32.  
  33. void InputCreature(Creature* pCreature);
  34. void AddCreature(List** begin);
  35. void DeleteCreature(List** begin);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement