Test * ptrTest = new Test;
ifstream file("test.txt");
file >> ?.... Here is the problem
ptrTest->setNum(); The parameter in this takes the specified
data type but is there anyway I can do something like this:
ifstream file("test.txt");
file >> ptrTest->setNum();
or
ptrTest->setNum(file);
I just need to input the data from the text file one line at
a time into each variable indirectly through accessors.
I might can do this by overloading the extraction operator ">>"
but I can't find anything on google to explain how to overload
it if that will even help me accomplish what I want to do
