while是什么意思

while是什么意思,第1张

最长也是最权威的!呵呵!

while

[(h)wail]

n

会儿, 时间

conj

当的时候, 虽然

vt

消磨

prep

<古><方>直到

while

while

AHD:[hwºl, wºl]

DJ[hwail, wail]

KK[hwa!l, wa!l]

n(名词)

A period of time:

一段时间:

stay for a while; sang all the whileSee Usage Note at awhile

停留下会儿;一直都在唱歌参见 awhile

The time, effort, or trouble taken in doing something:

费时:做一件事情的花费时间、努力或工夫:

The project wasn't worth my while

这项方案不值得我花工夫,

conj(连接词)

As long as; during the time that:

只要;在…时间里:

It was lovely while it lasted

当它开着的时间它是很惹人喜爱的

At the same time that; although:

在…同时;尽管,虽然:

While the grandparents love the children, they are strict with them

“虽然祖父母们都爱他们的孩子,但却对他们要求严格”

Whereas; and:

然而;而,而且:

The soles are leather, while the uppers are canvas

鞋跟是皮的,而鞋面是帆布的,

vtr(及物动词)

whiled, whiling, whiles

To spend (time) idly or pleasantly:

消磨:闲散或轻松地消磨时间:

while the hours away

消磨时光

Middle English

中古英语

from Old English hwºl see k wei…-

源自 古英语 hwºl 参见 k wei…-

while

[waIl; (@) hwaIl]

n

一会儿

a long while

好长一会儿

A short while ago, however, he became a busdriver and he has not regretted it

可是,不久前他当了一名公共汽车驾驶员,而且他不后悔。

once in a while

有时;偶而

worth one's while

值得;有价值

while

conj

…的时候

While in Vienna he studied music

他在维也纳时学习音乐。

While he was eating, I asked him to lend me $2

当他正在吃饭时,我请他借给我二英镑。

While two detectives were keeping guard at the door, two others opened the parcel

这时两个侦探把着门,另外两个打开包裹。

While I read, she sang

我看书时,她在唱歌。

I met her while I was at school

当我在学校的时候我遇见了她。

虽然;但是

While I understand what you say, I can't agree with you

虽然我理解你的意思,但我还是不同意。

You like tennis, while I'd rather read

你爱打网球,但我爱看书。

(= whilst)

while

vt

whiled, whiling

(与away连用) 消磨;度过

They while away many afternoons on the beach

他们在海滩消磨了许多个下午。

while

adv

(前面与表示时间的词连用)在…时候

the summer while I was abroad

我出国的那个夏天

while

来自古英语 hwil

while

while

AHD:[hwºl, wºl]

DJ[hwail, wail]

KK[hwa!l, wa!l]

n

A period of time:

stay for a while; sang all the whileSee Usage Note at awhile

The time, effort, or trouble taken in doing something:

The project wasn't worth my while

conj

As long as; during the time that:

It was lovely while it lasted

At the same time that; although:

While the grandparents love the children, they are strict with them

Whereas; and:

The soles are leather, while the uppers are canvas

vtr

whiled, whiling, whiles

To spend (time) idly or pleasantly:

while the hours away

Middle English

from Old English hwºl see k wei…-

while

当的时候

while

[(h)wail]

n

时间; 一段时间, 一会儿

Wait a while

等一会儿。

It took a long while to do the work

做这个工作花了许多时间。

What have you been doing all this while

这一阵子你一直在做什么

while

[(h)wail]

conj

当的时候, 和同时; 只要

但是, 然而

虽然; 尽管

half-turn while in hanging

悬垂转体180°

Write while I dictate

当我口述时请你记下。

Some people like coffee, while others like te

adj

有些人喜欢咖啡, 而有些人喜欢茶。

While he loves his students, he is very strict with them

虽然他爱他的学生, 可是他对他们很严格。

prep

[古]到时候止, 直到

vt

消磨, 闲混(时间)(away)

a good [long, great] while

长[许]久

a little while

不久, 一会儿

a while ago

方才, 刚才

after a while

不久, 过一会儿

all the while

始终, 一直

at whiles

有时, 时常

between whiles

间或, 时或

every little while (=at whiles)

有时, 时常

for a [one] while

暂时

in a little while

不久, 没一会儿

make it worth sb's while

酬谢某人, 贿赂某人

the while [whilst]

(与此)同时, 在此期间

while you are about it

[口]顺便, 在你做这个的同时

worth (one's) while

值得的; 值得花费时间, 值得一干; 有益的

while

软当

while

期间

while

正当的时候;n一段时间

while

正当的时候;n一段时间

while

正当的时候;n一段时间

在很多编程语言中,while都是指一种循环。循环就是反复执行一些语句,常用的有for循环和while循环,while循环又称为当型循环。

在C语言中,while循环的格式是:

while(表达式){

语句组;

}

其中:表达式一般使用逻辑或关系表达式;

语句组由一个或多个语句组成,也叫循环体。当只有一句循环体时,花括号可以省略。

它的含义是先判断表达式的值,如果表达式的逻辑值为真,就执行一遍语句组,再回头运算表达式的值,如果为真,再运行一遍语句组,,如此反复,直到表达式的值为假,结束循环,这里也叫跳出循环,程序去执行花括号后面的语句。

下面是计算1+2+3+4+5+6的值的部分程序:

int,i=1,S=0;

while(i<=6)

s+=i;

printf("",s);

while的用法可从下述几点理解与运用

一、while意为\"当时候\",指一段时间,不能用来表示一个时间点

While the discussion was still going on,George came in当讨论还在进行时,乔治走了进来

二、while意为\"而;然而\",表示转折

There\'re plenty of rain in the southeast,while there\'s little in the northeast东南部雨量充足,而西北部则很少下雨

三、while意为\"虽然;尽管\",表示让步

While I admit his good points,I can see his shortcomings尽管我承认他的优点,但我还是能看到他的缺点

四、while意为\"只要\",表示条件

We can surely overcome these difficulties while we are closely united只要我们紧密地团结一致,一定能克服这些困难

五、while从句中的省略

当while从句中的主语与主句的主语一致,且含有be的某种形式时,从句中的主语连同be可同时省略

While listening to the radio,she fell asleep她在听收音机时睡着了

While in London,he studied music and painting在伦敦时,他学习音乐和绘画

六、while可用作名词,意为\"一会儿;一段时间\"

作名词用时,主要用于短语中:after a while \"过了一会儿\"; all the while \"一直,始终\"; a short / little while ago \"刚才\"; once in a while \"偶尔,间或\"; wait / rest(for) a while \"等 / 休息一会儿\"

I haven\'t seen her for a long while我好久没有看见她了

Where have you been all this while这一阵子你到哪去了

He usually goes to work by bike,but once in a while he goes by bus他通常骑自行车上班,但偶尔也乘公共汽车

I looked everywhere for the letter,but it was in my pocket all the while我到处找那封信,却不知它一直在我口袋里

七、while与when以及as之间的区别

1当从句中的谓语动词是持续性的动作时,我们可以用while,when或as

While / When / As I was walking down the street,I noticed a police car in front of the bank我顺着马路往前走时,发现银行门前停着一辆警车

2当从句中的谓语动词表示瞬间动作时,不可用while

He was on the point of leaving when someone knocked at the door他正要走,这时有人敲门

3如果谈论两个长动作,最常用的是while

While John was sitting biting his nails,I was working out a plan to get us home约翰坐在那里咬指甲时,我想出了一个回家的办法

不过,as是可以用来说明两种正在发展或变化的情况的,这时as引导一个持续性的动作,主句中的动作与之同时进行

As we talked on,he got more and more excited我们继续往下谈的时候,他越来越兴奋

4如果表示两个短动作或事件同时发生,最常用的是as或just as,也可用when

Just as he caught the ball,there was a tearing sound当他抓住球的时候,有一种撕裂的声音

I thought of it just when you opened your mouth就在你要说话的时候,我也想到了

while()

{

}

括号内接条件。如果条件为真,则进入while,为假则跳出

while单词是当的意思

while是先判断再执行

int i=10;

while(i<10){

Systemerrprintln(i)

i++;

}

结果是什么都不打印,最终i的值为10

do-while是先执行,再判断

int i=10;

do{

Systemerrprintln(i)

i++;

}while(i<10)

打印的也是10,最终i=11

两者的区别在于第一圈循环时,while是先判断循环条件,再循环所以第一个程序什么都不打印而do-while则是先执行后判断所以,第二个程序先打印10,然后i++然后跳出循环

C语言中的while是一种循环语句,是计算机的一种基本循环模式。当满足条件时进入循环,不满足跳出

使用格式为:

     while(条件表达式)

      {

        循环体语句;

      }

 3当while循环的条件表达式为真时,进入循环,一直循环到条件表达式为假为止

以上就是关于while是什么意思全部的内容,包括:while是什么意思、while 是什么意思 刚学编程、while的多种意思(高中英语语法)等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!

欢迎分享,转载请注明来源:聚客百科

原文地址: https://juke.outofmemory.cn/life/3736610.html

()
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-30
下一篇 2023-04-30

发表评论

登录后才能评论

评论列表(0条)

保存