2009-09-25から1日間の記事一覧
STLのに面白い関数が入ってた。 #include <algorithm> #include <fstream> #include <sstream> #include <iostream> #include <vector> using namespace std; template<class IIter> string put(IIter begin, IIter end){ stringstream temp; temp << end-begin << ":[" << flush; while(begin != end){ temp << *(begin++</class></vector></iostream></sstream></fstream></algorithm>…