generic algorithm3 Generic Generate Algorithm #include #include #include #include #include using namespace std; template class calc_square { T i; public : calc_square() : i(0) {} T operator() () { ++i; return i * i;} }; int main() { cout 2008. 2. 29. Generic for_each Algorithm #include #include #include #include #include using namespace std; void print_list(string s) { cout 2008. 2. 19. Generic Count Algorithm #include #include #include #include using namespace std; int main() { cout 2008. 2. 12. 이전 1 다음