Page 1 of 1 [ 3 posts ] 

Oleg
Yellow-bellied Woodpecker
Yellow-bellied Woodpecker

User avatar

Joined: 4 Dec 2005
Gender: Male
Posts: 61
Location: the United States, New York City

08 Dec 2005, 10:10 pm

#include <iostream>
using namespace std;

class New
{
public:
void Me();
};

void New :: Me()
{
int life;
}

int main()
{
New object;
object.Me();
}



Larval
Veteran
Veteran

User avatar

Joined: 15 Nov 2005
Gender: Female
Posts: 1,037

08 Dec 2005, 10:23 pm

Funny! :lol:

Btw, technically, it should be:

New object = new New;
object.Me();

But hey who cares? That was brilliant.



Oleg
Yellow-bellied Woodpecker
Yellow-bellied Woodpecker

User avatar

Joined: 4 Dec 2005
Gender: Male
Posts: 61
Location: the United States, New York City

08 Dec 2005, 10:30 pm

Thank you!