我们用不同的符号进行数学计算 [英] our own mathematical calculation with different symbols

查看:75
本文介绍了我们用不同的符号进行数学计算的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



亲爱的所有人,

我有一个要求开发,即我需要给出自己的符号来计算数学表达式,即 net?1200,234,345,%40 - - > as ((净<1200)?234:345)* 0.4。 ..还有更典型的计算想要开发,即多个内部循环具有不同的符号,任何机构都可以提供接近它的解决方案/方式...我用Google搜索但没有用,请提出建议,先谢谢....


Dear All,
I have one requirement to develop i.e., i need to give my own symbols to calculate the mathematical expression i.e., net?1200,234,345,%40- -->as ((net<1200)?234:345)*0.4... and also more typical calculations want to develop i.e., multiple inner loops with different symbols,can any body provide the solution/way to approach it...i have googled it but no use,please give suggestion,thank in advance....

推荐答案

你应该建立一个表达式解析器,有许多可用示例 [ ^ ]。
You should build an expression parser, there are many examples available[^].


这篇关于我们用不同的符号进行数学计算的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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