Online Eiffel Documentation |
Documentation Home > Technologies > .NET > Samples > Winform Samples |
EiffelStudio |
Calculator |
To compile the example:
After launching the application, you will see a window displayed with a similar appearance to the one above. This is a really simple calculator that can take only two operands. So you should enter the first operand, then enter an operator, then the second operand. Click the "Calculate" button to generate the result.
The application uses two local external assemblies, math.dll and parserutils.dll.
parserutils parses the command line entered, and checks if it is of the form operand1 operator operand2. math.dll calculates the actual result of the command line.
For the parserutils.dll, we have been obliged to introduce the prefix "parser_" to avoid conflicts between name classes.
This sample contains the following classes:
This sample is translated from the example located in the Tutorials\resources and localization\worldcalc subdirectory of the.NET Framework SDK samples directory of Microsoft Visual Studio.NET.
Copyright 1993-2006 Eiffel Software. All rights reserved. |