while(!die()){
money = makemoney(working());
if( checkmoney()>money ){
setdie();
}
// if die is set, this is the last chance to spend money do what you want
living(spendmoney());
}
最初由 Rabbit 发布 while(!die()){
money = makemoney(working());
if( checkmoney()>money ){
setdie();
}
// if die is set, this is the last chance to spend money do what you want
living(spendmoney());
}