設計簡單的計算器,實現兩個數的加、減、乘、除、求冪等計算。

(1)新建Windows應用程序MyApplicaton3,添加控件,其中文本框name屬性分別爲:(txtnum1、xtnum2)。 (2)5個按鈕事件的代碼爲: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing;
相關文章
相關標籤/搜索