Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C++ (http://www.go4expert.com/forums/cpp/)
-   -   Evaluation of Postfix with C++ (http://www.go4expert.com/forums/evaluation-postfix-cpp-t12224/)

habtamu 18Jul2008 17:01

Evaluation of Postfix with C++
 
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();
}


xpi0t0s 21Jul2008 14:07

Re: Evaluation of Postfix with C++
 
Sure, no problem. My rates are GBP100/hour, minimum 4 hours. For no extra charge I'll submit the work directly to tour teacher if you give me their email address. I'll need a few more details (example input and output) if you decide to go ahead.

shabbir 21Jul2008 16:52

Re: Evaluation of Postfix with C++
 
Quote:

Originally Posted by xpi0t0s
Sure, no problem. My rates are GBP100/hour, minimum 4 hours. For no extra charge I'll submit the work directly to tour teacher if you give me their email address. I'll need a few more details (example input and output) if you decide to go ahead.

Search the forum and you may save 400 GBP. :D

aali 22Jul2008 13:41

Re: Evaluation of Postfix with C++
 
Why don't you use a Stack or queue?


All times are GMT +5.5. The time now is 08:44.