Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int i=0;i < 2;i++){ // verificar se a utilização por periodo é maior que a capacidade por periodo
- for(int j=9;j >= 0;j--){
- if (recs[i].ut_per[j] > recs[i].cap_per[j]){
- sobra = recs[i].ut_per[j] - recs[i].cap_per[j];
- plans[i].prod_per[j] = recs[i].cap_per[j];
- plans[i].prod_per[j-1] = recs[i].ut_per[j-1] + sobra;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement