• // Print array by row
•
• for (precinct = 0; precinct < NUM_PRECINCTS; precinct++)
• {
• reportFile << "Precinct" << setw(4)
<< precinct + 1;
• for (candidate = 0; candidate < NUM_CANDIDATES;
candidate++)
• reportFile << setw(12) <<
votes[precinct][candidate];
• reportFile << endl;
• }
• reportFile << endl;
•}
•
•