All pastes #925017 Raw Edit

Stuff

public text v1 · immutable
·published 2008-03-01 22:25 UTC
rendered paste body
#include <cstdlib>
#include <iostream>

using namespace std;

class IRC {
    public:
           IRC(char *server);
           ~IRC();
           int connect();
};

IRC::IRC(char *server) {
    cout << "New connection: " << *server << "\r\n";
}

IRC::~IRC() {
    cout << "DESU\r\n";           
}

int main(int argc, char *argv[])
{

    IRC("irc.deltaanime.net");

    while (1) {
          
    }

    system("PAUSE");
    return 1;
}

/* Output:

New connection: i
DESU

*/