r**u 发帖数: 1567 | 1 可以用elevator里的moveTo function,在这个函数里
door->close(), light->turnOff, alarm->turnOff...
然后再弄个arrive function,在这个函数里,
door->open(), light->turnOn, alarm->turnOn.
还有一个问题,就是elevator先在所在的楼层怎么update,
这个用一个事件之类的东西吧。每次触发这个事件,update
current floor.
close |
|
I******a 发帖数: 3812 | 2 评论挺好玩儿。
http://robertlindsay.wordpress.com/2010/08/03/evolution-of-high
Evolution of High IQ’s in Ashkenazi Jews and Chinese
A commenter asks the reason for the high IQ’s of Ashkenazi Jews:
What accounts for the higher Ashkenazi IQ? Is it from living in a cold
climate in eastern Europe instead of in their original sunny Mediterranean
homeland? Or perhaps Slavic genes?
Apparently selection. When the Ashkenazim went to Europe, Talmudic Judaism
unfolded around 1000 CE or so, and in order to be a Je... 阅读全帖 |
|
a****r 发帖数: 12375 | 3 【 以下文字转载自 Sex 讨论区 】
发信人: woaihuamei (thatsNotMyName), 信区: Sex
标 题: 谁给我解释一下为什么我这么享受被beatup的感觉
发信站: BBS 未名空间站 (Thu Dec 7 13:44:07 2017, 美东)
昨天又去找那个armory dom来了个session,各种鞭子抽的我好爽。但是觉得还不够
extreme,最后在我要求下给了我几个level 8-9 的dragon tail slap。但是就是被
impact的那一下和之后几秒疼的很爽,然后就没感觉了, 希望他一直在那里抽才爽。
之前看过piercing等extreme的instrument觉的超级turnon。。。貌似我很享受being
destroyed 感觉。。。可是想不明白为什么. 他说如果我想体验更extreme或者不同的
sensation,可以介绍我认识十几年前带他入门的他的好朋友,he said he can
destroy me, but his friend def can do more... 觉得自己好sick。。。。好惆怅 |
|
m******8 发帖数: 1676 | 4 举个例子?
我举得也是不能每次开车前都TURNON, 停车在TURNOFF 吧? |
|
r**u 发帖数: 1567 | 5 大家comment吧
class Door {
int state; // Door is open or closed.
public:
void open();
void close();
};
class Button {
int indicate; // What does this Button indicate?
int state;
public:
void push(); // Send a request to go to a certain floor.
void clear();
};
class Alarm {
int state; // Current state of alarm, beeping or not
public:
void beep();
void stopBeep();
};
class Light {
int state; // Current state of light, on or off
public:
void turnOn();
void tu |
|
g*********e 发帖数: 14401 | 6 class Chicken{
Penis penis;
Sperm sperm;
inch length;
inch diameter;
Chicken circumcision();
void turnOn();
void turnOff();
Sperm ejeculation();
} |
|
d******i 发帖数: 7160 | 7 想拨到右边TurnOn,总是自动弹回到off。
于是空调的Condensor起不来。
什么原因呢?
谢谢! |
|
|
s*******e 发帖数: 15758 | 9 时代在进步
真的,男人身材太差怎么让人turnon,你说说看?
总不能靠yy其他身材好的男人自high吧?
男生们不要自欺欺人了,抓紧练8块腹肌吧
法。 |
|
m****0 发帖数: 5857 | 10 少来。。。当场的男士都表示被turnon了
★ 发自iPhone App: ChineseWeb 7.7 |
|
b*****t 发帖数: 3396 | 11 我是说看到女生的upper arm相当tone
就感觉会很turnon的那种。。。
有没有人和我一样。。。汗 |
|
m*******r 发帖数: 13263 | 12 What do you mean by turnon? are you guys men or woemen? straight or gay? |
|
l****q 发帖数: 767 | 13 赫赫,自己定义吧。不过说真的,turnon到底是不是那个意思啊?? 啊?啊?是不是
啊? |
|
|
s**********o 发帖数: 14359 | 15 这不是AUDIT么,要TURNON才行,不过OVERHEAD很大 |
|
d******i 发帖数: 7160 | 16 刚在手机上试了下pptp的client,
好像要求lockscreen,俺十分感冒,
有办法disable lockscreen的要求吗?
而且好像vpn本身没有个开关turnon或off,而是只能删除?
我是anroid5 lollipop. |
|
p****o 发帖数: 46 | 17 水木上有人说是adapter + command pattern.
不知道这command pattern指的是什么,怎么加上去呢
我先把我写的adapter pattern代码写上。
请大家帮忙看看
class 3rdPartyComputer{
public void start(){m_status=true;}
public void stop(){m_status=false;}
public bool Computerstatus(){return m_status;}
private bool m_status;
};
class 3rdPartyTV{
public void turnOn(){m_status=true;}
public void turnOff(){m_status=false;}
public bool TVstatus(){return m_status;}
private bool m_status;
};
interface device{
void Up();
void Down();
}
class Computer implements |
|
g*****g 发帖数: 34805 | 18 This is not how you want to implement it.
class Computer implements device
{
private 3rdPartyComputer adaptee = new 3rdPartyComputer ();
public void Up()
When you have a new Computer device, you end up changing Computer class,
that's a bad design.
Just do
class Device1Adapter implements Device {
public Device1Adapter(Device1 d) {
this.d = d;
}
public void up() {
d.turnOn();
}
}
then you can have a controller class like
class Controller {
List< |
|