C#编写的windows计算器-源代码(40) //res=tmp; } else if(res>0) res= Math.Sqrt(res); txtShow.Text =res.ToString(); num++; tmp=0; dot = NODOT; break; case "sqr": // 平方运算 if(opt!=NULL) { calc(); }