0

Can we convert string input to a mathematical function ?

I want to create a program to solve mathematical function . How to do it?

26th Mar 2017, 9:39 AM
krunal parmar
krunal parmar - avatar
4 Réponses
+ 7
In c++.....Idk But if java //Thanks to someone I forgot ScriptEngine(new ScriptEngineManager().getEngineByName("JavaScript")).eval("1+3") js : eval("1+3") C++ I only know how to convert string to number.sir sorry
26th Mar 2017, 9:52 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 6
No need to thanks. That is not the answer of your question yet
26th Mar 2017, 10:00 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 2
There is a function atoi () in C/C++ for such conversion.
26th Mar 2017, 11:17 AM
देवेंद्र महाजन (Devender)
देवेंद्र महाजन (Devender) - avatar
0
thanks
26th Mar 2017, 9:54 AM
krunal parmar
krunal parmar - avatar