void stackType<Type>::push(const Type& newItem)
{
if(!isFullStack()) // You havent defined this member function.
{
list[stackTop] = newItem;
stackTop++;
}
else
cerr<<"Cannot add to a full stack."<<endl;
}
ALso
string rpn(string infix)
is not returning a string value.
WolfPack
Postaholic
2,051 posts since Jun 2005
Reputation Points: 572
Solved Threads: 115
Well I tried building your project. Try putting all the function definitions in the same source file and the header seperate. If the errors I told you about in the previous reply are corrected, the project builds and runs okay. I am still searching for the reason for build failure for multiple source files. Will let you know if I find the solution.
WolfPack
Postaholic
2,051 posts since Jun 2005
Reputation Points: 572
Solved Threads: 115
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439