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 godecho
#include <iostream>
#include <sstream>

using std::cout;
using std::endl;
using std::ostringstream;

ostringstream o;

const char* foo(void)
{
    o << "hi thar";
    return o.str().c_str();
}

int main(int argc, char **argv)
{
    cout << foo() << endl;
    return 0;
}