This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
struct | fish_t |
This structure information about fish in my freezer. More... | |
Defines | |
#define | MAX_FISH 10 |
The number of fish that fit in my freezer. | |
Enumerations | |
enum | fishTypes { fishType_none, fishType_trout, fishType_carp, fishType_salmon } |
The types of fish in my freezer. More... | |
Functions | |
void | FillFreezer () |
Fills the freezer with fish. | |
int | Weigh (fishTypes inType) |
Returns the total weight of all fish of one type in the freezer. | |
int | WeighEm (fishTypes inType) |
Returns the total weight of all fish of one type in the freezer. | |
Variables | |
fish_t | freezer [MAX_FISH] |
The fish in my freezer. |
This is the more extensive documentation for this file. In particular, it can span multiple lines whereas the brief documentation is limited to one line.
Definition in file fish.h.
|
The number of fish that fit in my freezer. Of course, it really depends on the size of the fish and if I upgrade my freezer I will certainly need to enlarge this number. The only reason for all this typing is create a detailed description. |
|
The types of fish in my freezer. This is more information about this enumeration, which could span multiple lines and explain why we decided to put these things together in an enumeration. |
|
Fills the freezer with fish. This function places four fish in my freezer. This comment provides the detailed description for this function. Definition at line 20 of file fish.c. References fishType_carp, fishType_none, fishType_salmon, fishType_trout, freezer, fish_t::myType, and fish_t::myWeight. Referenced by main(). |
|
Returns the total weight of all fish of one type in the freezer. This function iterates through all the fish in my freezer of a particular type and sums up their weights. This function replaces the defective WeighEm() function.
Definition at line 38 of file fish.c. References freezer, MAX_FISH, fish_t::myType, and fish_t::myWeight. Referenced by main(). |
|
Returns the total weight of all fish of one type in the freezer. This function iterates through all the fish in my freezer of a particular type and sums up their weights.
Definition at line 58 of file fish.c. References freezer, MAX_FISH, fish_t::myType, and fish_t::myWeight. |
|
The fish in my freezer. Here's where we define the freezer variable, this comment provides the detailed description for this variable. Definition at line 44 of file fish.h. Referenced by FillFreezer(), Weigh(), and WeighEm(). |