| Programming C# C++ (7) Delphi (618) Java (8) JavaScript (30) perl (9) php (4) VBScript (1) Visual Basic (1) |
Equivalent in C++ to JavaScripts "eval()" function?
Question: Is there an equivalent in C++ to the "eval()" function that is found in Javascript?Answer: JavaScript is an interpreted language which makes it easy to provide a formula interpreter as a standard function. C++ is compiled and adding an "eval()" like function would mean major overhead. Therefore such a function is missing in C++ standard libraries.Comments:
|