Program Two

Rewrite the program for Program 1 using structured data types (records) to represent players.

Player information should now include the player's first and last name and player statistics. The statistics you should keep are:

For this project please use structures, not classes.

Please place routines dealing with players into a set of files (player.cpp, player.h) by themselves. Please implement ALL player related routines in these files. These should inclue:

    void init_player(player_record & player, int player_number);
    void tell_about_player(player_record player);
    bool take_player_turn(player_record & player, int turn);
Please a hierarchical record structure, include a name structure and a statistics structure.

Please place routines dealing with the spinner into a set of files (spinner.cpp, spinner.h) by themselves. Place all routines dealing with the spinner into these files. Please declare an enumerated type that is used to reference the spinner by all routines outside of this file. Spinner routines should include:

When you are finished, email a copy of the source code for this program to dbennett@edinboro.edu. Make sure that this program compiles on the departmental unix machines.

This program is due on Wednesday October 3 at 11:59 pm.