|
From: Johannes P. <joh...@pr...> - 2001-06-28 07:23:38
|
>Date: Wed, 27 Jun 2001 10:06:33 +0200 >To: >dev...@li...,dev...@li...,dev...@li...,dev...@li... >From: Johannes Pretorius <joh...@pr...> >Subject: Fwd: Re: [Dev-C++] Error problems > > >>Date: Wed, 27 Jun 2001 10:01:55 +0200 >>To: dev...@li... >>From: Johannes Pretorius <joh...@pr...> >>Subject: Re: [Dev-C++] Error problems >> >>WHAAAAAAAAAAAA.. >> >>I want my mail also to appear on this LIST.,.. GRRR.. >> >>Anyways HERE is the Answer >> >>Make sure that the project options is set to compile for C++ >>After that it will work.. >> >>if not mail me. I had this prob also before >> >>good Luck >> >>Johannes >> >> >> >> >> >> >> >> >> >> >>At 14:37 27/06/2001 +0700, you wrote: >>>I try to correct them. .. >>> >>>1. I think the correct code is >>>#include <iostream.h> not #include <iostream> >>> >>>2. The prototype of: void getInput(string, float&); >>>is not match to function declaration: >>>void getInput(string name, float salary) >>>Second parameter must be fixed to: float& salary >>> >>>3. The same problem also causes of different prototypes to declarations. >>>The other prototypes of: >>>float calcFwt(float, float); >>>float calcFica(float, float); >>>float calcNetPay(float, float, float); >>>void displayInfo(string, float, float, float, float); >>> >>>respectively are not match (type or number of parameters) to function >>>declarations: >>>float calcFwt(float salary, const float FWT_RATE, float fwtTax) >>>float calcFica(float &salary, const float FICA_RATE, float ficaTax) >>>float calcNetPay(float salary, float fwtTax, float ficaTax, float netPay) >>>void displayInfo(string &name, float salary, float fwtTax, float ficaTax, >>>float netPay) >>> >>>If it's hard to make them consistent, dont make prototypes. Just put your >>>functions before main(). >>> >>> >>>___Nurhidayat___ >>> >>> >>> >>>_______________________________________________ >>>Dev-cpp-users mailing list >>>Dev...@li... >>>http://lists.sourceforge.net/lists/listinfo/dev-cpp-users |