problem compiling

I keep getting errors in my program and I am stuck. Would someone please help? below is my code and the intstructions for the problem

Last edited on
what are the error messages you are getting?

and it would help us if you use the when you post your code
what compiler are you using
Last edited on
these are the errors I got

line 4 - error C2143: syntax error : missing ';' before '=='
line 4 - error C2365: 'hatSize' : redefinition; previous definition was 'function'
declaration of 'hatSize'
line 63 - C2659: '=' : function as left operand
line 65 - error C2659: '+=' : function as left operand
Last edited on
found a couple of things
1. in the definition of the function hatsize you need to make the code look like this
[code]
double hatsize(double height, double weight);
{
return(weight/height)*2.9;
}

2. no return in the function jacketsize
2a. in function jacketsize you need to declare varible jacketsize as a double.


3 need the ending } in function waistsize
Last edited on
I made those changes and for 1. it now has an error that says missing function header. I'm not sure what that means.
i have got an error in the function jacketsize for fix 2a but i got a clear from the code in instruction 1. i use devc++. you don't need the {code} [/code] just what is between for instruction 1
your error for instruction one change hatsize to hatSize
i got the program to compile when you fix all the errors i found and told you about.

I hope i was able to help you out.
Last edited on
thanks for your help. i was using visual basic and one of the files got lost. i opened as different file and all worked! thanks again!
your welcome
Topic archived. No new replies allowed.