>>158のポログラムが簡単そうだったから僕もつくてみたよー。

#include <iostream>
#include <string>
#include <algorithm>
#include <iterator>

using namespace std;

void putv( const char* );

int main()
{
char s[] = "teststring";
putv( s );
}

void putv( const char* s )
{
string str( s );
copy( str.begin(), str.end(), ostream_iterator< char >( cout, "\n" ) );
}

どうすか、この華麗なるSTL。w