I am having trouble implementing a type def in a header file and using the same typedef in a source file (.c). Any help would be appreciated.
Also, I can't get a sum function to work, for when i want to sum the numbers pressed on a keypad( i would like to use numerics as my typedef). the numerics only returns a float number.
my code
float sum (void)
{
if(sum<=1)
{
sum = sum + numerics;
lcd_print_float (sum);
else(sum=numerics-1)
{
lcd_print_float(sum)
}
}
any help is greatly appreciated thanks!