Život programátora
while (IsLiving()) {
if (IsHungry()) {
Refrigerator::Open();
if (Refrigerator::IsEmpty()) {
Refrigerator::Close();
Tell(wife, REFRIGERATOR_REFILL);
}
else {
Eat(Refrigerator::GetFood(ONE_STD_UNIT));
Refrigerator::Close();
}
}
// TODO: place additional jobs here
}