Click here to Skip to main content
15,922,574 members

Comments by Hivi Dino (Top 3 by date)

Hivi Dino 12-Apr-12 15:08pm View    
Thanks Andi For that declaration :)
Hivi Dino 31-Mar-12 10:44am View    
Ahmed i wondered when i saw you here :D ,Please Addy Tas Help us We Need your Help,The Algorithm that our Teacher has gave us is Too Little Bit,we can't write the correct code only by that Algorithm,This is The Algorithm that He gave us:
((
Evaluating Postfix Expression:
scan given postfix expression;
for each symbol in postfix
if operand
then push its value onto a stack S;
if operator then
Begin
pop operand2;
pop operand1;
apply operator to compute operand1 op operand2;
push result back onto stack S;
End
return value at top of stack;

Evaluating Prefix Expression :
reverse given prefix expression;
scan the reversed prefix expression;
for each symbol in reversed prefix
if operand then
push its value onto a stack S;
if operator then
begin
pop operand1;
pop operand2;
apply operator to compute operand1 op operand2;
push result back onto stack S;
end if
return value at top of stack;
))
Hivi Dino 31-Mar-12 10:05am View    
Hello ,I have the same problem,I also Need that code :D