Dear Sir/Madam
Please Help me with this Problem. the Problem is Write a C++ Program to evaluate Postfix notation,here is the prototype.
Code:
struct charNode
{
char data;
charNode *next;
};
struct intNode
{
int data;
intNode *next;
};
void readInput(charNode*&);
void reverseInput(charNode*&,intNode*&);
void evaluate(charNode*,intNode*&);
void displayResult(intNode*);
int isoperator(char);
void createchar(charNode*&);
void createInt(intNode*&);
void pushchar(charNode*&);
void pushInt(intNode*&,int);
char popchar(charNode*&);
int popInt(intNode*&);
int isEmpty(charNode*);
int isEmpty(intNode*);
void main()
{
charNode *charTopOriginal,*charTopReversed;
intNode *intTop;
create char(charTopOriginal);
create char(charTopReversed);
create Int(intTop);
readeInput(charTopOriginal);
reversedInput(charTopOriginal,charTopReversed);
evaluate(charTopOriginal,charTopReversed);
displayResult(intTop);
getch();
}

Last edited by shabbir; 18Jul2008 at 17:22.. Reason: Code block