[소스 코드]
https://github.com/henlix/data-structure.git
https://github.com/henlix/calculator
[설명]
대학생 연합 IT 벤처 창업 동아리 S.O.P.T (Shout Our Passion Together - http://sopt.org) 에서 내부적으로 진행하는 전공 과목 기초 스터디 자료입니다.
이번주에 다룰 내용은 기본적으로 자료구조에서 다루는 스택, 큐 그리고 스택을 응용한 수식 연산에 대한 구현입니다.
스터디 자료는 다음과 같은 순서대로 올라갈 예정입니다.
1. 데이터 구조 및 알고리즘
2. 운영체제
3. 네트워크
http://github.com/ipkn/crow
Crow 프로젝트에서 사용한 C++11 기법들을 실제 구현에 대한 설명을 포함하여 자세히 설명한 발표자료입니다.
C++11 features used in Crow
video:
http://youtu.be/MixS9c3mE6U
https://vimeo.com/119627253
2. Modern C++
std::initializer_list <initializer_list>
• C++03은 총 4가지 초기화 문법
예1) std::string s{"apple"}; Point p{0,0};
예2) std::string s1{s}; int n{0};
예3) int *a = new int[4]{0,1,2,3};
예4) std::vector v{"apple", "banana", "cherry"};
예5) struct S { int x; S(): x{0} {} };
예6) int* ptr{}; int *pArray[10]{};
예1 괄호) std::string s("apple");
예2 =) std::string s = "apple"; int n = 0;
예3 {}) int arr[4] = {0,1,2,3}; struct tm today = {0};
예4 생성자) struct S { int x; S(): x(0) {} }
> 동적 배열
초기화 방법 X
• { }로 통일(범용 균등 초기화 universal and uniform initialization)
> 축소 변환 시
오류