Coders' Corner Search:
General :: Programming :: C++

Articles:


Featured Article

Equivalent in C++ to JavaScript's 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.