文件名称:C#简易计算器代码
文件大小:599B
文件格式:TXT
更新时间:2017-01-23 09:47:50
C#
try{int fristnum Convert ToInt32 this textBox1 Text ;string choose this textBox3 Text;int secondnum Convert ToInt32 this textBox2 Text ;int sum 0;switch choose {case "+":sum fristnum + secondnum;this textBox4 Text sum ToString ;break;case " ":sum fristnum secondnum;this textBox4 Text sum ToString ;break;case " ":sum fristnum secondnum;this textBox4 Text sum ToString ;break;case " ":sum fristnum secondnum;this textBox4 Text sum ToString ;break;default :this textBox4 Text "无法识别的远算符 ";break;}}catch{MessageBox Show "输入有误 " ;">try{int fristnum Convert ToInt32 this textBox1 Text ;string choose this textBox3 Text;int secondnum Convert ToInt32 this textBox2 Text ;int sum 0;switch choose {case "+":sum fristnum + secondnum;this textBox4 Text sum ToString ;break;case " ":sum fristnum secondnu [更多]