how do i create a set method to get the fstream input file.
in need to be able to define the file location in the main method.
class a
{
private:
ifstream fileOne;
ofstream report1;
public:
void setinput(std::ifstream& in);
void setoutput(std::ofstream& out);
};
how can i code these set methods.
Thank you