Okay, so I am working on a project and here is one of the questions
1. Write a program that calculates the number of huge, large, medium, and small containers needed to send the shipment in the minimum number of containers and with the minimum amount of wasted container space.
And here is what I wrote down
cout << "No. Doflingies: " << totDoflingies;
cout << " \n";
totDoflingies / huge = Hugeboxes;
totDoflingies % huge = remainderDoflingies;
remainderDoflingies / large = Largeboxes;
remainderDoflingies % large = leftoverDoflingies;
leftoverDoflingies / medium = Mediumboxes;
leftoverDoflingies % medium = Smallboxes;
totDoflingies / huge = Hugeboxes;
totDoflingies % huge = remainderDoflingies;
remainderDoflingies / large = Largeboxes;
remainderDoflingies % large = leftoverDoflingies;
leftoverDoflingies / medium = Mediumboxes;
leftoverDoflingies % medium = Smallboxes;
You can't do arithmetic on the left side of the assignment operator.
PLEASE USE CODE TAGS (the <> formatting button) when posting code. http://v2.cplusplus.com/articles/jEywvCM9/
It makes it easier to read your code and it also makes it easier to respond to your post.
Hint: You can edit your previous post, highlight your code and press the <> formatting button.