恳求一个用C#编写的windows计算器,谢谢

来源:百度知道 编辑:UC知道 时间:2024/05/20 02:34:45
我知道,自己的分数不多,还要求这要求那的,不好意思。
样式就是和我们电脑上的计算器一样,只要求+,—,*,/功能,复杂的不需要,谢谢。

using System;
using System.Collections.Generic;
using System.Text;

namespace caculater
{
class Program
{
static void Main(string[] args)
{
string s;
Console.WriteLine("请输入计算式");
s=Console .ReadLine ();
Console.WriteLine("开始解题:{0}",s);
try
{
s = ca_string(s);
Console.WriteLine("此计算式的解是:{0}\n\n\n解答完毕", s);
}

catch
{
Console.WriteLine("there mabe something wrong with your input , please check it and try again .");

}

wait();
}
public static string ca_string(string temp)
{
char[] chengchu ={'*','