#include
#include
#include
#include
using std::cout;
using std::endl;
using std::istream_iterator;
using std::istringstream;
using std::string;
template
void afficher(Iter begin, Iter end)
{
for( ; begin != end ;)
cout<<*begin++<<"n";
}
int main() {
char* welcom = "Bienvenu sur le cpp.mesexemples.com";
istringstream bienvenu_str(welcom);
istream_iterator begin(bienvenu_str);
istream_iterator end;
afficher(begin, end);
return 0;
}