I'm getting a compiler error that I can't seem to figure out. It's telling me that "out" is undefined, but I have it defined.
//Here is the declaration
class expression{
public:
bool getInfix(istream&);
void showInfix(ostream&=cout) const;
void showPostfix(ostream&=cout) const;
expression();
//Here is the function heading
void expression::showInfix(ostream&=out) const{
out << "Ifix is: " << ifix << endl;
}
I know it's a long shot, but this program is way too big to post on here. Does anybody see anything wrong with the way I've declared the output value? (I'm passing in an output file handle from another file, but I wouldn't think that that would matter at this point, since it's still not recognizing me having declared the variable.)