Posts

Showing posts from June, 2004

C++ STL set functions... and liquids that can write code

Image
Are you badass with C++ STL? Then fix this...

#include <iostream>
#include <map>
#include <set>
#include <algorithm>
#include <ostream>
#include <iterator>

using namespace std;

int main()
{
map<const char, int> A;
A['a'] = 0;
A['b'] = 5;
A['c'] = 10;

map<const char, int> B;
B['b'] = 105;
B['c'] = 110;
B['d'] = 115;

map<const char, int> C;

set_difference(A.begin(), A.end(), B.begin(), B.end(), less<char>, inserter(C, C.begin()) );
/*cout << "Set C (difference of A and B): ";
copy(C.begin(), C.end(), ostream_iterator<const char*>(cout, " "));
cout << endl;*/

}

=================

<aeacides> lol
<aeacides> fulld: you reversed the order of the comparison functor with the insert iterator
<aeacides> set_difference(A.begin(), A.end(), B.begin(), B.end(), inserter(C, C.begin()), ltpairchar());
<fulld> aeacides: so basically... wh…

Bad phone sex (that used to be good)

Image
Is it possible to ruin sex with a phone call, if the person who called you is the person you're sleeping with?

This is a question I haven't thought of, but that was just answered for me.


The special ingredient for growing young trees

Image
Kristin Quinlan: the tree to which you feed BEER was STOLEN from an ARBORETUM!?
Kristin Quinlan: I legitimately purchased my tree, feed it water, and now it's dying. Hmmmpppphhh.


10 weird things you can do on a couch

Image
Ode to a couch

After countless nights of PTFO, many "paper writing" parties (that's you Monica P and Erin W), random people having sex on (that's you Evan's friend's friend plus random girl), "Artistic Posing" on (that's you KQ), being broken (Frank A), riding atop a minivan (thanks Mom), multiple people throwing up on (that's you John T, and Guy T), infinite food on it (Guy T again), going in the shower (John T again), being Chris's "office" (Chris N), and most of all putting up with my 90's music nonstop, my couch lay unnamed in the dumpster... all because mom "I don't want to know where your couch has been or what bodily fluids are on it, and I sure as hell don't want to clean it."
To all the people mentioned in this article: yes, these photos are on my website.