Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

4chan

Name: Anonymous 2006-10-27 15:50

$ vi test.cpp

#include <iostream>
using std::cout;
using std::endl;

#include <vector>
using std::vector;

#include <4chan>
using 4chan::4channer;

int main(int argc, char** argv)
{
    vector<4channer> 4channers;

    vector<4channer>::const_iterator iter;
    for (iter = 4channers.begin; iter != 4channers.end(); iter++) {
        if ((*iter).isIntelligent())
            cout << "Impossible!" << endl;
    }

    return 0;
}

:wq

$ g++ test.cpp
$ ./a.out
$

Name: Anonymous 2006-10-28 17:24

$ cat > test.cpp
#include <cassert>
#include <vector>
#include <4chan>
#include <boost/foreach.hpp>
#define foreach BOOST_FOREACH

int main(int argc, char* argv[])
{
    foreach(4chan::4channer i, 4chan::4chan.population())
        assert(i.IQ < 80);

    return 0;
}
^D
$ make test #environment variables should always include boost
$ ./test
test: test.cpp:10: int main(int, char**): Assertion `i.IQ < 80' failed.
$

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List