Some C++ Trickes

To output the content in a container:


copy(A.begin(), A.end(), ostream_iterator(cout, " "));