New Paste :: Recent Pastes:: Add Line Numbers
A Paste by Anonymous
#include <string> #include <iterator> #include <iostream> using namespace std; int main() { string test; back_insert_iterator<string> itr( test ); itr = 'a'; itr = 'b'; itr = 'c'; itr = 'd'; cout << test << endl; return 0; }