
Untitled
By: a guest on
Jun 9th, 2012 | syntax:
C++ | size: 0.58 KB | hits: 21 | expires: Never
void Miguel::liveLife()
{
try
{
while(isLiving())
{
if(Day::GetCurrentDay().isAWeekDay())
{
wakeUp();
getReadyForSchool();
goToSchool();
goHome();
goOnComputer();
sleep();
}
else
{
wakeUp();
goOnComputer();
sleep();
}
}
}
catch(DepressedException& e)
{
cryAbout(e.what());
listenToMusic();
}
catch(BoredemException& e)
{
watchYouTube();
playGames();
listenToMusic();
}
// Any other problems?
catch(...)
{
// No worries, there's always music!
listenToMusic();
}
}