STL 예제 소스


STL 예제 소스

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 #include <iostream> #include <algorithm> #include <vector> using namespace std; int main() { vector<int> v; v.push_back(10); v.push_back(20); v.push_back(30); v.push_back(30); v.push_back(40); v.push_back(50); v.push_back(30); vector<int>::iterator iter; int total = count(v.begin(), v.end(), 30); cout << "30의 개수는 " << total << endl; return 0; } Colored by Color Scripter cs 출처 http://blog.daum.net/coolprogramming 쿨프로그래밍 NetGong 님의 Daum블로그 b...



원문링크 : STL 예제 소스