C/C++の宿題を片付けます 107代目
■ このスレッドは過去ログ倉庫に格納されています
0178デフォルトの名無しさん
2008/05/20(火) 02:37:37#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
■ このスレッドは過去ログ倉庫に格納されています