Oct 17, 2015 at 7:12pm UTC
Hi.
i'm stuck at this point, so some fast help would be nice :)
Last edited on Oct 17, 2015 at 7:58pm UTC
Oct 17, 2015 at 7:22pm UTC
Not enough information.
You don't tell us what Construction looks like. Please post its declaration.
From what you have posted, this is a simple loop to find the entry in an array with the smallest value for the number of craftsmen.
Do you know how to iterate through an array and find the smallest value?
Oct 17, 2015 at 7:25pm UTC
N
Last edited on Oct 17, 2015 at 7:58pm UTC
Oct 17, 2015 at 7:45pm UTC
Yes, I mean the post the declaration for your Construction class.
If I gave you an array of 100 ints, could you write a loop to find the smallest int in the array?
Oct 17, 2015 at 7:48pm UTC
B
Last edited on Oct 17, 2015 at 7:58pm UTC
Oct 17, 2015 at 7:56pm UTC
You did not post the declaration for your class as requested, nor did you answer my question.
Your problem is really not much different than finding the smallest value in an array of ints. If you can't do that, then you need to learn how to do that before tackling a harder problem.
Last edited on Oct 17, 2015 at 7:56pm UTC