TR1 썸네일형 리스트형 std::tr1::bind / function 사용방법 #include #include using namespace std; using namespace std::tr1::placeholders; // tr1::bind에서 _1을 쓰기위한 namespace class Test { public: typedef int result_type;// operator()을 위해서 꼭 써줘야 된다! public: int operator() (int k) const { cout 더보기 tr1 Random 사용하기 http://www.johndcook.com/cpp_TR1_random.html 간단하게 하면 #include #include void main() { std::tr1::mt19937 eng; // a core engine class std::tr1::uniform_int unif(1, 52); for (int i = 0; i < 5; ++i) std::cout 더보기 이전 1 다음