Thanks I just read about those last night. I will work on it.
--- In [email protected], "John Matthews" <[EMAIL PROTECTED]> wrote: > > --- In [email protected], Steve Searle <steve@> wrote: > > > > Around 04:58am on Thursday, May 29, 2008 (UK time), bo scrawled: > > > > > I am writing this program in C to figure tax for 3 stores with 3 > > > different tax percents. It is my first program and is an assignment. > > > All I need is some direction. NOT THE ANSWER. The program gives this > > > error. c:\miracle c\examples\taxcalcprog.c: line 13: Parse Error, > > > expecting `SEP' > > > 'float fTotal1 float fTotal2 float fTotal3 iResponse = 0' > > > > At first glance you are missing semi-colons from the end of many of your > > statements, starting at line 13 which is the line your compiler is > > flagging in error. > > Also, not a compiler error, but when checking the response you have: > > if (condition) > statement1; > statmenet2; > > But condition only determines whether statement1 is executed, and > statement2 will always be executed. You need braces (to make a > 'compound statement'): > > if (condition) > { > statement1; > statement2; > } > > If you're interested, a better way of checking the response would be > to use a 'switch' construct. > > John >
