GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


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;
}