Hi all I've written this program to convert infix expressions to postfix. it works well for any expression however I wanted to optimize it using a stack template class so the program would work with any data type.
When I run it gives me this error:
InfrixtoPostifx.obj : error LNK2019: unresolved external symbol "public: __thiscall Stack<char>::Stack<char>(void)" (??0?$Stack@D@@QAE@XZ) referenced in function "public: __thiscall IntoPost::IntoPost(void)"
it gives the same error for every function in the infixtopostfix class.
going to add class to eval postfix expression and would like to work with int/double which is why im using a template for stack
Hello,
its hard to help you if your code is getting longer. It is even harder to help if it is not complete. How can I help you if I can not compile your code? ;)
But I have my good day today and cleaned up your example and it works!
So nothing more to do here.
Hi Thomas thanks for the reply I could post the rest of the code but it was working fine before I added the template to the stack class.
I can post the rest of the code if you want. I Really thank you for your reply but unfortunately im unable to use vectors I HAVE to implement stacks as an array