Stuff
public text v1 · immutable#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
*/