Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cout<< "\t\t\t\tGantt Chart" << endl;
- cout << " ";
- // print Gantt chart (6 spaces)
- for(int a = 0 ; a < 68; a++)
- {
- cout << "-";
- }
- cout << endl;
- cout << " ";
- for(int b = 0; b < 204; b++)
- {
- switch (b)
- {
- case 0:
- case 7:
- case 14:
- case 21: // first line of barlines
- case 28:
- case 34:
- case 41:
- case 48:
- case 55:
- case 62:
- // 89 90 91 92 93 94 95 96 // 96 97 98 99 100 101 102 103
- //79 // 86 // 93 //
- /* case 74: // middle
- case 80:
- case 86:
- case 92:
- case 95:
- case 99:
- case 109:
- case 115:
- case 121: */
- case 125:
- case 133:
- case 140:
- case 147:
- case 154:
- case 160:
- case 167:
- case 174:
- case 181:
- case 188:
- case 193:
- case 67:
- //135 middle barline right
- cout << "|";
- if(b == 67 || b == 125)
- {
- cout << endl;
- }
- break;
- case 68:
- case 126:
- //68 middle barline left
- if(b == 126)
- {
- cout << " |";
- break;
- }
- cout << " |";
- break;
- case 71: //1
- case 77:// 2
- case 83://3
- case 89: //4
- case 94: //5
- case 100: //6
- case 106: // 7
- case 112:
- case 118:
- case 123:
- if(counter <= row)
- {
- cout << "P" << counter;
- counter++;
- }
- else{
- cout << "x ";
- }
- break;
- default:
- cout << " ";
- break;
- }
- }
- cout << endl;
- cout << " ";
- for(int a = 0 ; a < 68; a++)
- {
- cout << "-";
- }
- cout << endl;
- cout << " ";
- for(int label = 0 ; label < 68; label++)
- {
- switch(label)
- {
- case 0:
- case 7:
- case 14:
- case 21:
- case 28:
- case 35:
- case 42:
- case 49:
- case 56:
- case 63:
- case 70:
- if(arraycounter <= row)
- {
- if(arraycounter == row)
- {
- cout << final_time;
- arraycounter++;
- break;
- }
- cout << array[arraycounter][6];
- arraycounter++;
- }
- else{
- cout << "-";
- }
- break;
- default:
- cout << " ";
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement