Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #define CREATE 0
- #define MODIFY 1
- FILE
- *
- fp
- ;
- struct
- record
- {
- int
- id
- ;
- // id of record
- char
- name
- [
- 100
- ]
- ;
- // name of player
- int
- goals
- ;
- // number of goals the player scored this season
- struct
- record
- *
- next
- ; // pointer of the next record
- };
- struct
- temp
- {
- int
- id
- ;
- // id of record
- char
- name
- [
- 100
- ]
- ;
- // name of player
- int
- goals
- ;
- // number of goals the player scored this season
- }
- ;
- struct
- record
- *
- fst_rec
- =
- NULL
- ,
- *
- act_rec
- =
- NULL
- ,
- *
- new_rec
- =
- NULL
- ,
- *
- prev_rec
- =
- NULL
- ;
Add Comment
Please, Sign In to add comment