I am trying to use a stack in a function of a class. After including the header of the stack, the program says there is a linker error... Any suggestions?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#pragma once
#include "stackType.h"
class IfxToPfx
{
public:
IfxToPfx();
void getInfix(string);
string showInfix() const;
string showPostFix() const;
bool isOperator(constchar);
int precedence(constchar, constchar);
string infixToPostfix(string);
private:
string infix;
string postfix;
};
error message::
Error LNK1561 entry point must be defined
Anything is appreciated.
Thank you for your time. :)