?? eval_8cpp.html
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>a1: eval.cpp File Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3.9.1 --><div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div><h1>eval.cpp File Reference</h1><code>#include "<a class="el" href="eval_8hpp-source.html">eval.hpp</a>"</code><br><code>#include "math.h"</code><br><table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="eval_8cpp.html#a0">errorfct</a> (int i=0)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Show different error message. <a href="#a0"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classCell.html">Cell</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="eval_8cpp.html#a1">eval</a> (<a class="el" href="classCell.html">Cell</a> *const c)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluate the expression tree whose root is pointed to by c (error if c does not hold a well-formed expression). <a href="#a1"></a><br></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>A dummy implementation for example purposes. Just barely enough is implemented to allow the parser to run. Merely returns the input expression without evaluating it.<hr><h2>Function Documentation</h2><a class="anchor" name="a0" doxytag="eval.cpp::errorfct"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void errorfct </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> <em>i</em> = <code>0</code> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Show different error message. <p> </td> </tr></table><a class="anchor" name="a1" doxytag="eval.cpp::eval"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="classCell.html">Cell</a>* eval </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classCell.html">Cell</a> *const </td> <td class="mdname1" valign="top" nowrap> <em>c</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Evaluate the expression tree whose root is pointed to by c (error if c does not hold a well-formed expression). <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>count</em> </td><td>to count the number of operand </td></tr> <tr><td valign="top"></td><td valign="top"><em>operand</em> </td><td>to point the first operand or the result after recursion </td></tr> <tr><td valign="top"></td><td valign="top"><em>operand2</em> </td><td>to point the second operand </td></tr> <tr><td valign="top"></td><td valign="top"><em>operand3</em> </td><td>to point the third operand </td></tr> <tr><td valign="top"></td><td valign="top"><em>cur</em> </td><td>to point the cdr of c </td></tr> <tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>to store the result after calculation </td></tr> <tr><td valign="top"></td><td valign="top"><em>checkint</em> </td><td>to check if the result is an integer</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>the operand after evaluation </dd></dl> </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Thu Mar 8 19:07:07 2007 for a1 by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -