"STL"의 두 판 사이의 차이
jjuiddong
3번째 줄: | 3번째 줄: | ||
** copy(test.begin(), test.end(), ostream_iterator<int>(cout, "\n") ); | ** copy(test.begin(), test.end(), ostream_iterator<int>(cout, "\n") ); | ||
** STLpractice/GenralPrinting, STLpractice/SetTest 를 참고하자. | ** STLpractice/GenralPrinting, STLpractice/SetTest 를 참고하자. | ||
+ | |||
+ | * set<T> 은 중복된 데이타를 제거하고, unique한 값만 저장한다. |
2013년 4월 28일 (일) 13:56 판
- container 에 있는 내용을 쉽게 출력하는 법
- copy(test.begin(), test.end(), ostream_iterator<int>(cout, "\n") );
- STLpractice/GenralPrinting, STLpractice/SetTest 를 참고하자.
- set<T> 은 중복된 데이타를 제거하고, unique한 값만 저장한다.