Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- html
- arduino compiler
- Stack
- 컴퓨터 그래픽스
- 운영체제
- directx
- set
- stl
- Algorithm
- vector
- 아두이노
- 아두이노 컴파일러
- Deque
- Array
- map
- 통계학
- list
- queue
- Visual Micro
- c++
- 아두이노 소스
- 라인트레이서
- WinAPI
- Arduino
- C언어
- 시스템프로그래밍
- 수광 소자
- 자료구조
- priority_queue
- LineTracer
Archives
- Today
- Total
목록STL - Algorithm (82)
Kim's Programming
Algorithm - adjacent_find()
소스) 123456789101112131415161718192021222324252627282930#include#include#include bool find_adj(int i,int j){ if (i == j) return true; return false;} void main(){ std::vector Vector = { 1,3,3,5,7,7,9,11,13,15 }; std::vector::iterator Iter; Iter = std::adjacent_find(Vector.begin(), Vector.end()); if (Iter != Vector.end()) std::cout
STL - Algorithm/Algorithm - Non-Modifying
2016. 2. 7. 15:58
Algorithm - find_first_of()
소스) 123456789101112131415161718192021222324252627282930313233#include#include#include bool find_first(int i,int j){ if (i == j) return true; return false;} void main(){ std::vector Vector = { 1,3,5,7,9,11,13,15 }; std::vector::iterator Iter; std::vector::iterator Iter2; int Array[] = { 3,5,7 }; Iter = std::find_first_of(Vector.begin(), Vector.end(), Array, Array + 3); if (Iter != Vector.end()) s..
STL - Algorithm/Algorithm - Non-Modifying
2016. 2. 7. 03:00