class Weather{ // 天气情况
bool isWet; // 天气是否潮湿
bool isHot; // 天气是否炎热
public Weather(bool isWet, bool isHot) {
this.isWet = isWet;
this.isHot = isHot;
}
}
class Action{ // 行动
bool isGetUpEarly; // 是否早起
bool isGoHomeLate; // 是否晚回
public Action(bool isGetUpEarly, bool isGoHomeLate) {
this.isGetUpEarly = isGetUpEarly;
this.isGoHomeLate = isGoHomeLate;
}
}
class MyWorking{ // 考研
bool Aim = true; // 是否有目标
bool IdeaisActive; // 态度是否积极
Weather today = new Weather(true, true);
// 今天天气既潮湿又炎热·我在杭州,一天又是洗两套衣服了
switch(Aim){
case true: // 我有目标的孩子,哈哈
IdeaisActive = true; break;
case false: // 我茫然了吗~
IdeaisActive = false; break;
}
Action now; // 今天我的行动是什么
switch(IdeaisActive){
case true: // good good study, day day up
now = new Action(true, true); break;
case false: // 今天我是怎么了,额,被淹没了
now = new Action(false, false); break;
}
}原文地址:http://blog.csdn.net/i_love_home/article/details/38022339