#define NULL 0 #include "bottle3.h" int main() { for (int i = 1; i <= 10; i++) (new bottle(i))->sing(); bottle *p; while ((p = bottle::pop()) != NULL) { p->sing(); delete p; } return 0; }