using namespace std;
const int NUM_ROW=8;
const int NUM_COL=7;
void addArray(int sum1, int sum2, int sum3, int sum4m,int sum5,int sum6, int sum7, int sum8,int schedule[][NUM_COL],string employee[8],string days[8][0]);
void mostHrs(int schedule[][NUM_COL],string employee[8],string days[8][0]);
int FindEight(int schedule[][NUM_COL]);
int main()
{
int sum1, sum2, sum3, sum4m,sum5,sum6, sum7, sum8;
string days[8][0]={"su","m","t","w","h","f","sa","totals"};
int schedule[NUM_ROW][NUM_COL]={{2,4,3,4,5,8,8},
{7,3,4,3,3,4,4},
{3,3,4,3,3,2,2},
{9,3,4,7,3,4,1},
{3,5,4,3,6,3,8},
{3,4,4,6,3,4,4},
{3,7,4,8,3,8,4},
{6,3,5,9,2,7,9}};
void addArray(int sum1, int sum2, int sum3, int sum4,int sum5,int sum6, int sum7, int sum8,int schedule[][NUM_COL],string employee[8],string days[8][0])
{
Well, you have a LOT of for loops, and some of them look useless...like the ones that run only once...wtf? I can't follow your program at all. Please revise it and use [code][/code] tags...
the loops seem fine i think i know what you are talking about in the addArray function and mostHrs function... they used to calculate the total of every row.
it seems like when i run it i have a infinite loop somewhere but i cannot find it.