"infix" 검색결과 21-40 / 221건
한자리 숫자에대하여 infix 를 postfix로 변환해 주는 프로그램
in infix expression. */ if ( ! ... whitespace_p( infix [ i ] ) ) { type = get_type( infix [ i ] ); switch ( type ) { /* Push left paren onto ... define Arnold '\0' /* The Terminator */ #define Blank ' ' #define Tab '\t' #define MaxLen 64 static char infix
리포트 | 1,500원 | 등록일 2009.01.02
infix 를 postfix로 바꾸기
/* infix 를 postfix로 바꾸기*/ #include #include #include #define MAX 60 #define ... 0; case '+': case '-': return 1; case '*': case '/': case '%': return 2; default : return 3; } } /* infix 를 ... pop(); *postmy_fix++ = ' '; } postmy_fix--; /* 마지막 공란을 제거함 */ *postmy_fix=NULL; /* 빈문자열로 만듬 */ } /* infix 를
리포트 | 3페이지 | 1,000원 | 등록일 2001.10.14
중위식 후위식 변환 및 계산(Infix to Postfix)
사용자로 부터 중위식을 입력받아 후위식으로 출력한 후 연산 결과를 출력합니다.
처리 가능한 연산자 : +, -(이항연산), *, /, %, -(단항연산), ^(지수), (, )
1.과제 개요
1.1.프로그램 입출력
1.2.프로그램 기능
1...
리포트 | 17페이지 | 2,000원 | 등록일 2009.07.05
infix to postfix 계산기 (10단위 이상 계산 가능)
; toekn++; infix .data ← '*'; infix .op ← 1; infix ++; } else: { infix .data ← *token; infix .op ← 2; infix ... ← sum*sign; infix ++; sum ← 0; sign ← 1; } if('0' *(token+1) '9') { infix .data ← *token; infix .op ← 2 ... = infix ++ -> data; } else if(infix ->op==2) { while(stack[top] !
리포트 | 18페이지 | 2,000원 | 등록일 2009.02.21 | 수정일 2015.05.06
[자료구조][gcc 컴파일러] infix , postfix, prefix 소스코드
void changeTree(); struct node* makeNode(char); void makeTree(char); void inOrder(struct node*); //infix ... =NULL){ inOrder(t->llink); printf("%c ",t->el); inOrder(t->rlink); } } // infix 방식으로 tree를 프린팅 한다. void ... sizeof(struct node)); newnode->value=a; newnode->alink=NULL; newnode->blink=NULL; return newnode; } //infix
리포트 | 13페이지 | 1,500원 | 등록일 2008.07.09
[공학]infix 를 prefix로 변환하는 프로그램 소스(스택 사용)
infix expression is", infix ); strrev(infix ); // 입력받은 문장을 뒤집는다 prefix(infix ,prestr); strrev(prestr); ... Code: "); while((infix [pre++] = getchar()) ! ... infix 를 prefix로 변환하는 프로그램 #include #include #include #include #define MAX 80 #define TRUE 1 #define FALSE
리포트 | 5페이지 | 1,500원 | 등록일 2007.04.11
[컴퓨터공학] infix -prefix
#include #include #define MAX_STACK_SIZE 100 #define MAX_EXPR_SIZE 100 void postfix(void); typedef enum {lparen, rparen, plus, minus, times, divide,..
리포트 | 4페이지 | 1,000원 | 등록일 2003.11.26
[자료구조] infix _to_postfix
\n"); exit(3); }else { while(strcmp(infix _expr, EOS))/* 종료 스트링과 비교*/ { fscanf(in, "%s", infix _expr);/ ... * 스트링 읽음*/ if(strcmp(infix _expr, EOS)) { printf("Input string : %n ! ... 강좌명 학과 학번 제출자 제출일 Stack Manupulation : Evaluation of integer expressions ☞ Problem 텍스트 문서로부터 infix 표현을
리포트 | 7페이지 | 1,000원 | 등록일 2003.11.15
[자료구조] infix ,postfix,연산까지..
▲ Program Overview . infix 형 수식을 입력 받아 이를 postfix형으로 고치고 이를 연산하여 결과를 출력 하는 프로그램을 작성 하였습니다. infix 형 수식은 ... Student ID : */ /* -------------------------------------------------------------- */ /* Description : infix ... error_check function */ /*===============================================================*/ /* Input : Infix
리포트 | 10페이지 | 1,000원 | 등록일 2003.04.07
[자료구조] infix -> postfix
=================================== */ /* Input: noting */ /* Output: nothing */ /* Purpose: change infix
리포트 | 7페이지 | 1,000원 | 등록일 2003.04.07
[자료구조] Infix 를 Postfix로 변환하여 계산하는 프로그램
{ {Data Structure Report #5 - Infix /Postfix Problem Data Structure Report #5 (Assignment #3 - part 2) ... Program the algorithm of evaluating the arithmetic expression which is represented in infix PSN. ... you must use a stack data structure - input requirements: your input expression must be the form of infix
리포트 | 6페이지 | 1,000원 | 등록일 2004.06.03
산술식을 트리로 구성하고 infix , prefix, postfix 방식으로 접근
⊙ 산술식을 트리로 구성하고 infix , prefix, postfix 방식으로 접근 1) 해결방법 : 우선 한 개의 다항식을 입력받아 배열에 넣고 앞에서부터 순차적으로 검색하며 배열에 ... 이때 새로 생성된 트리는 계속 위로 붙어 누적되므로 트리를 가리키던 헤더 값도 계속 변하게 된다. infix , prefix, postfix로의 접근은 재귀함수를 사용하여 노드의 주소값을 ... 주소값을 반환 void makeOneTree(char); // 한개의 루트 아래 두개의 subtree를 가지는 트리 생성 void inOrder(struct node*); // infix
리포트 | 7페이지 | 1,000원 | 등록일 2005.05.17
[자료구조론] 사칙연산에서 infix 의 postfix로의 변환
..FILE:POSTFIX.hwp #include #include #include #define MAX 100 /* 스택의 최대 크기 설정 */ int stack[MAX]; int top; void init_stack(void) { top = -1; } int p..
리포트 | 4페이지 | 1,000원 | 등록일 2003.11.24
[자료구조] 계산기 (infix -> postfix)
메인부분 코드입니다.#include < iostream >#include "Calculator.h"using namespace std;#define MAXSTACK50void main(){CCalculator calc;while(true){calc.GetInfix ();..
리포트 | 7페이지 | 1,000원 | 등록일 2003.01.02
맨위로