i have a program it looks styntactically wrong
class fire
{
private:
string ACC;
public:
fire(string a);
string gettypeoffire(string AD);
};
fire::fire(string a)
{
ACC = a;
}//end
string fire::gettypeoffire(string AD)
{
string AD;
cout<<"ENTER type of fire: "<<endl;
cin>>AD;
return AD;
}
gettypeoffire returns a string that was given by the user. I can't see why it has a string parameter when it's never used.
so take out the string in the parameter