所属分类:
串口编程
开发工具:Visual C++
文件大小:67KB
下载次数:24
上传日期:2005-05-14 20:48:06
说明: 这是非常有挑战性的题目。对于用户输入的任意一个平面函数f(x),绘制出其函数曲线。这里最关键的技术难点就是如何实现计算表达式的值。在《编译原理》和《数据结构》的书中,都有对表达式运算方法的论述。说实在的,在编译型计算机语言中实现对用户输入表达式的运算是非常困难的。需要对表达式进行扫描,去括号,按照运算符的优先级生成2叉树,然后遍历该树生成逆波兰表达式,再然后通过栈的方法进行运算。如果在表达式中再包含有函数的话......描述起来都麻烦,更不要说用程序实现了:-(
(This is a very challenging issue. For user input an arbitrary planar function f (x), mapping out its function curves. Here the most critical technical problems is how to achieve calculated the value of the expression. "Compiling Principle" and "data structure," the book, have right of expression Operational discussed. Indeed, the computer language compiler to achieve expression of the user input operation is very difficult. Need to scan expression to the brackets, in accordance with the priority Operators Generation 2-ary tree, and then traverse the tree generated reverse Polish expression, and then through the stack approach to computing. If the expression again contains the function described ...... these are trouble, not to mention the procedures used to achieve the )
文件列表:
FunMap
......\dlldata.c
......\FunMap.cpp
......\FunMap.def
......\FunMap.dsp
......\FunMap.h
......\FunMap.idl
......\FunMap.rc
......\FunMap.tlb
......\FunMapCP.h
......\FunMapps.def
......\FunMapps.mk
......\FunMap_i.c
......\FunMap_p.c
......\map.bmp
......\Map.cpp
......\Map.h
......\Map.htm
......\Map.rgs
......\MapPP.cpp
......\MapPP.h
......\MapPP.rgs
......\ReleaseMinSize
......\..............\FunMap.dll
......\Resource.h
......\StdAfx.cpp
......\StdAfx.h
Script.dsw