All pastes #217881 Raw Edit

anydot

public text v1 · immutable
#217881 ·published 2006-10-23 21:34 UTC
rendered paste body
#include <string>
#include <iostream>

using namespace std;

class tester
{
    public:

    string s;

    tester(string str) : s(str) {};



    bool operator != (tester &t)
    {
        cout << this->s << " was tested against " << t.s << endl;

        return false;
    }
};

int main (int argc, char **argv)
{
    tester t1("t1"), t2("t2");

    if (t1 != t2) {
        cout << "OK" << endl;
    }

    return EXIT_SUCCESS;
}