im tierd, and making mistakes, i cant see the error in my header file...please help.
header
Code:
#include <stdio.h>
#define labor 0.35
#define tax .085
int main (void);
void getnum (float *le, float *wi, float *di, float *co);
void calc1(float ln, float wd, float ds, float cs, float *area, float
*carpet, float *labor, float *install, float *discount, float *subt, float *total);
void calc2(float len, float wid, float cos, float *are, float *car, float *lab, float *ins);
void calc3(float carp, float labo, float inst, float dcs, float *disc, float *subto);
void calc4(float subs, float *totalf);
main file
Code:
#include "my.h"
int main (void)
{
// Local Declarations
float l;
float w;
float d;
float c;
float ar;
float ca;
float la;
float in;
float dis;
float su;
float to;
//Statements
//Get the input form the user
getnum(&l,&w,&d,&c);
calc1(l,w,d,c,&ar,&ca,&la,&in,&dis,&su,&to);
print1(l,w,d,c,ar,ca,la,in,dis,su,to);
return 0;
}
error
Code:
-bash-3.00$ gcc -c main.c
In file included from main.c:1:
my.h:7: error: syntax error before numeric constant
its probably obvious to you guys
warthog