搜档网
当前位置:搜档网 › C++中Format函数的用法总结

C++中Format函数的用法总结

C++中Format函数的用法总结
C++中Format函数的用法总结

Format函数的用法总结如下:

函数声明

function Format(const Format: string; const Args: array of const): string; overload;

函数功能

事实上Format方法有两个种形式,另外一种是三个参数的,主要区别在于它是线程安全的,但并不多用,所以这里只对第一个介绍。Format参数是一个格式字符串,用于格式化Args里面的值的。Args是一个变体数组,即它里面可以有多个参数,而且每个参数可以不同。例如:

Format("my name is %6s","wind");

返回的是:my name is wind

函数参数

Format里面可以写普通的字符串,比如"my name is" ,但有些格式指令字符具有特殊意义,比如"%6s"

格式指令具有以下的形式:"%" [index ":"] ["-"] [width] ["." prec] type

它是以"%"开始,而以type结束,type表示一个具体的类型。中间是用来格式化type类型的指令字符,是可选的。各个参数的含义与用途如下;

[type]

type参数可选的类型有d,u,f,e,g,n,m,p,s,x.

1) d 十进制数,表示一个整型值,u 和d一样是整型值,但它是无符号的,而如果它对应的值是负的,则返回时是一个2的32次方减去这个负数的绝对值。

例如:Format("this is %u",-2);

返回的是:this is 4294967294

2)f 对应浮点数

3)e科学表示法,对应整型数和浮点数

例如:Format("this is %e",-2.22);

返回的是:this is -2.220000E+000

4)g 这个只能对应浮点型,且它会将值中多余的数去掉

例如:Format("this is %g",02.200);

返回的是:this is 2.2

5)n 只能对应浮点型,将值转化为号码的形式,看一个例子就明白了

例如:Format("this is %n",4552.2176);

返回的是:this is 4,552.22

注意:一是,只表示到小数后两位

二是,即使小数没有被截断,它也不会也像整数部分一样有逗号来分开的

6)m 钱币类型,但关于货币类型有更好的格式化方法,这里只是简单的格式化,另外它只对应于浮点值例如:Format("this is %m",9552.21);

返回的是:this is ¥9,552.21

7)p 对应于指针类型,返回的值是指针的地址,以十六进制的形式来表示

例如:Format("this is %p",p);

返回的是:this is 0012F548

8)s 对应字符串类型

9)x 必须是一个整形值,以十六进制的形式返回

例如:Format("this is %X",15);

返回的是:this is F

下面介绍格式化Type的指令:

[index ":"] :index指示Args中参数显示的顺序。

例如:Format("this is %d %d",12,13);

其中第一个%d的索引是0,第二个%d是1,所以字符显示的时候,是这样:this is 12 13

若定义为:Format("this is %1:d %0:d",12,13);

那么返回的字符串就变成了:this is 13 12

若定义为:Format("%d %d %d %0:d %d", 1, 2, 3, 4) ;

那么将返回的是:1 2 3 1 2

若想返回的是1 2 3 1 4,必须这样定义:Format("%d %d %d %0:d %3:d", 1, 2, 3, 4) ;

注意:索引不能超出Args中的个数,不然会引起异常。

例如:Format("this is %2:d %0:d",12,13);

由于Args中只有12 13 两个数,所以Index只能是0或1,这里为2就错了。

[width] :指定将被格式化的值占的宽度。

例如:Format("this is %4d",12);

返回的是:this is 12

如果Width的值小于参数的长度,则没有效果。

例如:Format("this is %1d",12);

返回的是:this is 12

["-"] :这个指定参数向左对齐,和[width]合在一起最可以看到效果。

例如:Format("this is %-4d,yes",12);

返回的是:this is 12 ,yes

["." prec] :指定精度,对于浮点数效果最佳。

例如:Format('this is %.2f,1.1234);

返回的是:this is 1.12

又如:Format('this is %.7f,1.1234);

返回的是:this is 1.1234000

而对于整型数,如果prec比如整型的位数小,则没有效果,反之比整形值的位数大,则会在整型值的前面以0补之。

例如:Format('this is %.7d,1234);

返回的是:this is 0001234

对于字符型,刚好和整型值相反,如果prec比字符串型的长度大,则没有效果,反之比字符串型的长度小,则会截断尾部的字符。

例如:Format('this is %.2s,1234);

返回的是:this is 12

之前说过的例子:Format("this is %e",-2.22);

返回的是:this is -2.220000E+000

若这样:Format('this is %.2e',[-2.22]); 就可以解决了!

Proe中的常用函数关系

Proe中的部分函数关系 一、函数关系 sin 正弦Cos 余弦tan 正切asin 反正弦acos 反余弦atan 反正切sinh 双曲线余弦cosh 双曲线正弦tanh 双曲线正切spar 平方根exp e的幂方根abs 绝对值log 以10为底的对数ln 自然对数 ceil 不小于其值的最小整数floor 不超过其值的最大整数 二、齿轮公式 alpha=20 m=2 z=30 c=0.25 ha=1 db=m*z*cos(alpha) r=(db/2)/cos(t*50) theta=(180/pi)*tan(t*50)-t*50 z=0 三、蜗杆的公式da=8为蜗杆外径m=0.8 为模数angle=20压力角 L=30长度q直径系数d分度圆直径f齿根圆直径n实数

其中之间的关系 q=da/m-2 d=q*m df=(q-2.4)*m n=ceil(2*l/(pi*m)) 在可变剖面扫描的时候运用公式sd4=trajpar*360*n 在扫描切口的时候绘制此图形,其中红色的高的计算公式是sd5=pi*m/2 五、方向盘的公式sd4=sd6*(1-(sin(trajpar*360*36)+1)/8) 其中sd4是sd6的(3/4或者7/8),sin(trajpar*360*36的意思是转过360度且有36个振幅似的 六、凸轮的公式sd5=evalgraph("cam2",trajpar*360) r=150 theta=t*360 z=9*sin(10*t*360) 在方向按sin(10*t*360)的函数关系,9为高的9倍10为10个振幅似的 七、锥齿轮公式 m=4模数z =50齿轮齿数z-am=40与之啮合的齿轮齿数angle=20压力角b=30齿厚long分度圆锥角 d分度圆直径da齿顶圆直径df齿根圆直径db基圆直径关系:long=atan(z/z-am) d=m*z da=d+2*m*cos(long)

疑问代词用法总结及练习

疑问代词用法总结及练习 句子是英语学习的核心。从句子使用的目的来分,它可分为四类 1、陈述句(肯定句和否定句) 2、疑问句(一般疑问句、特殊疑问句和选择疑问句) 3、祈使句(肯定句和否定句) 4、感叹句。 四大句子类型的相互转换,对于学生来讲是个难点,为此,可通过说顺口溜的形式来帮助学生解决这一难题。 如:将陈述句变成一般疑问句,可以变成这样的顺口留:疑问疑问调个头,把be(系动词“is are am”)放在最前头。 如:将陈述句的肯定句变成否定句,我们就可以这样说:否定,否定加“not”,加在何处,加在系动词的后面。 在句子相互转换的题型中,最难的要算“就下列划线部分提问”或是“看答句,写问句”这种题型了,其实,我们只要熟练掌握疑问词(what,what time, what colour, where, when, who, whose, which, how, how old ,how tall, how long, how big, how heavy , how much, how many等等)具体用法。

习题 一、选择正确的单词填空 (who, where, when) is that pretty girl She is my sister. are Jack and Tom They are behind you. do you go to school I go to school from Monday to Friday. has a beautiful flower John has a beautiful flower.

are they They are my parents. is my mother She is in the living room. are you going We are going to the bakery(面包坊). Jim and Wendy play ball They play ball in the afternoon. does he jog He jogs in the park. are you from I'm from Changchun city. 11. _______ is your birthday –On May 2nd. 12、_______ are you --- I`m in the office. 13. are you ---- I`m Alice. 二.用(what time, what color, what day, what)填空。 1. A: ______ _______ is it B: It is nine o’clock. 2. A: ______ _______ does your mother get up B: My mother gets up at 6:30. 3. A: ______ _______ do you go to bed B: I go to bed at 10:00. 4. A: ______ _______ do Diana and Fiona have supper B: Diana and Fiona have supper at 18:00. 5. A: ______ _______is it B: It is purple. 6. A: ______ _______ is the sky B: The sky is blue. 7. A: ______ _______ is your coat B: My coat is black. 8. A: ______ _______ is the dog B: The dog is white. 9. A: ______ _______ is today B: Today is Monday. 10. A: ______ _______ is tomorrow B: Tomorrow is Tuesday. 11. A: ______ _______ was yesterday B: Yesterday was Sunday. 12. A: ______ _______ do you like B: I like red. 13. A: ______ is this This is a computer. 14. A: ______ are you doing B: We are playing basketball.

Make短语总结

Make短语总结 1.make good use of/make full use of 2.Both husband and wife had to work to make ends meet.使收支平衡。 3.After years as an unsuccessful businessman, he finally made it.成功 4.What a strange person she is!I can’t make her out at all.理解,明白 5.The explanation in the schoolbook makes no sense, because the words are hard.讲不通,没意义,不能被理解 6.The teacher asked the children to make up a story about a trip to the moon.编造 7.The actors were making up when we arrived.打扮 8.Mary had to make up for the time she missed in school when she was sick, by studying very hard.弥补 9.The team is made up of nine players.由。。组成 10.He’ll make a good lawyer.有条件成为 11.The large print makes for easier reading.有助于,有利于 12.People in the West make it a rule to buy Christmas presents for their relatives and friends. 13.The teacher raised his voice so that he could make himself heard. 14.“Make yourself at home,”the hostess said to me as soon as I entered the house.别拘束,随便 Exercises: 1.(2012年陕西卷13题)No matter where he is , he makes_____ a rule

英语一般疑问句用法总结

英语一般疑问句用法总结 1. 基本用法及结构 一般疑问句用于对某一情况提出疑问,通常可用yes和no来回答,读时用升调。其基本结构是“be / have / 助动词+主语+谓语(表语)”: Is he interested in going? 他有兴趣去吗? Have you ever been to Japan? 你到过日本吗? Does she often have colds? 她常常感冒吗? Did you ask her which to buy? 你问没问她该买哪一个? 2. 陈述句变一般疑问句的方法 (1) 动词be的否定式。动词be根据不同的时态和人称可以有am, is, are, was, were等不同形式,可用作连系动词(表示“是”、“在”等)和助动词(用于构成进行时态和被动语态等),但不管何种情况,构成疑问式时,一律将动词be的适当形式置于句首: Am I right? 我是对的吗? Are you feeling better today? 你今天感到好些了吗? Was he late for school? 他上学迟到了吗? (2) 动词have的疑问式。动词have根据不同的时态和人称可以有have, has, had等形式,可以用作实意动词和助动词,分以下情况讨论:

①用作实意动词表示状态,如表示拥有、患病或用于have to 表示“必须”等,在构成构成式时可以直接将have, has, had置于句首,也可根据情况在句首使用do, does, did: Does he have [Has he] anything to say? 他有什么话要说吗? Do you have [Have you] to leave so soon? 你必须这么早走吗? Did you have [Had you] any friends then? 他当时有朋友吗? ②用作实意动词表示动作,如表示“吃(=eat)”、“喝(=drin k)”、“拿(=take)”、“收到(=receive)”、“度过(=spend)”等,构成疑问式时不能将have提前至句首,而应在句首使用do, does, did: Does he have breakfast at home? 他在家吃早餐吗? Did you have a good time at the party? 你在晚会上玩得高兴吗? ③用作助动词构成完成时态,其疑问式总是将have等置于句首: Have you finished your work? 你的工作做完了吗? Has he left when you arrived? 你到达时他已离开了吗? (3) 情态动词的疑问式。情态动词的疑问式通常是将情态动词置于句首: Can you speak English? 你会说英语吗?

完整word版make用法及短语总结推荐文档

make 用法及短语 、 make 的复合宾语。英语中 make 一词用法甚多,是使用频率最高的动词之一,而 作使役动词的用法也很常见。 意思是“使成为”、“使作为”、“使变成”, 其后的复合宾语 (即 宾语 +宾语补足语)有以下表达方式: 1. make +宾语 +名词(作宾语补足语) Most pop singers make music their career. 大多数流行歌手把音乐当作他们的职业。 Bill Gates ' Microsoft makes him a phenomenon in the business world. 比尔?盖茨的微软使他成为商界的一个奇才。 What makes the ocean such a great place to live? 究竟是什么东西使大海成为如此优越的生活场所呢 European football is played in 80 countries , making it the most popular sport in the world. 80 个国家踢欧式足球,使它成为世界上最受欢迎的运动。 After all , what makes a new invention such a wonderful thing is that it allows us to do something we could not do before . 毕竟, 一项发明之所以成为如此奇妙的事情就在于它可以让我们做以前不能做的事。 2. make +宾语+不带 to 的不定式(作宾语语补足语) Nobody made us go to bed at a certain time. 没有人让我们在某一固定时间就寝。 Pop music makes people feel easy and forget about the real world ; rock music makes people think about the world and how to make their life better . 流行音乐令人松弛安心, 忘记这真实的世界, 而摇滚乐使人思考这个世界和如何改善 自己的生活。 Nothing can make me turn against my country . Love may create the wonder , and may make people become satisfied and optimistic . 爱可以创造奇迹, 可以让人变得满足和乐观。 Children should be made to understand the importance of saving water . 应该让孩子们理解节水的重要性。 3. make +宾语+形容词(作宾语补足语) But I was happy to help because I knew it was to realize our dream of making black and make 什么也不能使我背叛我的祖国。 注意:但改成被动语态时, 则要加 to 。

一般疑问句、选择疑问句的详细用法备课讲稿

一般疑问句、选择疑问句的详细用法

一般疑问句、 (一)一般疑问句 1、一般疑问句概述 一般疑问句(general questions),也可称为“yes/no” questions(是否型问句),因为它一般是由yes或no回答的,如: —Can you swim to the other side?你能游到对岸吗? —Yes, I can.是的,我能。 —No,I can’t.不,我不能。 —Have you locked the door?你锁门了吗? —Yes,I have.是的,锁了。 —No,I haven’t. 不,没有锁。 2一般疑问句的结构 (1)基本的结构为:be/助动词/情态动词+主语+谓语/表语+(其他),句子要读升调,如: Are they your friends?他们是你的朋友吗? Does he go to school on foot?他是步行去上学吗? Will you be free tonight?你今晚有空吗? Can you play basketball?你会打篮球吗? (2)陈述句亦可用作一般疑问句,多用在非正式文体中,句末有问号,用升调,如: Somebody is with you?有人和你一起吗? He didn’t finish the work?他没有做完活吗? You are fresh from America,I suppose?我猜,你刚从美国回来吧? 3、一般疑问句的答语 (1)一般疑问句一般由yes或no来回答,如: —Are you tired?你累了吗? —Yes,I am.是的,累了。 —No, I’m not.不,不累。 —Does she do the cleaning?她扫除了吗?

make用法及短语总结资料讲解

m a k e用法及短语总结

make用法及短语 一、make的复合宾语。英语中make一词用法甚多,是使用频率最高的动词之一,而make作使役动词的用法也很常见。意思是“使成为”、“使作为”、“使变成”,其后的复合宾语(即宾语+宾语补足语)有以下表达方式: 1. make +宾语+名词(作宾语补足语) Most pop singers make music their career.大多数流行歌手把音乐当作他们的职业。 Bill Gates’ Microsoft makes him a phenomenon in the business world. 比尔·盖茨的微软使他成为商界的一个奇才。 What makes the ocean such a great place to live? 究竟是什么东西使大海成为如此优越的生活场所呢? European football is played in 80 countries, making it the most popular sport in the world. 80个国家踢欧式足球,使它成为世界上最受欢迎的运动。 After all, what makes a new invention such a wonderful thing is that it allows us to do something we could not do before. 毕竟,一项发明之所以成为如此奇妙的事情就在于它可以让我们做以前不能做的事。 2. make +宾语+不带to的不定式(作宾语语补足语) Nobody made us go to bed at a certain time.没有人让我们在某一固定时间就寝。 Pop music makes people feel easy and forget about the real world; rock music makes people think about the world and how to make their life better.

Until的详细用法总结

Until的详细用法总结 你们知道until用法吗?我们一起来学习学习吧,下面就和大家分享,来欣赏一下吧。 Until的用法 比较until和till 此两个连词意义相同。肯定形式表示的意思是"做某事直至某时",动词必须是延续性的。否定形式表达的意思是"直至某时才做某事"。动词为延续性或非延续性都可以。正确使用这两个连词的关键之一就在于判断句中的动词该用肯定式还是否定式。 肯定句: I slept until midnight. 我一直睡到半夜时醒了。 Wait till I call you. 等着我叫你。 (在肯定句中可用before代替Lets get in the wheat before the sun sets.) 否定句: She didnt arrive until 6 oclock.

她直到6点才到。 until 用法上的三个难点 一、 1. until用在肯定句,谓语动词通常是延续性动词,如stand, stay, talk, wait等,表示主句动作终止的时间。如: ③I waited until he cam e back.我一直等到他回来。 ④The war lasted until 1945.战争持续到1945年。 如果用在否定句,谓语动词通常是瞬间性动词,如open, start, leave, arrive, finish, stop等,强调主句动作开始的时间。如: ⑤I didnt leave the boy until his mother turned up.直到这孩子的母亲来,我才离开。 ⑥The noise of the street didnt stop until it wa s midnight.街上的噪音直到半夜才停止。 2.连词until引导的从句中谓语动词的时态 1)until后面的从句中不能用一般将来时,应该用一般现在时代替。所谓的“主将从现”。 He will stay here until his mother comes back.

高中常用函数性质及图像汇总

高中常用函数性质及图像 一次函数 (一)函数 1、确定函数定义域的方法: (1)关系式为整式时,函数定义域为全体实数; (2)关系式含有分式时,分式的分母不等于零; (3)关系式含有二次根式时,被开放方数大于等于零; (4)关系式中含有指数为零的式子时,底数不等于零; (5)实际问题中,函数定义域还要和实际情况相符合,使之有意义。 (二)一次函数 1、一次函数的定义 一般地,形如y kx b =+(k ,b 是常数,且0k ≠)的函数,叫做一次函数,其中x 是自变量。当0b =时,一次函数y kx =,又叫做正比例函数。 ⑴一次函数的解析式的形式是y kx b =+,要判断一个函数是否是一次函数,就是判断是否能化成以上形式. ⑵当0b =,0k ≠时,y kx =仍是一次函数. ⑶当0b =,0k =时,它不是一次函数. ⑷正比例函数是一次函数的特例,一次函数包括正比例函数. 2、正比例函数及性质 一般地,形如y=kx(k 是常数,k≠0)的函数叫做正比例函数,其中k 叫做比例系数. 注:正比例函数一般形式 y=kx (k 不为零) ① k 不为零 ② x 指数为1 ③ b 取零 当k>0时,直线y=kx 经过三、一象限,从左向右上升,即随x 的增大y 也增大;当k<0时,?直线y=kx 经过二、四象限,从左向右下降,即随x 增大y 反而减小. (1) 解析式:y=kx (k 是常数,k ≠0) (2) 必过点:(0,0)、(1,k ) (3) 走向:k>0时,图像经过一、三象限;k<0时,?图像经过二、四象限 (4) 增减性:k>0,y 随x 的增大而增大;k<0,y 随x 增大而减小 (5) 倾斜度:|k|越大,越接近y 轴;|k|越小,越接近x 轴 3、一次函数及性质 一般地,形如y=kx +b(k,b 是常数,k≠0),那么y 叫做x 的一次函数.当b=0时,y=kx +b 即y=kx ,所以说正比例函数是一种特殊的一次函数. 注:一次函数一般形式 y=kx+b (k 不为零) ① k 不为零 ②x 指数为1 ③ b 取任意实数 一次函数y=kx+b 的图象是经过(0,b )和(- k b ,0)两点的一条直线,我们称它为直线y=kx+b,它可以看作由直线y=kx 平移|b|个单位长度得到.(当b>0时,向上平移;当b<0时,向下平移)

MAKE的用法

71. Make的用法和判别 一、make作“做”、“制造”、“构成”等解: 1. They make many kinds of machines. 他们制造许多种机器。 2. We made two experiments yesterday. 我们昨天作了两个实验。 3. Hydrogen and oxygen make water. 氢和氧构成水。 4. Two and three make five. 二加三等于五。 5. They are making us a new-type device. 他们正在为我们制造一台新型装置。 二、“make+某些抽象名词”表示作出某种举动。例如: 1. to make an answer 作出答复 2. to make measurement 量度 3. to make efforts to fulfill the plan 努力完成计划 4. to make contributions to the revolution 对革命作出贡献 5. to make adjustments 进行调节 6. to make a calculation 计算 7. to make application 应用,使用 8. to make a correction 校正、更正 9. to make use of…利用…… 10. to make much account of oil 很重视石油 在科技英语中,诸如此类的搭配用法甚多,必须予以注意。翻译时多半译出名词的意思即可。 三、make作“行走”、“行使”解: This automobile makes 70 kilometers an hour. 这辆汽车每小时行驶70公里。 四、“make+直接宾语+宾语补语(名词、形容词、不带to的不定式、过去分词、介词短语等)”,其中make作“使得”、“使……成为”解:

Matlab之print,fprint,fscanf,disp函数的用法

print: print函数可以把函数图形保存成图片: minbnd = -4*pi; maxbnd = 4*pi; t = minbnd:0.1*pi:maxbnd; plot(t, sin(t), 'g', 'Linewidth', 2); line([minbnd, maxbnd], [0, 0]); %绘制x轴 axis([-10, 10, -2, 2]) %定义显示的坐标区间:x在(-10,10)之间,y在(-2,2)之间 grid on; title('sin(x)'); xlabel('x'); ylabel('sin(x)'); print('-dpng','sin.png'); %保存为png图片,在Matlab当前的工作目录下 如下: 打开Matlab当前的工作目录下可以看到有sin.png图片了 print('-dpng', 'sin.png')表示保存为png图片,文件名为sin.png,其中第一个参数可以是: -dbmp:保存为bmp格式 -djpeg:保存为jpeg格式 -dpng:保存为png格式 -dpcx:保存为pcx格式 -dpdf:保存为pdf格式 -dtiff:保存为tiff格式

fprintf: fprintf函数可以将数据按指定格式写入到文本文件中: data = [5, 1, 2; 3, 7, 4]; [row, col] = size(data); for i=1:row for j=1:col fprintf('data(%d, %d) = %d\n', i, j, data(i, j)); %直接输出到屏幕;类似于C语言的输出格式end end fprintf(fid, format, data)中的fid表示由fopen函数打开的文件句柄,如果fid 省略,则直接输出在屏幕上,format是字符串形式的输出格式,data是要输出的数据。其中format可以为: %c 单个字符 %d 有符号十进制数(%i也可以) %u 无符号十进制数 %f 浮点数(%8.4f表示对浮点数取8位宽度,同时4位小数) %o 无符号八进制数 %s 字符串 %x 小写a-f的十六进制数 %X 大小a-f的十六进制数 输出到文件: data = [5, 1, 2; 3, 7, 4]; [row, col] = size(data); %求出矩阵data的行数和列数 %加t表示按Windows格式输出换行,即0xOD 0x0A,没有t表示按Linux格式输出换行,即0x0A fid=fopen('test.txt', 'wt'); %打开文件 for i=1:row

not until的北京中考用法

【中考链接】 1.Not until 1. 托尼经过和老师长时间地反复讨论之后,才下定决心尝试这个新想法。(09西城一模) Tony didn’t ________________________ discussing it with his teacher again and again. 2. 这本小说太长了,我直到昨天才读完。(09丰台二模) The novel was so long _________________________________________ until yesterday. 3. 昨天晚上比尔直到十二点钟才上床睡觉。(09顺义二模) Bill _____________________________ 12 o’clock last night. 4. 昨天下午我直到写完作业才回家。(09石景山模拟) I __________ go home yesterday afternoon ______________ I finished my homework. 5.刘先生过去总抽烟。知道病得严重了,他才戒烟。(11延庆二模) Mr Liu used to smoke a lot.______________ he was seriously ill. 6. 昨天李英洗完衣服才做作业。(11房山一模) Li Ying ________________ her clothes yesterday. 主将从现 1.Be confident! Everyone will succeed if he ___________ in himself. (11 海淀一模) A.believe B. believes C.believed D.will believe 2.You won't have the chance to succeed when you ____________.(11 海淀二模) A.gave up B.give up C. will give up D.are giving up 3.----What will you do tomorrow? (11 西城二模) ----- I will go out for fun if it ___________ fine. A.is B.be C. will be D. Was 4.We ____________ for Dalian as soon as we get the train tickets.(11 东城一模) A.leave B. left C.will leave D.were leaving 4.George will send us an e-mail as soon as he ________in London.(11 东城二模) A.work B.working C. worked D. To work 6.Difficult work___________ easy if you do it very carefully.(11朝阳一模) A.become B.became C.will become D.has become 2.Make 的用法 1.Let's ____________ goodbye to plastic bags in order to protect the environment .(11海淀一模) A. say B. said C. saying D. to say 2.Sarah always makes her son ___________ his hands before eating. (11海淀二模) A.wash B. washed C.washing D.to wash 3.My mother made me ___________ the piano when I was very young . Now, I begin to understand her. (11西城一模) A.play B. to play C. playing D. play 4.----Don't always make Tony ________ this or that. He is already a big boy.(11朝阳一模) ----Maybe you're right. A.do B.done C. to do D.doing 5.让我们忘记分歧,做好朋友吧。(11海淀二模) ____________ forget our differences and be good friends. 6.今天下午没课。让我们去公园吧!(11东城二模) We're free this afternoon.__________ go to the park.

特殊疑问句和一般疑问句的用法

(一)由be(am,is,are)引导的一般疑问句 1、Am I a student? 我是学生吗? Yes,you are./ No,you aren’t. 2、Is this /that/it a chair?这/那/它/是一把椅子吗? Yes,it is. /No,it isn’t. 3、Is she/Amy your sister?她/艾米是你的妹妹吗?Yes,she is ./ No,she isn’t. 4、Is he/Mike your brother?他/迈克是你的哥哥吗?Yes,he is./No,he isn’t. 5、Is your brother helpful at home? 你哥哥在家有用吗?Yes, he is./ No, he isn’t. 6、Is there a forest in the park? 在公园有一个森林吗? Yes,there is./No,there isn’t. 是的,有。/不,没有。 7、Are there any panda s in the mountains?在山上有熊猫吗? Yes,there are./No,there aren’t.是的,有。/不,没有。 8、Are they dusk s? 它们是鸭子吗?(问物) Yes, they are. /No,they aren’t.是的,它们是。/不,它们不是。 9、Are they famers? 他们是农民吗?(问人) Yes, they are. /No,they aren’t. 是的,他们是。/不,他们不是。 10、Are you a teacher?你是一个老师吗?(问you 用I回答) Yes, I am./No,I’m not.是的,我是。/不,我不是。 11、Are you teacher s?你们是老师吗? Yes,we are./No,we aren’t.是的,我们是。/不,我们不是。 (二)、由do引导的一般疑问句

until用法归纳

使用注意事项: ◇注意事项一 until用于肯定句中,表示主句的动作一直持续到从句动作发生或状态出现时为止。一般可译为“……直到……为止”。在这种用法中,主句的谓语动词必须是持续动词(非瞬间动词),如live, wait , last, love, like, stay, work, continue 等。 until用于否定句中,表示主句的动作在从句的动作发生之前尚未发生,或者说主句的动作在从句的动作发生之后才开始。一般可译为“直到……才”。 ◇注意事项二 until后面的从句中不能用一般将来时,应该用一般现在时代替。所谓的“主将从现”。 He will stay here until his mother comes back. They will study at the school until their parents come to take them home. ◇注意事项三(该考点为高中内容) till和until的意思基本相同,用法也基本一样,但until语气较重,多用于较正式的文体里。till多用于英式英语,until多用于美式英语;till不能用在句首,也不能用在not开头的短语或从句里,而until可以。在这种情况下应用倒装语序。 Until he came home, we knew the news. 在他到家之前,我们不知道这消息。Not until nine o’clock yesterday evening did we fi nish the work. 直到昨晚九点,我们才完成这项工作。 ◇注意事项四(该考点在初中阶段基本不涉及)

Excel常用函数详解

计算机二级考试MS_Office应用Excel函数 =公式名称(参数1,参数2,。。。。。) =sum(计算范围) =average(计算范围) =sumifs(求和范围,条件范围1,符合条件1,条件范围2,符合条件2,。。。。。。) =vlookup(翻译对象,到哪里翻译,显示哪一种,精确匹配) =rank(对谁排名,在哪个范围里排名) =max(范围) =min(范围) =index(列范围,数字) =match(查询对象,范围,0) =mid(要截取的对象,从第几个开始,截取几个) =int(数字) =weekda y(日期,2) =if(谁符合什么条件,符合条件显示的内容,不符合条件显示的内容) =if(谁符合什么条件,符合条件显示的内容,if(谁符合什么条件,符合条件显示的内容,不符合条件显示的内容)) SUM函数 简单求和。 函数用法 SUM(number1,[number2],…) =SUM(A1:A5)是将单元格 A1 至 A5 中的所有数值相加; =SUM(A1,A3,A5)是将单元格 A1,A3,A5 中的数字相加。 SUMIFS函数 根据多个指定条件对若干单元格求和。 函数用法 SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...) 1) sum_range 是需要求和的实际单元格。包括数字或包含数字的名称、区域或单元格引用。忽略空白值和文本值。 2) criteria_range1为计算关联条件的第一个区域。 3) criteria1为条件1,条件的形式为数字、表达式、单元格引用或者文本,可用来定义将对criteria_range1参数中的哪些单元格求和。例如,条件可以表示为32、“>32”、B4、"苹果"、或"32"。 4)criteria_range2为用于条件2判断的单元格区域。 5) criteria2为条件2,条件的形式为数字、表达式、单元格引用或者文本,可用来定义将对criteria_range2参数中的哪些单元格求和。 4)和5)最多允许127个区域/条件对,即参数总数不超255个。 VLOOKUP函数 是Excel中的一个纵向查找函数,按列查找,最终返回该列所需查询列序所对应的值。

否定疑问句的构成和用法

否定疑问句的构成和用法 反意疑问句是在陈述句后边加上一个简短问句,对陈述句所叙述的内容提出相反的疑问,这种句子就叫作反意疑问句。反意疑问句可以表示真实的疑问,也可以表示提问人的倾向、强调或反问。如果陈述句是肯定句时,后边的反意疑问句通常要用否定式;反之,如果陈述句是否定句时,后边的反意疑问句通常要用肯定式。陈述句和后边的反意疑问句的主语以及谓语动词的人称、数、时态通常要保持一致。例如: He speaks English, doesn't he? Mary won't do it, will she? Lies cannot cover up the facts, can they? 回答反意疑问句和回答一般疑问句一样,肯定回答用"Yes, +肯定结构";否定回答用"No, +否定结构"。这与汉语习惯有所不同。例如: -He's a doctor, isn't he?他是医生,对吧? -Yes, he is.对,他是医生。(No, he isn't.不,他不是医生。) -He isn't a doctor, is he?他不是医生,对吧? -Yes, he is.不,他是医生。(No, he isn't.对,他不是医生。) 在使用反意疑问句时,特别要注意以下几点: 1.当动词have作"有"讲时,可以有两种反意疑问句形式。例如: He hasn't any sisters, has he? He doesn't have any sisters, does he? 当have表示其它含义(如:经历、遭受、得到、吃……)讲时,只有一种反意疑问句形式: You all had a good time, didn't you? He often has colds, doesn't he? They had milk and bread for breakfast, didn't they? 2.如果陈述句的谓语动词含有have to, had to时,反意疑问句通常用其适当形式。例如: We have to get there at 8 a.m. tomorrow, don't we? They had to take the early train, didn't they? 3. need和dare既可以作情态动词,又可以作实义动词,注意有两种反意疑问句形式。例如: You needn't hand in your paper today, need you? You don't need to hand in your paper today, do you? He dare ask the teacher, dare not he? He doesn't dare to ask the teacher, does he? 4.如果陈述句的谓语动词含有used to时,也可以有两种反意疑问句形式。例如: He used to live in London, usedn't/ didn't he? 5.如果陈述句中出现never, seldom, hardly, scarcely, rarely, few, little, nobody, no one, nothing等含有否定意义的词时,反意疑问句通常要用肯定式。例如: She seldom goes to the concert, does she? He has few good reasons for staying, has he? 6.如果陈述句中的主语是不定式短语、动名词短语、从句、everything或nothing时,反意疑问句通常要用it作主语。例如: To sell/ Selling newspaper was his job, wasn't it? What he said is true, isn't it? Everything is all right, isn't it? 7.如果陈述句中的主语是不定代词everybody, everyone, somebody, someone, nobody, no one, each of等时,反意疑问句通常要用they或he作主语。例如: Somebody borrowed my bike, didn't they/ he? Each of them passed the exam, didn't they?

相关主题