一 : arrive in, arrive at, reach和get to 的用法和区别 练习
阳江领先英语培训中心FETC First English Training Center
arrive in, arrive at, reach和get to 的用法和区别
辨析:reach,get to和arrive in(at)
这一组词均表达“到达”之意。reach 是及物动词,后面必须接表地点的名词做宾语;get必须和to一起表示“到达”之意,arrive是不及物动词,其后若接大地点时,常用介词in,若接小地点时,则用介词at,若是用副词表达地点,get to和arrive in (at)后面的介词均省去。
例如:
1) We arrived at the station five minutes late. 我们到车站晚了五分钟。
2) They will arrive in Paris next Monday. 他们将于下周星期一到达巴黎。
3) How can I get to the post office? 我怎样才能到达邮局。
4) They reached the top of the mountains. 他们到达了山顶。
练习:
一.用arrive in、arrive at、get to、reach的适当形式填空。
1. We __________ the station five minutes late. 我们到车站晚了 5 分钟。
2. They will __________Paris next Monday. 他们将于下周星期一到达巴黎。
3. When we __________ the park, it began to rain.
我们到达公园时,就开始下雨了。
4. He__________ Beijing yesterday. 他昨天到达北京。
5. When did he __________ home yesterday? 昨天他什么时候到家?
6.Your letter___________ me last week. 我是上周收到你的信的。
7. He has__________school age. 他已达到上学年龄。
8. You can guess it when you_________the end of the chapter.
当你读到这章末尾时,你就可以猜到了。
9. Do you know what time the plane __________ Moscow?你知道飞机什么时候抵达莫科?
10. They__________ the station at 8 this morning.他们今天早晨八点到达车站的。 Showing Our Best With Our English 0662-2277161
1
阳江领先英语培训中心FETC First English Training Center
11. Her mother saw her when she __________home.
她到家时她妈妈看见了她。
12. They __________Beijing on February 17. 他们于二月十七日到达北京。
13. I _________school at about 7:30 every day. 我每天7:30到校。
14. Have we_________the zoo yet?我们到动物园了吗?
二. 单项选择
1. Jane got to the USA a few days ago.
A. arrived B.arrived in C. reached to D. arrived to
2.When he arrived _________ the station,the train had left.
A.at B.to C./ D.in
3. Last night they ________ home at _______12:00.
A.got; behind B.got; around C.got to; about D.arrived at, nearly
4. Please tell me when the bus_________.
A.arrives B.arrives at C.reaches D.reaches in
5. Jim and Kate are __________ at their hometown tomorrow.
A.getting to B.getting C.reaching to D.arriving
6. Why do you __________ home so late?
A.get B.get to C.arrive in D. reach to
7.---With the help of Internet,news can _________ every corner of the world.
A.arrive B.reach C.go D.get
Showing Our Best With Our English 0662-2277161
2
二 : instead&insteadof的区别和用法
instead&instead of
instead&instead of的区别和用法
instead是副词,作状语,
e.g. I don't like apples. I like bananas instead.
or: I don't like apples. Instead,I like bananas.
instead of ,因of 是介词,后需加宾语。
e.g. I like apples instead of bananas.
三 : 转:Delphi中destroy,free,freeAndNil,release用法和区别
1)destroy:虚方法释放内存,在Tobject中声明为virtual,通常是在其子类中override它,且要加上inherited关键字,才能保证派生类对象正确地被销毁;
但destroy一般不能直接用,为什么?
当1个对象为nil,我们仍然调用destroy,会产生错误。因为destroy是虚方法,它要根据对象中的头4个字节找到虚拟方法表Vmt的入口地址,从而找到destroy的入口地址,所以此时对象一定要存在。但free就是静态方法,它根据对象引用/指针的类型来确定,即使对象本身不存在也不会产生异常,而且在free中有判断对象是否存在的操作,所以一般的情况下都用Free来释放对象。
2)free:静态方法
测试对象是否为nil, 不为nil则调用destroy。下面是free的Delphi代码:
procedure TObject.Free;
begin
if Self <> nil then
Destroy;
end;
一静一动,取长补短,岂不妙哉!
但是调用对象的Destroy只是把对象(www.61k.com)销毁了,但并没有把对象的引用设为nil,这需要程序员来完成,不过自从Delphi5之后,在sysUtils单元中提供了1个freeAndNil。
3)freeAndNil:1个独立的函数,不属于任何对象,非对象方法,非类方法。
procedure FreeAndNil(var Obj);
var
Temp: TObject;
begin
Temp := TObject(Obj);
Pointer(Obj) := nil;
Temp.Free;
end;
建议大家用它代替free/Destroy,以便确保正确地释放对象。
4)release:TcustomForm中定义的静态方法。
当窗口中所有的事件处理完之后,才调用free函数。常用在销毁窗口,而在这个窗口中事件处理需要一定的时间之际,用这个方法能确保窗口事件处理完之后才销毁窗口。
下面是TCustomForm.Release的Delphi源代码:
procedure TCustomForm.Release;
begin
PostMessage(Handle, CM_RELEASE, 0, 0);
//向窗口发CM_RELEASE消息到消息队列,当所有的窗口事件消息处理完之后,
//再调用CM_RELEASE消息处理过程CMRelease
end;
再看看下面CM_RELEASE消息处理过程CMRelease的定义:
procedure CMRelease(var Message: TMessage); messageCM_RELEASE;
procedure TCustomForm.CMRelease;
begin
Free; //最后还是free;
end;