-
최신 글
- VSCode 사설망 원격 개발 구성 2022년 3월 3일
- 유럽 50개국 수도와 공용어 2022년 2월 15일
- 태극기의 의미를 알아보자 2022년 2월 14일
- Dev Lee의 프로그래밍 초급 강의 – 2 2022년 2월 13일
- [ICT 기본지식] Bit, Byte, IP 란? 2022년 2월 13일
최신 댓글
글 목록
- 2022년 3월 (1)
- 2022년 2월 (6)
- 2021년 8월 (1)
- 2021년 2월 (4)
- 2021년 1월 (9)
- 2020년 12월 (8)
- 2020년 11월 (7)
- 2020년 10월 (2)
- 2020년 9월 (8)
- 2020년 8월 (4)
- 2020년 6월 (1)
- 2020년 5월 (15)
- 2020년 4월 (40)
- 2020년 3월 (2)
- 2019년 7월 (2)
- 2019년 6월 (4)
- 2019년 5월 (4)
- 2019년 4월 (8)
- 2019년 3월 (18)
- 2019년 2월 (19)
- 2019년 1월 (1)
- 2018년 7월 (1)
- 2018년 6월 (55)
- 2018년 5월 (14)
- 2018년 4월 (27)
- 2018년 3월 (13)
- 2017년 12월 (5)
- 2017년 11월 (21)
- 2017년 10월 (2)
- 2017년 9월 (1)
- 2016년 12월 (2)
- 2016년 10월 (1)
- 2016년 9월 (3)
- 2016년 8월 (2)
- 2016년 7월 (1)
- 2016년 5월 (2)
- 2016년 4월 (2)
- 2016년 3월 (9)
- 2016년 2월 (10)
- 2016년 1월 (6)
- 2015년 12월 (8)
- 2015년 11월 (5)
- 2015년 10월 (2)
- 2015년 9월 (33)
월간 보관물: 2017 12월
[C++] convert from infix to postfix
C++ code #include <iostream> #include <string> #include <vector> #include <stack> using namespace std; int preceedence(char x) { switch(x) { case ‘+’: case ‘-‘: return 1; case ‘*’: case ‘/’: return 2; case ‘^’: return 3; default: return 0; } } … 계속 읽기
[C++] convert from prefix to infix
C++ code #include <iostream> #include <string> #include <vector> #include <stack> using namespace std; bool isOperator(char symbol) { if( (symbol == ‘*’) || (symbol == ‘+’) || (symbol == ‘/’) || (symbol == ‘-‘ ) ) return true; return false; } … 계속 읽기
[C++] convert from postfix to infix
C++ code #include <iostream> #include <string> #include <vector> #include <stack> #include <algorithm> using namespace std; bool isOperator(char symbol) { if( (symbol == ‘*’) || (symbol == ‘+’) || (symbol == ‘/’) || (symbol == ‘-‘ ) ) return true; return … 계속 읽기
[C++] convert from postfix to prefix
C++ code #include <iostream> #include <string> #include <vector> #include <stack> #include <algorithm> using namespace std; bool isOperator(char symbol) { if( (symbol == ‘*’) || (symbol == ‘+’) || (symbol == ‘/’) || (symbol == ‘-‘ ) ) return true; return … 계속 읽기
[C++] convert from prefix to postfix
prefix to postfix를 c++로 작성해 보았다. 코드는 아래와 같다. C++ code #include <iostream> #include <string> #include <vector> #include <stack> using namespace std; bool isOperator(char symbol) { if( (symbol == ‘*’) || (symbol == ‘+’) || (symbol == ‘/’) || (symbol … 계속 읽기