Can somebody please tell me why this will not run I keep getting told that "value" is undefined on line 2 and 47 and end of the program, on line 29 I get the error "term does not evaluate to a function taking 1 arguments, and on line 49 I get the error for the term calcTax function-style initializer appears to be a function definition. I checked similar programs and they look the same, all though I am new at this, I am not sure what I need to change to make this work, I have been staring at this for like an hour and every change gets me a new error.
#include <stdio.h>
double calcTax(value);
int main()
{
int PropertyID;
double PropertyValue;
double TaxDue;
double TotalTaxDue;
double value;
double Tax;
Please use code tags!
...and the syntax for a function foward declaration is: return_type function_name(argument_type argument_name);
So in your case,I guess double calcTax(double value);
By the way fflush(stdin); has undefined (or unspecified) behavior according to the language standard. It does something useful with some compilers. I would avoid using it, especially if you want to write portable code.