All pastes #406644 Raw Edit

Stuff

public cpp v1 · immutable
·published 2007-03-22 15:57 UTC
rendered paste body
#include <vector>#include <string>#include <iostream>int main(int argc, char*argv[]){	typedef std::vector<std::string> vec_t; vec_t vec;	std::copy(argv+1, argv+argc, std::back_inserter(vec));	int i = 1;	for (vec_t::iterator it = vec.begin(); it != vec.end(); ++it, ++i)		std::cout << i << ": (" << it->length() << ") " << *it << std::endl;}