示例#1
0
void SyntaxTree::printPostfix(NimbleSyntax* theNode)
{
    if(theNode != 0)
    { 
        printPostfix(theNode->getLeft());
        printPostfix(theNode->getRight());
        print(theNode);
    }
}
int main() {
	int readConvert(char[]);
	void printPostfix(char[], int);
	char post[50];

	int n = readConvert(post);
	printPostfix(post, n);
} //end main
示例#3
0
void SyntaxTree::printPostfix()
{
    printPostfix(root);
}