السلام عليكم ..
انا مطلوب مني اكتب برنامج بالـ c++ و استخدم فيه طريقة الـ reverse polish notation ..
In most programming languages, arithmetic expressions are written in infix notation (like a* b + c ).
Many compilers first transform these infix expressions into postfix notation or RPN(Reverse Polish Notation)
because postfix expressions are easier to evaluate mechanically than infix expressions.
دي فكرة البرنامج :
You are asked to write C++ program as win32 console application to evaluate RPN expressions.
( example: 1 5 + 8 4 1- - * is evaluated as 30).
#Your program ask a user to enter arithmetic expression in infix notation (Your program
should be able to read in mathematical expression including parenthesis and any valid
operation), then program convert this infix notation to RPN which is evaluated
ممكن لو سمحتوا حد يفيدني في الموضوع دة ؟
جزيتم خيرا :) ..

