C#
用DataTable计算数学表达式
DataTable table = new DataTable(); Console.WriteLine(exp + "=" + table.Compute(exp, ""));