while引导的状语从句

while引导的状语从句
while引导的状语从句

while引导的状语从句

注意:(1)注意while的不同含义:a. 表示时间,“当……时;在……同时”;b. 表示让步,“虽然;尽管”;c. 表示转折对比,“然而;但”。(2)while引导的状语从句用一般现在时表示将来的动作或状态。⑦

Eg. While I understand your opinion, I don’t agree with you.

While it’s winter here in our country right now, it’s summer in South Africa.

when引导的句子:

when作连词时,主要义项有:(1)在那时,突然……;

Eg. He was about to tell me the secret when someone patted him on the should.

(2)当……时候;(3)刚(一)……就……;

Eg. I’ll go to see you when you come back.

(4)如果(同if);

Eg. Call me at once when anything goes wrong with the machine.

(5)可是,虽然;

Eg. She usually walks when she might ride.

(6)既然(同since)

Eg. Why did you write with a pencil when you know you should write in ink?

宾语从句的引导词

宾语从句中的引导词一引入 什么是宾语? 宾语,位于谓语动词或者介词后。 ?I know him. ?Do you have the time? ?I think (that) she is beautiful. ?Why don’t you pay attention to me? 二讲解 1、宾语从句的概念 从句在复合句中作宾语的名词性从句, 通常放在主句谓语动词(及物动词)或介词之后。eg. We know Mr Green teaches English. She asked if these answers were right. /2、宾语从句三要素 引导词(连接词)语序时态 (一)引导词 由从属连词that 引导的宾语从句 由从属连词whether, if 引导的宾语从句 由连接代词Who,whom,whose,which,what 和连接副词where,how,why,when引导的宾语从句

(1)由从属连词that 引导的宾语从句 注:that 引导的从句,表示陈述一件事实,主句谓语动词表示确定,不疑问;that在句中无任何意义,不充当句子成分,常省略。 (2)由从属连词whether, if 引导的宾语从句 if/ whether “是否”,说明对陈述的事物不明确或不清楚。常用在ask, wonder, can(could) you tell me 表示疑问不确定意义的词之后;从句句意完整,不缺成分 (3)由连接副词where,how,why,when 引导的宾语从句 主句谓语动词,表示疑问不确定含义,要用疑问引导宾语从句,并在从句中担任句子成分,具有一定的意义,不可省略。 三练习 ( )1. The young man asked _____ it's summer or winter. A. if B. that C. weather D. whether ( )2. We don't know ______ they did it . A. how B. who C. what D. which ( )3. The teacher asks us ____ Jim can come back on time tomorrow . A. that B. if C. when D. what time ( )4. Does anybody know ______ we will have a sports meeting this weekend or not . A. if B. where C. whether D. that

while循环

while 循环 语法形式: while(条件) { 需要循环执行的语句; } while 是“当”的意思。 请首先和if语句作一个比较: if(条件) { 条件成立时执行的语句; } 二者除了关键字不一样以外,结构完全一样。但一定要注意,在条件成立时,if语句仅仅执行一遍,而while语句则将反复执行,直到条件不再成立。 请看while循环的流程图: 程序从“前面的语句”开始执行,然后进行条件判断,如果条件成立,则执行一次“每次循环执行 的语句”,再后请特别注意红色部分,这是我们碰上的,第一次会往后走流程:红线就像汽车拐弯, 掉头到条件处(并不包括前面的语句),然后再进行下一次的条件判断……直到某一次判断时条件不 成立了,程序“继续后面的语句”。

我们用while的语法套用生活中的实际例子,可以直观地看出while的用法。 假设有一个爱哭的小娃娃,有一天她要求父母给买一条小红裙,可惜父母不同意,于是她就开始一个循环: while ( 父母不给买小红裙) { 我哭; } 这段“代码”的意思是:当“父母不给买小红裙”,那么,小女孩就一遍一遍地哭。 这就是我们和循环流程的第一个遭遇战。所举的例子看似直观:“小孩一遍遍地哭,直到父母给买裙”,但真正要用程序的语言来正确地表达出来,需要很多方面要考虑到,必竟,程序是严谨的。 首先,一个合适的判断是否继续的条件相当重要。小女孩要继续哭,仅仅“父母不给买小红裙”,这显示不符合事实,想想我们小时候,再会哭,最终也有累的时候,所以,要想继续哭,我们的条件有两个:“父母不给买小红裙”并且“我还没有哭累”。 while ( 父母不给买小红裙&& 我还没有哭累) { 我哭; } 其次,大多数情况下,条件需要被恰当地改变。小女孩在不停地哭,那么她如何知道父母是否买了红裙呢?所以,她不能只顾哭,还得在哭的间隙观察大人是否同意买裙。至于是否哭累,我们假设小女孩有一个疲劳度,每哭一次疲劳度加1,当疲劳度到达200时,可怜的小女孩累了…… while(父母不给买小红裙&& 疲劳度< 200) { 我哭; 我偷看爸妈是否同意买裙; 疲劳度++; } 例一:用while 语句实现求从1到100的累加和。 求1+2的和,我们可以写a = 1 + 2;求1加到100,我们当然可以这样写a = 1 + 2 + 3 + ... 100.不过这样写显然太累人了,要从1写到100啊!所以聪明如高斯的你,当然也知道这样写:a = (1+100) * 50;这确实是个在任何时候都值得称赞的,又快又简的方法,只是今天我们想让计算机累一点,老老实实地从1加到100。首先用我们先学的while式的循环。 请同学们打开CB,然后新建一空白的控制台程序,在main()函数体加入下面黑体部分代码。然后按F9运行。查看运行结果以加深印象。 //--------------------------------------------------------------------------- #include #pragma hdrstop //--------------------------------------------------------------------------- #pragma argsused int main(int argc, char* argv[])

状语从句引导词

1.时间状语从句 常用引导词:when, as, while, as soon as, before, after, since , till, until 特殊引导词:the minute, the moment, the second, every time, the day,the instant, immediately , directly, no sooner … than, hardly …when, scarcely … when 2.地点状语从句 常用引导词:where 特殊引导词:wherever, anywhere, everywhere 3.原因状语从句 常用引导词:because, since, as, for 特殊引导词:seeing that, now that, in that, considering that, given that. 4.目的状语从句 常用引导词:so that, in order that 特殊引导词:lest, in case, for fear that,in the hope that, for the purpose that, to the end that 5.结果状语从句 常用引导词:so … that, such … that, 特殊引导词:such that, to the degree that, to the extent that, to such a degree that 6.条件状语从句

常用引导词:if, unless, 特殊引导词:as/so long as, only if, providing/provided that, supposing that, in case that, on condition that 7.让步状语从句 常用引导词:though, although, even if, even though 特殊引导词:as(用在让步状语从句中必须要倒装),while ( 一般用在句首),no matter …,in spite of the fact that, while, whatever, whoever, wherever, whenever, however, whichever 8.比较状语从句 常用引导词:as(同级比较), than(不同程度的比较) 特殊引导词:the more … the more … ; just as …,so…; A is to B what /as X is to Y; no … more than; not A so much as B 9.方式状语从句 常用引导词:as, as if, how 特殊引导词:the way

让步、条件状语从句

条件状从和让步状从练习 一.单选题 1._______ the forest park is far away, a lot of tourists visit it every year. A. As B. When C. Even though D. In case 2. The experiment shows that proper amounts of exercise, if ______ regularly, can improve our health. A. being carried out B. carrying out C. carried out D. to carry out 3. You will never gain success you are fully devoted to your work. A. when B. because C. after D. unless 4. It is hard for the Greek government to get over the present difficulties_________ it gets more financial support from the European Union. A. if B. unless C. because D. since 5. It was a nice meal, _______a little expensive. A. though B. whether C. as D. since 6. I don’t really like the author,_______ I have to admit his books are very exciting. A. although B. unless C. until D. once 7. I don't believe we've met before, _____ I must say you do look familiar. A. therefore B. although C. since D. unless 8. You can’t borrow books from the school library ______ you get your student card. A. unless B. if C. while D. as 9. I'll be out for some time. ______ anything important happens, call me up immediately. A. In case B. As if C. Even though D. Now that 10. One's life has value ____one brings value to the life of others. A. so that B. no matter how C. as long as D. except that 二.填空题 11. In the global economy, a new drug for cancer, ______ it is discovered, will create many economic possibilities around the world. 12. One can always manage to do more things, ____ full one’s schedule is in life. 13.________ great difficulties we are faced with, we’ll never give up. 14. ________ great the difficulties are, we’ll never give up. 15. ______ we have enough evidence, we can't win the case. 16. If _____ to look after luggage for someone else, inform the police at once. (ask) 17.____________ the weather is like tomorrow, I will set out for Hongkong. 18. Many of them turned a deaf ear to his advice ___________ they know it to be valuable. 19. Much ______ I admire David as a poet, I don’t like him as a man. 20. In time of serious accidents, ______ we know some basic things about first aid, we can save lives. 三.改错题 21、It won’t matter even he refuses. 22. Though the work was difficult, but we managed to finish it in time. 23. I’m not going to talk on the point any further, though it is neither important nor very interesting. 24. You will be late if you leave immediately. 25. Take an umbrella with you in case of it should rain.

引导时间状语从句的五类引导词

引导时间状语从句的五类引导词 引导时间状语从句的从属连词(以下称引导词)很多,为方便记忆,现作以下分类:1. 基本类 包括before, after, when, while, as, since, till, until, once, as soon as 等。如: Did anyone call when I was out? 我不在家时谁来过电话吗? We have known each other since we were children. 我们从小认识。 You’ll feel better after you take the pills. 吃完药丸后你会感到好一些。Make sure that all the lights are off before you go to bed. 睡觉前一定要关灯。 Don’t promise him anything till we’ve had time to think about it. 在我们有时间考虑之前别答应他什么。 2. 名词类 即由名词词组充当引导词,包括the moment, the minute, the second, the instant 等(均表示“一……就……”。如 I loved you the instant (that) I saw you. 我一见到你就爱上你了。 Tell me the moment (that) you get the results. 你一拿到结果就给我打电话。 3. 副词类 即由副词充当引导词,如 immediately, directly, instantly等。如: I came immediately you called. 你一打电话我就来了。 Directly I walked in the door I smelt smoke. 我一进门就闻到烟味。 4. 短语类 主是几个涉及time短语,如every time,each time,(the) next time,any time,the last time,the first time 等。如: Next time you come in, please close the door. 下次你进来,请关门。 My roof leaks every time it rains. 每次下雨,我的房顶就漏。 He felt nervous each time she spoke to him. 每次她和他讲话,他都感到紧张。 The last time we talked he said he needed another two days. 上次我们谈话时他说他还需要两天。 5. 句型类 包括no sooner…than, hardly…when 等。如: I had no sooner closed the door than somebody knocked. 我刚把门关上就有人敲门。 Hardly were the words uttered when he began to regret them. 话刚说出口他就开始后悔了。

状语从句引导词的含义大全

状语从句引导词的含义 1、表示时间的: ·when(何时;什么时候) ·whenever(每当;无论何时) ·as(同样的;像......一样;当......的时候) ·while(一段时间;当......的时候;和......同时;然而) ·before(在......以前)after(在......时候) ·until、 till(直到......为止) ·since(从......以来;自从;由于;既然) ·ever since(从那时起一直到现在) ·now( that) (既然;由于) ·once(一次;一度;从前) ·so (as) long as (只要) ·as soon as(一......就......) ·every time (每次;总是) ·the moment (片刻) ·instantly(立即,即刻) ·directly (马上,立即) 2、表示地点的: ·where(在哪里) ·wherever(无论在(到)哪里;在(到)任何地方)no matter where 3、表示原因: ·as(同样的) ·because(因为) ·since(既然) ·seeing (that)(由于) ·considering? that(考虑到) ·now that(既然,由于) ·not that ......but that (不是.......而是......) 4、表示目的: ·that(那,那个) ·so that(以便,以致;结果是) ·in order(以便;为了) ·lest (唯恐,免得。在被连接的状语从句中常用should或原形动词)·for fear that (免得,省得) ·in? case(以防、以备) 5、表示结果: ·that (那,那个) ·so? that(以便,以致,结果是) ·so......that (如此......以致) ·such......that (如此的.....以致)

特殊疑问词引导的宾语从句

特殊疑问词引导的宾语从句 一、由连接代词who, whom, whose, what, which和连接副词when, where, why, how引导的宾语从句。这些连接代词和连接副词在宾语从句中充当某个成分。例如:Do you know who (whom) they are waiting for? 你知道他们在等谁吗? I can't imagine why he did that thing.我不能想像他为什么做了那件事。 注意: (1)由于宾语从句要求陈述句语序,故而在从句中它变成了陈述语序。请看下列两组句子: How much does this coat cost? ——I want to know how much this coat costs. Where did you go yesterday? ——Please tell me where you went yesterday. (2)当疑问代词what,who在特殊疑问句中做主语时,该特殊疑问句本身就是陈述句语序,所以当该句用来做宾语时,语序不需要调整。 例如:What's wrong with you? 怎么了? ——He asked the girl what was wrong with her.What's the matter? 怎么了? —— He asked the girl what was the matter. What has happened to him? ——We want to know what has happened to him. 小试牛刀:1. I said to her. Where did you go during the holiday? 2.Mr.Ding asked . What did you do during the holiday? 二、语从句的时态 1.若主句为一般现在时或一般将来时,则从句的时态不限可视句子意义使用所需要的任何时态。 例如:Don't you think Jim is speaking too quick.难道你不认为吉姆讲的太快了吗? He says he will come back.他说他会回来。 2.若主句是祈使句,从句谓语动词也可用所需要的任何时态。 例如:Show me which picture is yours.让我看看哪张照片是你的。 Please tell us where we will go.请告诉我要去哪里。 3.若主句是一般过去时,从句必须用过去时态的某一种。 例如:I knew she had swept the floor already.我知道她已经扫过地了。 He asked if I was doing my homework this time yesterday.他问我昨天这个时候是否在做作业。 4.若从句叙述的是客观真理、自然现象或永恒不变的规律时,则不受主句时态的限制,仍用一般现在时。 例如:Our teacher told us light travels much faster than sound.老师告诉我们光传播的速度比声音快得多。 They knew the sun is much bigger than the earth then.他们那时就知道太阳比地球大得多, He said that one and one makes two.他说一加一等于二。 小试牛刀: 1、The radio says it __________ cloudy tomorrow. (be) 2、The headmaster hopes everything __________well. (go) 3、I hear they __________ it already. (return) 4、He said that they __________ members of the Party since 1948. (be) 5、Our teacher told us in class the sun __________ in the east. (rise) 三、特殊的宾语从句———间接引语 当直接引语是特殊疑问句,改为间接引语时,用原句中的疑问词做连接词,疑问语序改为陈述语序。 例如:“What do you want?” he asked me. →He asked me what I wanted. He asked her,“Where are you going?” →He asked her where she was going. 小试牛刀: 1、She said to Tom,“How are you feeling now?”→. 2、The scientist asked me,”what are you doing?”→. 3、She asked,”How many boys are there in your class?”→ .

特殊疑问词引导的宾语从句

特殊疑问词引导的宾语从句 一、宾语从句的引导词: 由连接代词who, whom, whose,what,which 和连接副词when, where, why, how 引导的宾语从句。这些连接代词和连接副词 在宾语从句中充当某个成分。 例如:Do you know who (whom) they are waiting for? 你知道他们 在等谁吗?I can't imagine why he did that thing .我不能想像他为什 么做了那件事。 注意: (1))由于宾语从句要求陈述句语序,故而在从句中它变成了陈述语序。请看下列两组句子:How much does this coat cost? ——I want to know how much this coat costs .Where did you go yesterday? ——Please tell me where you went yesterday . (2))当疑问代词w hat ,who 在特殊疑问句中做主语时,该特殊疑 问句本身就是陈述句语序,所以当该句用来做宾语时,语序不需要 调整。例如:What's wrong with you? 怎么了? ——He asked the girl what was wrong with her .What's the matter? 怎么了? ——He asked the girl what was the matter .What has happened to him? ——We want to know what has happened to him .小试牛刀:1. I said to her. Where did you go during the holiday? 2.Mr.Ding asked . What did you do during the holiday? 二、宾语从句的时态

高二必修五重点难点——时间、条件和让步状语从句

Section ⅡGrammar 时间、条件和让步状语从句 时间、条件和让步状语从句在高考中约占3分,考查形式主要有单选、完型填空、语篇填空和改错,主要考察这三种从句中的引导词、谓语动词。 幻灯片3 一、时间状语从句 1.no sooner...than与hardly...when 都表示主句与从句的动作相继发生,意为“一……就……,刚刚……就”,主句动词用过去完成时。如no sooner,hardly位于句首时,主句用倒装形式。 He had hardly gone to bed when the doorbell rang. =Hardly had he gone to bed when the doorbell rang. 他刚睡下门铃就响了。 No sooner had he got off the train than his daughter ran towards him. 他刚下火车,他女儿就向他跑了过来。 幻灯片4 2.as soon as,the moment,immediately 引导的从句表示从句动作一发生,主句动作随即发生,常译为“一……就”。名词词组the second,the minute,the moment,every time,any time,next time,the first/last time,the day/week/month等亦可作连词,引导时间状语从句。 They told me about it as soon as/immediately/the moment they got the message.他们一听到口信就把消息告诉了我。 Every time he walked by the lake,he thought of his childhood life.每当他走过那个湖时,就会想起童年的生活。 注意:immediately可用做连词也可用做副词。 幻灯片5 3.till和until 词义是“直到……,一直……为止”,表示一个动作持续到某一时刻或某一动作发生为止,在句首只能用until。在肯定句中,主句中要用延续性动词;在否定句中,可以用非延续性动词。 She stood there till/until he had passed out of sight. 她站在那里看着,直到望不见他的身影。 Until they had finished the work,they did not go home. =Not until they had finished the work did they go home. 直到工作完成了他们才回家。 幻灯片6 注意:(1)在not...until结构中not until位于句首时主句部分倒装。在强调句中,强调until引导时间状语时,常把not提前,构成It isn’t/wasn’t until...that...。(2)not...until和not...before意思相同,表示“直到……才,在……以前不”。 幻灯片7

状语从句引导词

常用的状语从句引导词 1.时间状语从句 2.常用引导词:when当……时候;while当……时候;as随着…;一边…… before在……之前;after在……之后 since 自从;ever since自从;once一旦; till直到;until直到;not…until…直到……才…… 其他引导词:as soon as, the minute, the moment (一……就……) the instant, immediately , directly, (一……就……) no sooner … than…, hardly …when…, scarcely … when…(刚…就..) every/each time(每次…);next time(下次….);the first time(第一次…) 2.地点状语从句 常用引导词:where 其他引导词:wherever无论何地, anywhere任何地方, everywhere 处处 3.原因状语从句 常用引导词:because(有强烈因果关系), since既然, as, for(补充说明原因) 其他引导词:seeing that鉴于…, now that既然…; for the reason that…因为… 4.目的状语从句 常用引导词:so that如此…以至于, in order that…为了…… 其他引导词:lest, in case, for fear that(以防万一,唯恐,生怕)

5.结果状语从句 常用引导词:so … that, such … that(如此……以至于……) …so that…所以 6.条件状语从句 常用引导词:if如果, unless除非, as/so long as只要,only if只要…..就…… 其他引导词:providing/provided that, supposing that, on condition that(如果) in case that万一,如果 7.让步状语从句 常用引导词:though, although, even if, even though尽管,即使 其他引导词:as尽管,即使(要倒装),while 虽然, no matter+疑问词= 疑问词+ever如:no matter how= however 8.比较状语从句 常用引导词:as…as…像……一样(同级比较), not so/as…as…和……不同 more …than 多于;less…than少于 than比(不同程度的比较) 其他引导词:the more … the more … 越……越……;just as …正如 9.方式状语从句 常用引导词:as好像, just as正如 as if, as though好像

高考英语被动语态、条件状语从句和让步状语从句导学案

被动语态、条件状语从句和让步状语从句 李仕才 课程目标 一、学习目标 1. 条件状语从句及其连词的用法。 2. 让步状语从句及其连词的用法。 3. 被动语态。 二、重点、难点 重点:条件状语从句、让步状语从句及被动语态。 难点:让步状语从句和名词性从句的区别。 三、考情分析 这三种语法是高考考查的重点语法,历年考题中占有重要的地位,一般能在单选中占3-4分;在完形填空中也能占2-3分;我们复习时要特别注意这几种语法及其做题技巧,认真研究近几年的高考题。 知识梳理 一、条件状语从句 【教材原句】 If you say the word “communication”, most people think of words and sentences. 如果你说单词“交流”,大部分人会想到单词和句式。 If our right hand is busy greeting someone, it cannot be holding a weapon. 如果我们的右手忙着问候别人,它就不可能握有武器。 考点1引导条件状语从句的从属连词 【用法】 连接词主要有if, unless, as/so long as, on condition that, provided, suppose, supposing 等。 【例句】 You can leave now if you like. 如果你愿意现在就可以走了。 As long as it doesn’t rain we can go.

只要不下雨,我们就可以去。 In case I forget, please remind me about it. 万一我忘记,请提醒我一下。 I will come on condition (that) she is invited too. 如果邀请她来, 那我就来。 He may go with us provided [providing] he arrives in time. 他若及时到达,就可以和我们一起走。 【考题链接】 they decide which college to go to, students should research the admission procedures. A. As B. While C. Until D. Once 答案:D 解题思路:句意:一旦他们决定去哪个大学,学生就应该搜索入学手续。once 一旦,根据句意选择D。 考点2条件状语从句的时态 【用法】 当主句为将来时态或具有将来意义时,条件状语从句通常要用一般现在时表示将来意义,而不能直接使用将来时态。 【例句】 Let’s go out for a walk unless you are too tired. 如果你不是太累的话,让我们出去散步。 I’ll stay at home if it rains tomorrow. 要是明天下雨,我就呆在家里。 【考题链接】 We will be losing money this year unless that new economic plan of yours _______ well. A. is working B. works C. will be working D. worked 答案:B 解题思路:句意:如果你的那个新经济计划效果不好的话,我们今年会失去很多钱。在条件状语从句中,如果主句用一般将来时态,那么从句用一般现在时态表示将来意义。 考点3if 引导的条件句有真实条件句和非真实条件句两种 【用法】 真实条件句表示现实情况中可能实现的情况。非真实条件句也叫虚拟条件句,表示与现实情况相反的假设情况。 【例句】

宾语从句-引导词

宾语从句三要素(只能是陈述句,疑问句) 引导词(连接词) 语序 时态 引导词: 由从属连词that引导的宾语从句 由从属连词whether,if引导的宾语从句 由连接代词Who,whom,whose,which,what引导的宾语从句 由连接副词where,how,why,when引导的宾语从句 由从属连词that引导的宾语从句 that在句中无词汇意义,在从句中不能充当成分,在口语当中往往省略 Ihear(that)hewillbebackinanhour Hesaid(that)hemissedusverymuch Theteachertoldusthattheearthmovesaroundthesun 由从属连词whether,if引导的宾语从句 if/whether“是否”,说明对陈述的事物不明确或不清楚。常用在ask,wonder, can(could)youtellme等后。 Iwanttoknowif(whether)hewillgototheparkwithus Askhimwhether(if)hecancome Iwonderwhetheritisgoingtorainornot Couldyoutellmewhether(if)MrLiliveshere 只能用whether不能用if 在介词后面

I’mthinking of whetherweshouldgofishing. Weareworried about whetheritwillraintomorrow. 在动词不定式前: Theyaskedmewhether to goskating 当与ornot连用,或提出两种选择时 Idon’tknowwhetherhe’sfree ornot. MaryaskedwhetherIwasdoingmyhomework ornot. Tellmewhetheryou’dliketogoshopping or tidytheroom. 宾语从句提前时: Whetherthisistrueornot,Ican’tsay 由连接代词Who,whom,whose,which,what和连接副词where,how,why,when引导的宾从(代词或副词连接主句和从句,并在从句中担任句子成分,具有一定的意义,不可省略) Heaskedwhocouldanswerthequestion Doyouknowwhomtheyarewaitingfor Heaskedwhosebikewasthebestintheclass Doyouknowwhenwe'llhaveameeting Pleasetellmewhereheis Canyoutellmehowicangetgothestation Couldyoutellmewhythetrainislate

c中while的用法

c中while的用法 c中while的用法的用法你知道吗?下面就跟你们详细介绍下c 中while的用法的用法,希望对你们有用。 c中while的用法的用法如下: while语句的一般形式为: while(表达式) 语句 其中表达式是循环条件,语句为循环体。 while语句的语义是:计算表达式的值,当值为真(非0)时,执行循环体语句。其执行过程可用下图表示。 【例6-2】用while语句计算从1加到100的值。用传统流程图和N-S结构流程图表示算法,见图: 01.#include <stdio.h> 02.int main(void){ 03.int i,sum=0; 04.i=1; 05.while(i<=100){ 06.sum=sum+i; 07.i++; 08.} 09.printf("%d\n",sum);

10.return 0; 11.} 【例6-3】统计从键盘输入一行字符的个数。 01.#include <stdio.h> 02.int main(void){ 03.int n=0; 04.printf("input a string:\n"); 05.while(getchar()!='\n') n++; 06.printf("%d",n); 07.return 0; 08.} 本例程序中的循环条件为getchar()!='\n',其意义是,,只要从键盘输入的字符不是回车就继续循环。循环体n++完成对输入字符个数计数。从而程序实现了对输入一行字符的字符个数计数。 使用while语句应注意以下两点。 1) while语句中的表达式一般是关系表达或逻辑表达式,只要表达式的值为真(非0)即可继续循环。 01.#include <stdio.h> 02.int main(void){ 03.int a=0,n; 04.printf("\n input n:");

9大状语从句的引导词资料讲解

九大状语从句的引导词 时间状语从句: when(当…..时候), while(当….时候) ,as(当..时候,一边), after(在….之后), before(在…..之前), since(自从), ever since(自从)till/until(直到),not….until(直到..才),as soon as(一...就),whenever(不管什么时候),every time(每次),each time(每次)next time(下次),the first time(第一次)any time(任何) the moment(一...就...)by the time(到...), directly(一..就...), immediately(一...就..), instantly(一...就..), as long as(长达), hardly/scarcely… when….(一..就..)once(一..就..)no sooner… than….(一...就..) 地点状语从句: where, wherever=no matter where(无论哪里) 原因状语从句:because(因为), as(因为), since(自..以来), for(因为),for the reason that(因为),considering that, due to the fact that, owing to the fact that, in that(因为), seeing that(因为),considering that/since (既然)等 条件状语从句: if(如果), unless(除非), as(so) long as(只要),in case(万一) on condition that(条件是) supposing(假设),provided that(如果) ,as far as /so far as(就…而言),even though, even if (即使), providing(that), 方式状语从句:as(正如), just as(就好像,正如), as if(好像), as though(好像) 让步状语从句: although(尽管), though(尽管), even if(即使), even though(即使), as, whether…or….(无论....),no matter what /when/how(无论什么,何时,怎样),now that(既然), despite(尽管),in spite of 目的状语从句:that, so that(如此...以此于), in order that(为了), lest(唯恐)in case(唯恐), 结果状语从句: so that, so….that, such…that(如此…….以至于) 比较状语从句:as….as(和...一样), not so…..as(not as…..as)(不如...), more…than(多于)less….than, the+比较级…. ,The+比较级…..

相关文档
最新文档