Order of the Butterfly
Posts: 167 from 2009/11/26
Here is the sixth example of the next release of PortablE:
Example 6: SimpleCalculator.eAs more GUI examples have been requested, here is a simple calculator, in 112 lines of E code. So that you could see the GUI code without too much klutter, I cheated a little: The calculator only does integer maths (no floating point), which means that 3 divided by 2 equals 1 not 1.5 ! But it's not too much extra work if you want to add floating-point support...
[ Edited by ChrisH on 2011/2/24 23:53 ]
Author of the
PortablE programming language.
It is pitch black. You are likely to be eaten by a grue...