词条 | keep |
释义 | keep是一个常用英语单词,既可以做及物动词也可以做不及物动词。常用释义为保持,保留如 keep a seat 等等。另外keep还是程序里的一个常用函数。 英文释义用作及物动词(1)保留、保存、保持、留下 e.g. We'd better keep a seat for him. 我们最好给他留个座位。 He kept all the money in the bank. 他把所有的钱都存入了银行。 (2)履行(诺言)遵守 e.g. One should keep one's promise. 一个人应当遵守自己的诺言。 Everybody must keep the law. 人人都必须守法。 (3)赡养,养活,饲养 e.g. He has a large family to keep. 他有一大家人要养活。 The old man kept many animals like dogs, pigs and cats. 这位老人养了许多动物,像狗、猪、还有猫等。 (4)经营,管理 e.g. He kept a hotel in this city. 在这座城市里,他开了一家旅店。 She is good at keeping house. 她擅长管理家务。 (5)保守(秘密),记(日记、帐) Mary keeps a diary every day 玛丽天天记日记。 You must keep secrets for your friends. 你必须为你的朋友们保守秘密 (6)庆祝;守(宗教节日等) e.g. All of the people keep the Spring Festival in our country. 我国所有的人都庆祝春节。 Some of them keep birthdays. 他们中有些人庆祝生日。 (7)使……处于某种状态(情况) 在这种情况下,keep常跟复合结构(keep+宾语+补语)。用作宾语补足语常见的词有现在分词、过去分词、形容词、副词以及介词短语。 e.g. He kept me waiting for half an hour. 他让我等了半个小时。 Keep your mouth shut and your eyes open. 少说话,多观察。 The doctor kept me in for a week. 医生一周没让我出去。 He always keeps his books in good order. 他总是把书放得整整齐齐。 用作不及物动词(1)保持、继续(处于某种状态)(keep为连系动词) e.g. Please keep quiet. 请保持安静。 We're keeping in very good health. 我们身体非常好。 (2)(食物)保持良好状态 e.g. Will this fish keep till tomorrow? 这鱼能放到明天吗? C、keep构成的一些短语 keep (sb.) away (from sth.)(使)某人离开(某物) keep sb. from doing sth. 阻止某人做某事 keep sth. in mind 记住(某事物) keep sb./ sth. out (of sth.) 不让……入内 keep back 忍住(眼泪),扣下,隐瞒 keep in touch with 与……保持联系 keep (on) doing sth. 继续做某事 keep off 远离,避开,让开 keep on 穿戴着。。。;使(灯等)一直开的。 keep out 使留在外面 keep up 保持(不低落),继续 keep up with 跟上,不落在后面 both and既...且...;...和...都 both of两者(都);两个(都);双方(都) neither nor既不...也不;也不 neither of(两者之中)无一个 either or或者 either of (两者之中)任何一个 函数函数名: keep 功 能: 退出并继续驻留 用 法: void keep(int status, int size); 程序例: /***NOTE: This is an interrupt service routine. You can NOT compile this program with Test Stack Overflow turned on and get an executable file which will operate correctly. Due to the nature of this function the formula used to compute the number of paragraphs may not necessarily work in all cases. Use with care! Terminate Stay Resident (TSR) programs are complex and no other support for them is provided. Refer to the MS-DOS technical documentation for more information. */ #include /* The clock tick interrupt */ #define INTR 0x1C /* Screen attribute (blue on grey) */ #define ATTR 0x7900 /* reduce heaplength and stacklength to make a smaller program in memory */ extern unsigned _heaplen = 1024; extern unsigned _stklen = 512; void interrupt ( *oldhandler)(void); void interrupt handler(void) { unsigned int (far *screen)[80]; static int count; /* For a color screen the video memory is at B800:0000. For a monochrome system use B000:000 */ screen = MK_FP(0xB800,0); /* increase the counter and keep it within 0 to 9 */ count++; count %= 10; /* put the number on the screen */ screen[0][79] = count + '0' + ATTR; /* call the old interrupt handler */ oldhandler(); } int main(void) { /* get the address of the current clock tick interrupt */ oldhandler = getvect(INTR); /* install the new interrupt handler */ setvect(INTR, handler); /* _psp is the starting address of the program in memory. The top of the stack is the end of the program. Using _SS and _SP together we can get the end of the stack. You may want to allow a bit of saftey space to insure that enough room is being allocated ie: (_SS + ((_SP + safety space)/16) - _psp) */ keep(0, (_SS + (_SP/16) - _psp)); return 0; } |
随便看 |
百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。