So, I'm trying to write a program that will parse data from a few text files, append them, send the new string to a class, and then spit the worked text back out into another file. Here's the pertinent part of the main()
Now, using the myProduct.Display(), I can see that all of the Setters are writing the strings to the appropriate variables, but the GetAllTheThings() method isn't outputting them to the output file.
GetAllTheThings immediately returns this->GetProductNum(), so it won't do anything more after that. Why do you have multiple return statements in succession like this?
Well, the thing is that the only thing that function will ever do is returnthis->GetProductNum();. None of the other return-statements will be executed.
That's what I figured, I'm writing it now to overload the << operator to do force it to do what I want. So I'm putting this in my class.cpp (and the prototype in class.h)