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

java to c++

Name: Anonymous 2011-08-09 9:00


public class ``Faggot" {
    public void die();
}

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: Anonymous 2011-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;
}

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