no, i didn't forget i++
here's the function:
void input(int numcandidates, apvector<apstring> & names, int votes[100], int & counter) {
apstring input,temp;
cout<<"How many entries will you have?";
cin>>counter;
cout<<"Please enter each entry in the format 'ABC4'"<<endl;
for (int k=0;k<counter;k++) {
cout<<"Please enter the entry: ";
cin>>input;
votes[k]=input[numcandidates]-48;
for (int j=0;j<numcandidates;j++)
temp+=input[j];
names[k]=temp;
cout<<names[k]<<endl;
}
return;
}