Guest User

Untitled

a guest
Apr 6th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.61 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4.  
  5. #define CREATE 0
  6. #define MODIFY 1
  7.  
  8. FILE
  9. *
  10. fp
  11. ;
  12.  
  13. struct
  14. record
  15. {
  16. int
  17. id
  18. ;
  19. // id of record
  20. char
  21. name
  22. [
  23. 100
  24. ]
  25. ;
  26. // name of player
  27. int
  28. goals
  29. ;
  30. // number of goals the player scored this season
  31. struct
  32. record
  33. *
  34. next
  35. ;  // pointer of the next record
  36. };
  37.  
  38. struct
  39. temp
  40. {
  41. int
  42. id
  43. ;
  44. // id of record
  45. char
  46. name
  47. [
  48. 100
  49. ]
  50. ;
  51. // name of player
  52. int
  53. goals
  54. ;
  55. // number of goals the player scored this season
  56. }
  57. ;
  58.  
  59. struct
  60. record
  61. *
  62. fst_rec
  63. =
  64. NULL
  65. ,
  66. *
  67. act_rec
  68. =
  69. NULL
  70. ,
  71. *
  72. new_rec
  73. =
  74. NULL
  75. ,
  76. *
  77. prev_rec
  78. =
  79. NULL
  80. ;
Add Comment
Please, Sign In to add comment