static void main(String ``Faggots") {
new ``Faggot"(){
public void die() {
suicide;
}
};
}
how would i port the following code to c++? mainly the part inside static void main method.
Name:
Anonymous2011-08-09 9:50
// This is your class motherfucker
class Faggot {
// under public: go all public methods and variables
public:
// the Faggot method
void die();
};
// Tell the compiler what the die() method does
void Faggot::die()
{
// although I have a feeling that this is some built in java bullshit and won't actually work
suicide();
}
int main() {
// creation of MyFaggot object
Faggot *MyFaggot = new Faggot();
// execute the die() method
MyFaggot->die();
// return 0 to tell the OS everything went OK
return 0;
}