I
itneophyte85
Guest
hi
i got few bizzare error messages coming from my header file while compiling the code:
(line 1) error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
does not make sense (see line 1 file.h), unless string type is not recognised using windows form app
(line 2)error C2447: { : missing function header (old-style formal list?)
does not make sense as its populated
(line 3) error C2146: syntax error : missing ; before identifier bucket
non sense
(line 1) error C2146: syntax error : missing ) before identifier vola
non sense
(line 2) error C2143: syntax error : missing ; before {
same
(line 1) error C2059: syntax error : )
unbelievable (see file.h)
(line 411-> Form.h) error C2064: term does not evaluate to a function taking 0 arguments : expected as the function is not recognised.
Form.h
lblvol->Text = Convert::ToString(anSigma);
bucket(); //line 411
file.h
string bucket(string vola, string rclass) // line 1
{
vola = lblvol->Text; //line 3
rclass=lblclass->Text; //line 4
//line 6
if (vola >= 0 && vola <0.5 )
{rclass=="1";}
else if (vola >= 0.5 && vola <2 )
{rclass=="2";}
else if (vola >= 2 vola <5 )
{rclass=="3";}
else if (vola >= 5 && vola <10 )
{rclass=="4";}
else if (vola >= 10 vola <15 )
{rclass=="5";}
else if (vola >= 15 vola <25 )
{rclass=="6";}
else if (vola >= 25
{rclass=="7";}
return rclass;
Thanks
Continue reading...
i got few bizzare error messages coming from my header file while compiling the code:
(line 1) error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
does not make sense (see line 1 file.h), unless string type is not recognised using windows form app
(line 2)error C2447: { : missing function header (old-style formal list?)
does not make sense as its populated
(line 3) error C2146: syntax error : missing ; before identifier bucket
non sense
(line 1) error C2146: syntax error : missing ) before identifier vola
non sense
(line 2) error C2143: syntax error : missing ; before {
same
(line 1) error C2059: syntax error : )
unbelievable (see file.h)
(line 411-> Form.h) error C2064: term does not evaluate to a function taking 0 arguments : expected as the function is not recognised.
Form.h
lblvol->Text = Convert::ToString(anSigma);
bucket(); //line 411
file.h
string bucket(string vola, string rclass) // line 1
{
vola = lblvol->Text; //line 3
rclass=lblclass->Text; //line 4
//line 6
if (vola >= 0 && vola <0.5 )
{rclass=="1";}
else if (vola >= 0.5 && vola <2 )
{rclass=="2";}
else if (vola >= 2 vola <5 )
{rclass=="3";}
else if (vola >= 5 && vola <10 )
{rclass=="4";}
else if (vola >= 10 vola <15 )
{rclass=="5";}
else if (vola >= 15 vola <25 )
{rclass=="6";}
else if (vola >= 25
{rclass=="7";}
return rclass;
Thanks
Continue reading...