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

Pages: 1-

failure

Name: Anonymous 2009-01-01 23:39


template <class T> class be
{
private:
    bool would;
    bool can;
public:
    be(bool would, bool can) {
        this->would = would;
        this->can = can;
    }
    bool ifCould() {
        return would;
    }
    bool will() {
        return would && can;
    }
};

be<perfect> me(true, false);

Name: Anonymous 2009-01-01 23:50

be<perfect> me(rand() > RAND_MAX/2, rand() > RAND_MAX/2);

Name: Anonymous 2009-01-01 23:54

template <class T> class be
{
private:
    bool would;
    bool can;
public:
    be(const bool &would, const bool &can)
        : would(would),
          can(can)
    {}
    bool ifCould() const {
        return would;
    }
    bool will() const {
        return would && can;
    }
};

be<perfect> me(true, false);

If you're going to use a shitty convoluted language, at least learn how to use it properly.

Name: Anonymous 2009-01-02 0:04

>>1:19: error: ‘perfect’ was not declared in this scope
>>1:19: error: template argument 1 is invalid
>>1:19: error: invalid type in declaration before ‘(’ token
>>1:19: error: initializer expression list treated as compound expression

Name: Anonymous 2009-01-02 7:10

>>4
One-line C++ errors! What a rare thing to see.

Name: Anonymous 2009-01-02 13:31

>>5
in b4 someone dumps an STL error

Name: Anonymous 2009-01-02 14:07

>>6
I tried, but the post was rejected for being too long.

Name: Anonymous 2009-01-02 14:25

Name: Anonymous 2009-01-02 14:36

>>8
Wow, that's a cool bumper sticker!

Name: Anonymous 2009-01-02 14:40

>>8
The active ingredient in each distribution is a Perl script, so you'll need a Perl interpreter installed; ActivePerl works best, and it's free.
Only perl can interpret Perl.

Name: Anonymous 2010-12-22 10:39

Name: Anonymous 2011-02-04 18:07


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