在c#.net windows应用程序中验证公式x + 5%和5%(x) [英] to verify a formula x+5% and 5%(x) in c#.net windows application

查看:107
本文介绍了在c#.net windows应用程序中验证公式x + 5%和5%(x)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨....

在我的表格中,我有一个输入公式的文本框..公式的格式为x + y%和y%(x)....当我点击按钮时,我需要验证公式并将结果返回到消息框中...



提前thnks ...

hi....
In my Form,i have a textbox in which formula is entered..the formula is of format x+y% and y%(x)....when i click button i need to verify the formula and return the result in a messagebox...

thnks in advance...

推荐答案

如果他们正在输入公式并且你必须处理它们,那么看看这个: Math Parser TK [ ^ ] - 它比您需要的要多得多,但它可以为您节省大量工作!
If they are entering formulae and you have to process them, then have a look at this: Math Parser TK[^] - it does a lot more than you need it to, but it should save you a lot of work!


简单的路径是允许用户只输入 x y 的值(并可能选择公式)并计算结果。
The easy path would be allowing the user to input just the values of x and y (and possibly select the formula) and the compute the result.


这篇关于在c#.net windows应用程序中验证公式x + 5%和5%(x)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆