代码搜索:postfix
找到约 738 项符合「postfix」的源代码
代码结果 738
www.eeworm.com/read/413831/11140630
java postfix.java
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package postfix;
import java.io.*;
import exception.SyntaxException;
import exception.LexException;
www.eeworm.com/read/413831/11140651
class postfix.class
www.eeworm.com/read/247431/12659270
java postfix.java
// postfix.java
// parses postfix arithmetic expressions
// to run this program: C>java PostfixApp
import java.io.*; // for I/O
///////////////////////////////////////////////////////
www.eeworm.com/read/112473/15484681
cpp postfix.cpp
// Postfix Calculator
#include
#include
#include
#include "mystack.h"
using namespace std;
void evaluate(ofstream& out,stackType& stack,
char
www.eeworm.com/read/103443/15732174
cpp postfix.cpp
//这个程序在本书所带软盘中,文件名为POSTFIX.CPP
//这个程序将演示后缀增值、减值运算在表达式中的应用。
#include
void main(void)
{
int num1, num2,num3;
int i = 1, j = 2, k = 3;
int count = 4, x = 10, num = 20;
int a
www.eeworm.com/read/101208/15841410
y postfix.y
/*@A (C) 1992 Allen I. Holub */
%term ICON NAME
%left PLUS MINUS
%left TIMES DIVIDE
%%
s : expr
;
expr : NAME { yycode("%s\n", yytext );
www.eeworm.com/read/101208/15841413
lex postfix.lex
/*@A (C) 1992 Allen I. Holub */
%{
#include "yyout.h"
%}
%%
[a-zA-Z_][a-zA-Z_0-9]* return NAME;
[0-9]+ return ICON;
"/" return DIVIDE;
"*"
www.eeworm.com/read/166025/10040851
cpp infix to postfix.cpp
#include
#include
#include
#include
#include
struct stack {
int top;
char item[30];
};
void push(struct stack *p,char u)
{
p-
www.eeworm.com/read/469319/6973163
postfix testcase2.postfix
Input an infix expression and output its postfix notation:
/************************/
Total:2 errors.
Unit 4:词法错误,非法字符.
Unit 5:语法错误,左边缺少运算符.
/************************/
End of program.