Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C++ Project, need all the help i can get!
#19
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]Wink
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..
Reply


Messages In This Thread
C++ Project, need all the help i can get! - by InvictHero - 2014-05-02, 01:35 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)