No its C++, we need to be more Object Oriented:
Code:
class world{
void world(){ cout << "Hello world" << endl;};
void ~world(){ cout << "Goodbye cruel world" << endl;};
};
int main(){ world my_world; return 0;}
Note: the above code has not been tested..