请输入您要查询的百科知识:

 

词条 Default
释义

词典释义

vi. 1. 违约; 拖欠债务2. 弃权3. 不履行义务(或职责);食言4. 【法律】(经法院传唤而)不到庭,未出庭,不到案;(因不到庭而)败诉5. 【体育】弃权,不参加比赛,在比赛中不终场(in,on)6. 【体育】因弃权(或不参赛、不终场)而输掉

n. 1. 违约; 缺席; 拖欠2. 弃权3. 默认;系统设定值;预置值 4. 食言;未履行;疏忽5. 未履行债务,倒账6. 【法律】未到庭,不到案,缺席7. 【体育】弃权,不参加比赛8. 【计算机】系统预置,系统设定(值);省略时的解释

vt. 1. 不履行义务(尤指不偿还债务)2. 默认;预设;预置默认的意思在互联网上一般设为默认主页 default.html default.asp default.php

在计算机技术中,主要是“默认、预设”的意思,如在服务器脚本技术的Mysql中,default就是数据库中的列插入默认值。

同样地,在C/C++中,常见用于switch等语句中。表示先检测其他值的case项,检测不到则执行default(默认)的语句。例句:

1. to default on(或in)an engagement,claim or obligation

不履行约言、主张或义务《21世纪大英汉词典》

2.Under Default Location, view where the news item will display in the portal site.

在“默认位置”下,查看此新闻项目将在门户网站中显示的位置。

3.The Default Escape Character, Default Wrap Character and Default Pad Character properties must be unique. 默认转义符、默认换行符和默认填充字符的属性均必须唯一。

21世纪大英汉词典

default [di'fɔ:lt] n. 1.食言,违约;未履行;疏忽

2.未履行债务,拖欠,倒账

3.缺席,不到场

4【法律】未到庭,不到案,缺席

5【体育】弃权,不参加此比赛

6.缺乏,欠缺,缺少

7.亦读作 /'di:fɔ:lt/ 【计算机】系统预置,系统设定(值);省略时的解释

8.8. [废语]错误;缺点;不端行为

vi. 1. 不履行义务(或职责);食言,违约(on,in):例句: to default on(或in)an engagement,claim or obligation

不履行约言、主张或义务2. 缺席(on,in):例句: He defaulted in the concert.

他没有出席音乐会。She defaulted on the meeting.

她没有出席会议。3. 拖欠,不履行债务:例句: When they defaulted in their payments,the bank foreclosed on the car.

因他们拖欠赎款,银行取消了赎回汽车的权利。The factory has defaulted on its payments for the goods.

该厂拖欠货款。4. 【法律】(经法院传唤而)不到庭,未出庭,不到案;(因不到庭而)败诉。5. 【体育】弃权,不参加比赛,在比赛中不终场(in,on):例句: They defaulted in the tennis tournament.

在网球赛中他们没参赛。因弃权(或不参赛、不终场)而输掉

vt. 1. 不履行;拖欠:例句: to default a debt

拖欠债务2. 【法律】宣布(某人)未到庭,(尤指法律上)缺席裁判(某人):例句: The judge defaulted the defendant.

法官宣布被告未到庭。因不到庭而输掉(官司),败诉3. 【体育】对(比赛等)弃权,不参加(比赛),在(比赛)中不终场因弃权(或不参赛、不终场)而输掉(比赛)因弃权而取消(运动员、队等)的参赛资格

短语

1. by default

a. 【体育】由于弃权而输掉;由于对方弃权而获胜

b. 【法律】由于不到庭而败诉

c. 由于疏忽(或未做该做的事)2. go by default

a. 【法律】实行缺席判决

b. 没有,缺乏;因疏忽(或未做该做的事)而丧失

c. 在没有竞争对手的情况下进行3. in default

a. 未履行义务

b. 【法律】未到庭

c. 拖欠,不履行债务4. in default of因缺少,因没有…;在缺少…时5. judg(e)ment by default【法律】缺席判决6. make default【法律】缺席,未到庭7. suffer a default【法律】同意缺席判决

default [di'fɔ:lt]

n.

1. loss due to not showing up

例句: he lost the game by default

2. act of failing to meet a financial obligation3. loss resulting from failure of a debt to be paid4. an option that is selected automatically unless an alternative is specifiedv.fail to pay up

英英翻译

default [di'fɔ:lt]

n.

1. loss due to not showing up例句: he lost the game by default

2. act of failing to meet a financial obligation3. loss resulting from failure of a debt to be paid4. an option that is selected automatically unless an alternative is specifiedv.fail to pay up

switch中的default

switch中的default,一般用在最后,表示非以上的任何情况下而发生的情况,我们一般习惯在他的后面加上个break。但是,如果default不是在最后,而是在前面或中间会发生什么情况呢:

先看看default在句首的情况:

int i = 2;

switch (i) {

default:

System.out.println("default");

case 0:

System.out.println("0");

case 1:

System.out.println("1");

case 2:

System.out.println("2");

break;

case 3:

System.out.println("3");

case 4:

System.out.println("4");

break;

}

他的输出结果是:2! 很明显,不是先执行的default语句!

再看看下面语句:

int i = 8;

switch (i) {

default:

System.out.println("default");

case 0:

System.out.println("0");

case 1:

System.out.println("1");

case 2:

System.out.println("2");

break;

case 3:

System.out.println("3");

case 4:

System.out.println("4");

break;

}

他的输出结果是:

default

0

1

2

出人意料!!从default开始向后执行!

再看看default在句中的情况:

int i = 2;

switch (i) {

case 0:

System.out.println("0");

case 1:

System.out.println("1");

break;

default:

System.out.println("default");

case 2:

System.out.println("2");

break;

case 3:

System.out.println("3");

case 4:

System.out.println("4");

break;

}

结果是2!显然还是没执行default!

int i = 8;

switch (i) {

case 0:

System.out.println("0");

case 1:

System.out.println("1");

break;

default:

System.out.println("default");

case 2:

System.out.println("2");

break;

case 3:

System.out.println("3");

case 4:

System.out.println("4");

break;

}

结果:

default

2

显然是从default开始向后执行的!

从上面可以看出:

switch的执行是按照从小到大的顺序执行的,最后执行default语句,如果default后面带有break,那么程序就会正常跳出switch,否则,程序会继续向后执行switch语句!也就是说,不管default放在什么位置,它总是在最后一个处理,然后继续向下处理!所以,最后的处理办法,避免出现意外结果的最好办法就是每一个case以及default语句都要加一个break!

音乐作品

热门歌曲
01 i can't win 02 count on me 03 one thing remains 04 the memory will never die 05 beautiful flower 06 it only hurts 07 the way we were 08 wasting my time 09 live a lie 10 the memory 11 somewhere 12 found my way out
专辑

专辑名称 发行时间 语言 试听专辑 详情

one thing remains 2005-10-23

唱片公司:Om music专辑曲目(8)01 hiding from the sun 02 beautiful flower 03 i can't win 04 count on me 05 the memory 06 all is forgiven 07 it only hurts 08 get out of this

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/3/22 6:34:31