Why does this cause a program freeze?
1 2 3 4 5 6 7
|
void calcbatavg()
{
for(int index=0;index<MAXPLAYER;index++)
{
batavgs[index]=((hits[index])/(atbats[index]-walks[index]));
}
}
|
Ever since I put this piece of the puzzle in place it causes my program to freeze and not file output anything. What am i doing wrong here?
Last edited on
This code looks fine. Have you tried debugging?
Topic archived. No new replies allowed.