首页 > 四川 > 广安市 > else用法,C语言else的用法

else用法,C语言else的用法

来源:整理 时间:2022-12-25 09:50:00 编辑:好学习 手机版

1,C语言else的用法

void main()int a;int b=3;if(b>5)a=4;}elsea=3;}}
我是学C的,看看啦 void main()int a;int b=3;if(b>5)a=4;elsea=3;还没输出语句 printf("%d",a);} 输出结果为3
应该在a=4;后面有个},你好像把这半个花括号写错地方,放到最后了。
a=4后面少了一个}

C语言else的用法

2,other和else的用法区别

other可作形容词或代词,做形容词时,意思是“别的,其他”,泛指“其他的(人或物)”。 else 只修饰两类词 修饰 不定代词 如 someone / someplace/ anything来指代另外一个,而不特别指明哪一个。 如: I had nothing else to do. 修饰 wh- word。如what /who/where等 如: What else do I need to do else多用于特殊疑问词后。 other主要修饰名词,放在名词前面。

other和else的用法区别

3,else的用法

1. else 是个副词,与不定代词或副词(以-one,-body,-thing,-where结尾的词)连用,表示“另外”、“其它”的意思,用于这些词后面。eg: Would you like something else to drink? 你还要喝点别的什么吗? We went to the park and nowhere else. 我们到公园去了,其它什么地方也没去。 2. else 还可用在疑问代词或副词(如:who ,what ,where等)后面表示强调。eg : Who else will go to the meeting ? 还有谁要去参加会议? What else would you do ? 你还有什么别的事要做吗? 3. else 还常用于固定结构or else ,意为“否则”、“要不然”。eg: Run ,or else well be late . 快跑,不然我们就迟到了。 Do what I say ,or else ! 照我的话去做,否则后果自负。

else的用法

4,else有哪些用法

和if一起用,if-else-end,用来判断如下程序:det=1; curs=randn(100,1);if max(curs)-min(curs)<det %如果curs中的最大减最小小于det,则执行if和else之间的语句 curyy=mean(curs);else %否则就执行else和end之间的语句 curyy=[];end 另外,if-else-end可以嵌套循环,如下:if 条件 语句else if 条件 语句 else …… endend也可以这样用if 条件 语句elseif 条件 语句elseif 条件 语句……else 语句end
if...else...if ...else if ....else...#ifdef ....#else....#endif...

5,else other 区别 清楚点 用法

else 是副词adv.,不是形容词 1、 别的,其他的 用法:作定语时不能修饰名词、而用来修饰不定代词和疑问代词而且均放在他们后面,做后置定语。如:Is there anything else you want? 你还要些别的什么吗? Who else is there in the house? 屋子里还有谁? 2、(常与or连用,构成or else)否则,要不然Drink this, else you will be sick. 把这喝下去,否则你会生病的。 You must go there quickly or else you will not be back in time. 你必须快点去那儿,否则你就不能及时返回了。other 可做形容词、副词、代词。adj. 别的; 其他的; (两个中的)另一个; 其余的 。other做形容此时做前置定语。 He has no other place to go to.adv.1、用其他方法,别样地;2、每隔一 They have left us with no other choice than to take formal action. 他们逼得我们别无选择,只有采取正式行动。 every other day 每隔一天pron. 其他的......;(指两个人或事物中的第二个)那个;one ...the other...一个,另一个 (指一组中其余的人或事物)其余的,其复数是others;Do good to others.对他人做好事。 (指与说话人所在位置等相反的方向或地点)另一边the other 所有材料均源于字典。精心整理的,希望对您有帮助。
1.other可作形容词或代词,做形容词时,意思是“别的,其他”,泛指“其他的(人或物)”。如: do you have any other question(s)? 你还有其他问题吗? ask some other people. 问问别人吧! put it in your other hand. 把它放在你另一只手里。2.the other指两个人或物中的一个时,只能用the other,不能用another,此时的other作代词。如: he has two daughters. one is a nurse, the other is a worker. 他有两个女儿,一个是护士,另一个是工人。the other后可加单数名词,也可加复数名词,此时的other作形容词。如: on the other side of the street,there is a tall tree. 在街道的另一边,有一棵大树。 mary is much taller than the other girls. 玛丽比其他的女孩高得多。 he lives on the other side of the river. 他住在河的对岸。3.another=an other,既可作形容词,也可作代词,只能用于三个或更多的人或物,泛指同类事物中的三者或三者以上的“另一个”,只能代替或修饰单数可数名词。如: i dont like this one. please show me another. 我不喜欢这一个,请给我看看另一个。 i have three daughters. one is a nurse, another is a teacher and another is a worker. 我有三个女儿。一个是护士,另一个是教师,还有一个是工人4. else 一般修饰疑问词和不定代词,而且必须后置 如:what else do you want?anything else can you do?

6,请问other的用法

other及其变化形式在初中教材中多次出现,而且它的变化形式很多,有以下几种:the other, others, the others, another 等。它们的用法现归纳如下; 1.other可作形容词或代词,做形容词时,意思是“别的,其他”,泛指“其他的(人或物)”。如: Do you have any other question(s)? 你还有其他问题吗? Ask some other people. 问问别人吧! Put it in your other hand. 把它放在你另一只手里。 2.the other指两个人或物中的一个时,只能用the other,不能用another,此时的other作代词。如: He has two daughters. One is a nurse, the other is a worker. 他有两个女儿,一个是护士,另一个是工人。 the other后可加单数名词,也可加复数名词,此时的other作形容词。如: On the other side of the street,there is a tall tree. 在街道的另一边,有一棵大树。 Mary is much taller than the other girls. 玛丽比其他的女孩高得多。 He lives on the other side of the river. 他住在河的对岸。 3.others是other的复数形式,泛指“另外几个”,“其余的”。在句中可作主语、宾语。如: Some of us like singing and dancing, others go in for sports. 我们一些人喜欢唱歌和跳舞,其余的从事体育活动。 Give me some others, please. 请给我别的东西吧! There are no others. 没有别的了。 4.the others意思是“其他东西,其余的人”。特指某一范围内的“其他的(人或物)”。是the other的复数形式。如: Two boys will go to the zoo, and the others will stay at home. 两个男孩将去动物园,其余的留在家里。 the others=the other +复数名词,这在第2条中已经有所介绍。 5.another=an+ other,既可作形容词,也可作代词,只能用于三个或更多的人或物,泛指同类事物中的三者或三者以上的“另一个”,只能代替或修饰单数可数名词。如: I dont like this one. Please show me another. 我不喜欢这一个,请给我看看另一个。 I have three daughters. One is a nurse, another is a teacher and another is a worker. 我有三个女儿。一个是护士,另一个是教师,还有一个是工人。
other意思是“另一”、“另一些”,有复数形式。在句子中可作主语、宾语和定语。another意思是“另外”、“又一个”,表示增加,在句中可作宾语和定语。如: Some girls are singing under the big apple tree and others are sitting on the grass talking.(有些女孩在大苹果树下唱歌,别的就躺在草地上说话) / You have had several cakes. Do you really want another one?(你已经吃了好几块饼子了,你真的还要一块?) / I want another four books.(我还要四本书)

7,other与the other用法区别

一,区别:other 表示“另一个或另一些”是泛指,当形容词或代词用the other与other同义,但是是特指二,详解:I have two pens. One is red and the other is green.the other 是特指的另外一个1,other 是除自己外的“别人”others是其他人,一般是3个或以上other 表示“其他的”或者“另一些”是形容词 后面加名词 如果是可数多用复数 some children like apples, other children like bananas.2,the other表示范围内的另一个(范围内一共两个)we have two hands. one is on the left, the other is on the right.other后既可接可数名词复数形式又可接不可数名词,如:可数,other pencils 其它的铅笔,other students 其他的学生。不可数other tea 别的/其它的茶,other information 别的/其它消息。the other 定指其它的……,其后可接可数名词和单数,如:the other book 另外的一本书,the other map 另一张地图,其后也可跟可数名词的复数形式,如:the other flowers 其他的花朵,the other teachers 其它的老师们,还可以接不可数名词,如:the other water 剩下的水,the other beer 别的啤酒others 其用法相当于复数名词,此词不能用作定语,表示的意思是“不具体的某些东西”,如:This chemical is poisonous . Others are poisonous , too . ( others = other chemicals )但是如果others前用了the ,则表示具体的别的东西。如:I dont want these books . Please give me the others .( the others = the other books)
other 表示“另一个或另一些”是泛指,当形容词或代词用the other与other同义,是特指如:I have two pens. One is red and the other is green.the other 是特指的另外一个other 是除自己外的“别人”others是其他人,一般是3个或以上other 表示“其他的”或者“另一些”是形容词 后面加名词 如果是可数多用复数 some children like apples, other children like bananas.the other表示范围内的另一个(范围内一共两个)we have two hands. one is on the left, the other is on the right.other后既可接可数名词复数形式又可接不可数名词,如:可数,other pencils 其它的铅笔,other students 其他的学生。不可数other tea 别的/其它的茶,other information 别的/其它消息。the other 定指其它的……,其后可接可数名词和单数,如:the other book 另外的一本书,the other map 另一张地图,其后也可跟可数名词的复数形式,如:the other flowers 其他的花朵,the other teachers 其它的老师们,还可以接不可数名词,如:the other water 剩下的水,the other beer 别的啤酒others 其用法相当于复数名词,此词不能用作定语,表示的意思是“不具体的某些东西”,如:This chemical is poisonous . Others are poisonous , too . ( others = other chemicals )但是如果others前用了the ,则表示具体的别的东西。如:I dont want these books . Please give me the others .( the others = the other books
1、else和other都是形容词,意思是“其他的”,else一般放在疑问词或不定代词之后,如what else do you want?(你还想要别的/其它什么吗?),something else(一些别的/其它的东西);other一般放在名词前,如other book(其它的书)2、the other是两者中的另一个,一般用于词组one...the other...中,如there are two boys,one is my brother,the other is his classmate.它是代词,代替两者中的另一个。3、others是代词,代替其它的人或物,不特指,也就是没有范围的其它人或物,如some students are girls,others are boys.4.the others 是代词,代替其它人或物,是特指,也就是说是有范围的其它人或物,如there are some people,some are student,the others are teachers.它与 others 只是有范围和没范围的区别。一般都与some搭配。5、another指多者当中(指三者以上)的任何一个,一般修饰名词或代词,如another one,another boy,放在名词或代词之前。
other后既可接可数名词复数形式又可接不可数名词,如:可数,other pencils 其它的铅笔,other students 其他的学生。不可数other tea 别的/其它的茶,other information 别的/其它消息。 the other 定指其它的……,其后可接可数名词和单数,如: the other book 另外的一本书, the other map 另一张地图, 其后也可跟可数名词的复数形式,如: the other flowers 其他的花朵,the other teachers 其它的老师们,还可以接不可数名词,如:the other water 剩下的水,the other beer 别的啤酒
文章TAG:else用法用法c语言语言

最近更新

  • 送老师送什么花,送老师花:向日葵郁金香最适合送年长老师

    郁金香:代表神圣美好的祝福,比较适合送给女性老师,很适合年纪大的老师,希望老师能记住师生情深,发送老师花:花材:向日葵10朵,配以桉树叶、洋槐豆,绿花:波浪、云朵,可以送花束,手提 ......

    广安市 日期:2023-05-06

  • 处女和射手,射手座和处女座相配吗

    射手座和处女座相配吗处女座男生VS射手座女生你俩是“鬼迷心窍型”搭配,速配指数6.5。你温文尔雅又严谨内向,而她热情奔放还有点粗心急躁。也许在相遇时会被对方吸引,但随即就会因理念的 ......

    广安市 日期:2023-05-06

  • 武术对练,对练的介绍

    对练的介绍中国武术项目之一,其套路是在各种武术单练(拳术、器械)项目的基础上由踢、打、摔、拿、击、刺、劈、撩、砍、点、蹦等技击方法组成的,并由2人或多人进行对练。武术对练有助于进一 ......

    广安市 日期:2023-05-06

  • 怎样更换桌面壁纸,怎么换电脑桌面壁纸

    怎么换电脑桌面壁纸桌面空白处,单机鼠标右键,选择属性,查看桌面壁纸,可以选择系统自带壁纸。对于喜欢的图片,双击鼠标左键打开图片,在图片上单击右键选择设为壁纸就可以了。{0}2,电脑 ......

    广安市 日期:2023-05-06

  • 的四字成语,四字成语有哪些

    四字成语有哪些四字成语有几万条,如:魑魅魍魉、破釜沉舟、精卫填海、海市蜃楼、高山流水、壮志凌云、金枝玉叶、四海一家、穿针引线、无忧无虑、无地自容、落叶归根、相见恨晚、惊天动地、窈窕 ......

    广安市 日期:2023-05-06

  • 紫菜炒饭,紫菜炒饭怎么做好吃紫菜炒饭的家常

    本文目录一览1,紫菜炒饭怎么做好吃紫菜炒饭的家常2,紫菜饭的做法大全家常饭3,南澳紫菜炒饭的做法步马骤4,紫菜蛋炒饭怎么做好吃紫菜5,超简单紫菜炒饭怎么做1,紫菜炒饭怎么做好吃紫菜 ......

    广安市 日期:2023-05-06

  • 年复年,年复一年什么意思

    年复一年什么意思2,年复一年英语怎么说1,年复一年什么意思一年又一年的意思求采纳!!!谢谢,,新年快乐(∩_∩)一年又过去一年,说明时间过的很快。一年又一年2,年复一年英语怎么说y ......

    广安市 日期:2023-05-06

  • 解除协议范本,解除劳动合同协议书样本

    本文目录一览1,解除劳动合同协议书样本2,解除合同协议书范本3,解除合同协议书4,解除劳动合同协议书应该怎么写5,关于解除劳动合同的范本1,解除劳动合同协议书样本解除劳动合同的情况 ......

    广安市 日期:2023-05-06