ok I have a program that reads in values from a file which contains a bunch of numbers, it tallies these numbers as votes in 6 different races and prints out the number of votes for each candidate as well as the winner and the percentage of votes, i need to rewrite the program using arrays which i dont know how to do, heres the program:
#include
#include
using namespace std;
void
tally(int&,int&,int&,int&,int&...
void print(int, int, int, int);
int main() {
int p1=0,p2=0,vp1=0,vp2=0,s1=0,s2=...
int vote;
ifstream voter;
voter.open("ballot.txt");
while(!voter.eof()){
2007-03-20
01:07:51
·
1 answers
·
asked by
Alex P
2
in
Programming & Design