On Fri, May 30, 2008 at 2:33 AM, bo <[EMAIL PROTECTED]> wrote:
[...]
> const cTotal1;
> const cTotal2;
> const cTotal3;
You're missing the types out. And from the names they shouldn't be const.
[...]
> const cTotal1 = fTax1 * fSales;
> const cTotal2 = fTax2 * fSales;
> const cTotal3 = fTax3 * fSales;
Having declared them as const, you now try to change them. You cannot
do this. Remove the const requirement.
[...]
> printf ("\nYour total is: %c", cTotal1);
[...]
> printf ("\nYour total is: %c\n", cTotal2);
[...]
> printf ("\nYour total is: %c", cTotal3);
Look again at the printf() specifiers - %c is for a char. You'll need
%f instead.
--
PJH
'Two Dead in Baghdad' not 'product-friendly' - Kent Ertugrul, chief
executive of Phorm.
http://shabbleland.myminicity.com/