Author:halw

Date:2008-09-29T02:03:12.000000Z


git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@60 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
halw
2008-09-29 02:03:12 +00:00
parent 4540855d74
commit 5446353c01
19 changed files with 54 additions and 96 deletions

View File

@@ -5,8 +5,6 @@ This sample consists of a command line reverse Polish notation (RPN) calculator.
{{note|A RPN calculator works slightly differently from standard calculators. It consists of a stack of numbers. Operations are applied to the two numbers on top of the stack. The result is then put on top of the stack so that it can be used in the next operation. This sample refers to the top of the stack as ''Accumulator''.This sample consists of a command line reverse Polish notation (RPN) calculator. }}
{{note|A RPN calculator works slightly differently from standard calculators. It consists of a stack of numbers. Operations are applied to the two numbers on top of the stack. The result is then put on top of the stack so that it can be used in the next operation. This sample refers to the top of the stack as ''Accumulator''. }}
==Compiling==
To compile the example:
@@ -39,7 +37,7 @@ Enter a number, followed by :
Enter the first number to be put onto the stack, for example <code>3</code>.
{{note|Failing to enter a number at this stage will cause the sample to stop. This sample was designed to showcase the use of EiffelBase data structures and is not protected against unexpected entries. }}
{{caution|Failing to enter a number at this stage will cause the sample to stop. This sample was designed to showcase the use of EiffelBase data structures and is not protected against unexpected entries. }}
You may then add another number on the stack by entering the character <code>a</code>:
<code>

View File

@@ -1,8 +1,5 @@
[[Property:title|EiffelBase Samples]]
[[Property:weight|3]]
[[Property:uuid|5095bbdf-0dd6-7d7b-68d4-59a8293950ee]]
* [[EiffelBase Sample: Calculator|Calculator]]