| WideStudio Programming Guide | WideStudio Index Table of contents

> ## Sample:4 (A calculator)

> This is a demonstration of calculator, using the array of the buttons.
> The source code is ws/samples/C/labelwork/wscalc.prj. Please load it and build it by the application builder.
> this sample shows the following things.
> - To demonstrate the calculation with the operator:+,-,/,*
>   (Notice)The specification of the calculator is not strict.

> [A view of the application window]
> - The number button
>   Input the number to the indicator.
> - The operator button
>   Stores the operator if the button is "+","-","/","*", Calculates by the stored information if the button is "=",
> - The other
>   The resize event procedure adjusts size/place of the buttons when the window is resized.

Document Release 3.70 for WideStudio ver 3.70, May 2004

WideStudio documents index | Table of contents

Copyright(C) WideStudio Development Team, 1999-2004 | Last modified: May 25, 2004