2014-05-02, 01:35 AM
Dudewitbow Wrote:after you declare the # of floodlights from the second digit, you have to have the floodlight data be an array of doubles(even if there is 1 floodlight e.g //double floodlightPower[numFloodlight]
so when you pass in the array, your calculation array should have the ability in a forloop manner to calculate both distances by using a for loop inside of the distance function. if numFloodlight is 1, then the loop passes once. if numFloodlight is 2, then it should pass twice. i'll leave it to you to figure out how the array will find out how many times it has to loop.
The only problem with this is that in the floodlightPower array, numFloodlight has to be a constant value :/ so idk what to do..


