i got a prOblem, OF FUNTIONS

  • Thread starter dios de la oscuridad
  • Start date
D

dios de la oscuridad

i need to know, as posible...

how to make a program in c++, that request a funcion at the keyboart
and evalue it... and print the answert...

for example:


you write:

_______________________________________________________________________
FUNCION:

x^2+sin(x^2) "enter"

write the point of evaluation:

5 "enter"

the funcion at x=5 is:


5.34567

and so ....


please help me¡¡¡
 
V

Victor Bazarov

dios said:
i need to know, as posible...

how to make a program in c++, that request a funcion at the keyboart
and evalue it... and print the answert...
[..]

Look on the Web for "C++ expression evaluator". An example of such
expression parser (and evaluator) is given in Chapter 6 (IIRC) of
"The C++ Programming Language" by Bjarne Stroustrup.

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top