I am working on a program in which everyting is perfect except Unhandled exception at 0x0041180c that I am getting at run-time and the location its specifying at is:
void candidateType::setVotes(int region, int votes)
{
votesByRegion[region-1]=votes;
}
I have checked it numerous times but still not getting it. Any help would be highly appreciated.