What do I push onto the stack?

This is a discussion on What do I push onto the stack? within the C++ Programming forums, part of the General Programming Boards category; Write a program in C++ that evaluates portfix strings (one per line in a text file) with the following restrictions ...

What do I push onto the stack?

Write a program in C++ that evaluates portfix strings (one per line in a text file) with the following restrictions on the input: Each character is either an operand- if it is a digit and the floating point value associated with the digit, or it is one of the 5 binary operators: +, -, *, / (floating point), ^ (exponentiation). You must use a stack, in particular, the linked list implementation of the stack.

I want to push the return value from my function Eval. How would I say that?