posted 19 years ago
Hi,
From what you have mentioned, what I can understand is, the program that you are having checks to see whether the input is a operator or an operand. So in that program it only takes the operands. So my assumption is that they do it by a IF. So if it's not a operand, it should be a operator. So I think you can use that strategy to get the operators. So when you get a operator, you can add them to an array,. before adding it, you can check the array and insert only if the operator doesn't exist.
Hope I was able to give you a solution.
SCJP 1.4, SCMAD 1.0<br />SCWCD, SCBCD (in progress)