•void GetNames( string[] );
•void OpenForInput( ifstream& );
•void OpenForOutput( ofstream& );
•void WritePerCandidate(const VoteArray, const
string[],
• ofstream& );
•void WritePerPrecinct( const VoteArray, ofstream&
);
•void WriteReport( const VoteArray, const
string[], ofstream& );
•void ZeroVotes( VoteArray );
•
•int main()
•{
• string
name[NUM_CANDIDATES]; // Array of
candidate names
• VoteArray votes; // Totals for precincts vs. candidates
• int candidate; // Candidate
number input from voteFile
• int precinct; // Precinct
number input from voteFile
• ifstream
voteFile; // Input file of
precincts, candidates
• ofstream
reportFile; // Output file
receiving summaries