2011-03-26, 06:59 AM
Yes, that is the problem.
The best way to fix it would be to change daysToNextThursday so it accepts the dayofweek as its (only) input argument. You compute that in your main program, so just pass it on.
If you are not allowed to change the function interfaces, then you must call the dayofWeek function again, from inside daysToNextThursday, to get that value.
Good luck.
The best way to fix it would be to change daysToNextThursday so it accepts the dayofweek as its (only) input argument. You compute that in your main program, so just pass it on.
If you are not allowed to change the function interfaces, then you must call the dayofWeek function again, from inside daysToNextThursday, to get that value.
Good luck.

