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

Happy Halloween

Name: Anonymous 2010-10-31 16:09

Happy Halloween /prog/.

Have an unscientific and ultimately destructive day.

Name: Anonymous 2010-11-01 10:10

>>17
bool trick_or_treat(bool trick, bool treat)
{
    if (trick == true)
        return trick;
    else
        return treat;
}

void visit_house(struct house *h)
{
    bool trick, treat;

    if (knock(h->door) == K_OPEN) {
        ask(&trick, &treat);
        if (trick_or_treat(trick, treat) == treat)
            collect_treats(house->host);
        else
            goto tp;
    } else {
tp:    tp_house(h);
    }
}

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