I can't seem to understand how I can get the program to put down the column instead of the row. Here is my program as of now:
case 'b':
case 'B':
if (Work_ID >=1 || Work_ID <= 4)
{
cout << "Please enter the worker ID: ";
cin >> Work_ID;
cout << "What day do you want the report end on? ";
cin >> Day;
cout << " Individual report: \n";
cout << name[Work_ID-1];
Work_ID = 0;
for(k =0; k < Day ; k++)
{
cout << work_hours[Day-1][k];
cout << " \n"<<"\n";
}
}
What it was suppose to do was display the column array after i have displayed the name array. basically like this:
Please enter your selection : B
Please enter the student ID : 1
What day do you want the report to end on? 3
Individual report:
Mary Johnson : 4 3 4
but I got this output:
Mary Johnson: 5 5
Everything is correct above it except that, I wanted to read 4 3. What should I do?
Thanks
case 'b':
case 'B':
if (Work_ID >=1 || Work_ID <= 4)
{
cout << "Please enter the worker ID: ";
cin >> Work_ID;
cout << "What day do you want the report end on? ";
cin >> Day;
cout << " Individual report: \n";
cout << name[Work_ID-1];
Work_ID = 0;
for(k =0; k < Day ; k++)
{
cout << work_hours[Day-1][k];
cout << " \n"<<"\n";
}
}
What it was suppose to do was display the column array after i have displayed the name array. basically like this:
Please enter your selection : B
Please enter the student ID : 1
What day do you want the report to end on? 3
Individual report:
Mary Johnson : 4 3 4
but I got this output:
Mary Johnson: 5 5
Everything is correct above it except that, I wanted to read 4 3. What should I do?
Thanks
Comment