im tierd, and making mistakes, i cant see the error in my header file...please help.
header
main fileCode:#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);
errorCode:#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; }
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



LinkBack URL
About LinkBacks


