fork download
#include "MixedExpression.h"
#include
#include
using namespace std;

int main(int argc, char *argv[])
{
	MixedExpression res;
	MixedExpression op1;
	MixedExpression op2;
	char symbol;
	long x,y;
	ifstream in;
	ofstream out;

  	if(argc > 1)
	{
		in.open(argv[1]);
		if(in)
		{
			out.open(argv[2]);
			while(!in.eof())
			{
				op1.ReadMixedExp(in);
				in >> symbol;
				op2.ReadMixedExp(in);
				switch(symbol)   
				{
					case '+': res = op1.add(op2); // Get the sum.
						break;
					case '-': res = op1.subtract(op2); // Get the difference.
				   		break;
					case '*': res = op1.multiply(op2); // Get the product.
						break;
					case '/': res = op1.divide(op2); // Get the quotient.
						break;
				}
				op1.printData(out);
				out << " " << symbol << " ";
				op2.printData(out);
				out << " = ";
				res.printData(out);
				out << endl;
			}
			// Close the input file.
			in.close();
			// Close the output file.
			out.close();
		}
	}	 
	return 0;
}

Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:29: fatal error: MixedExpression.h: No such file or directory
 #include "MixedExpression.h"
                             ^
compilation terminated.
stdout

Standard output is empty