T-57:
Well it compiles now, but how can I change the values of the two functions into numbers which I can print to my LCD?
This will be counting down as the program goes on.
int myprescriptionfunctionA (int days, int iterations)
{
int remainingA;
remainingA = days - iterations;
return remainingA;
}
There is no need to separate the declaration and initialization of the variable. So, this should be:
int myprescriptionfunctionA (int days, int iterations)
{
int remainingA = days - iterations;
return remainingA;
}
Since the intermediate variable is not needed, it could be:
int myprescriptionfunctionA (int days, int iterations)
{
return days - iterations;
}
Which really makes be wonder why you need a function call at all.
By the way, I don't understand your question. Which values do you need to change to numbers (which makes no sense as values ARE numbers)?