开源之路

忆往昔, 项羽不过江. 江东好风光! 今振臂一呼,率甲三千, 试问天!
posts - 86, comments - 55, trackbacks - 0, articles - 0
  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

Sentences

16.A.I have never traveled by air(我从来没有坐过飞机)

    B. I have never traveled by boats(我从来没有坐过船)

    C. I have never visited other places(我从来没有访问过其它地方)

    D. I have never gone to any foreign country(我从来没有去过国外)

17.A.Children play a lot before they sit down to have their dinner.(孩子们在坐下来吃晚饭之前玩个不停)

    B.children fight with each other to decide who should eat first.(孩子们互相打架以决定谁先吃)

    C. Children are allowed to read some books about eating.(孩子们被允许去读一些有关吃的书)

    D. Children do not eat immediately when the dinner is ready(在晚餐没有准备时孩子们不能立刻吃)

18.A.I cannot remember what Dalian looks like.(我记不起大连的样子)

   B.Dalian is a very clean city.(大连是一个非常干净的城市)

    C.I want to go to Dalian(我想去大连)

    D.Dalian makes people depressed.(大连使人沮丧)

19. A.Now the traffic in this city is better than before.(现在城市的交通比以往好多了.)

    B.The traffic in this city is not satisfactory at present.(现在城市的交通不太让人满意)

    C.The traffic in this city used to be very good.(城市的交通会越来越好的.)

    D.In the future,the traffic here must be better.(在将来,交通一定会更加好的.)

20. A.Mother thinks it is proper not to speak too fast.(妈妈认为说话别说太多是适当的.)

    B.Mother always speaks very quickly(妈妈经常说话很快)

    C.Mary only talks with her mother quickly(玛丽经常和他妈说话很快)

    D.Mary is a hot tempered girl(玛丽是个急性子姑娘)

21. A.As to me,listening is not as difficult as before.(对于我来说,听力没有像以前那么难了)

    B.Listening is a big problem for many students(对于大多数同学而言,听力是个大问题)

    C.Reading will help enrich out vocabulary(阅读会丰富我们的词汇量.)

    D.Speaking improves lisening day by day(口语每日改善听力)

22. A.One can buy shoes in a shop at the corner.(一个人可以在店的角度买鞋)

23  C.I am employed by the city bank now.(我在银行上班)

graduated(毕业)

24  B.I am quite crazy about English.(我对英语发狂)

major(主修)

25 D. She prefers news programs to sitcoms

prefer(宁可)

Sentences

16 D I am good at computers(我擅长于电脑)

17 B.In my opinion,you should not have pocket money from your parents.(在我看来,你不应该向你的双亲要零花钱)

18 B.The salary would be raised if you can do it well(如果你做的好的话薪水会涨的)

19 C I am working in a supermarket(我在一家超市上班)

20 A In my opinion,not everyone would be a good stewardess(以我的意见,不是每个人都可以成为好的空姐的)

21 A I love children naturally(我自然的喜欢小孩)

22 A Market research will do good to sales volumes(市场调查有助于提高市场销量)

23 C This position suits you very much at this moment(在此刻这个位置非常适合你)

24 B Many young people cannot find a satisfactory job(大多数年轻人不能找到一份满意的工作)

25 D I want to use English in my job.(我想在工作中使用英语)

posted @ 2007-03-13 15:06 江边之鸟 阅读(192) | 评论 (0)编辑 收藏

1.       Since the matter was extremely(极度) ___C____, we dealt(交易) with it immediately.

A. tough(艰苦)        B. tense(紧张)         C. urgent(紧急)         D. instant(紧急)

2.       I have to go------something has just ___C_____ at home and I’m needed there.

A. come to(谈到)       B. come off(举行)        C. come up(发生)         D. come in(到达)

3.  I could see Maria working hard to ___A____ her anger(忿怒) ________.     阻止忿怒

A. hold…back(阻止)     B. hold…up(举起)        C. hold…out(伸出,坚持)      D. hold…on(继续)

4.  The manager of the hotel requests that their guests ___B____ after 11:00 p.m.

A. not to play loud music               B. shouldn’t play loud music

C. don’t play loud music                D. couldn’t play loud music

5.  He seemed to have come to a deadlock(僵局) in solving(解决) the puzzle(难题), so he simply _____B______ whatever came into his mind.

 A. put aside(撇开)         B. put down(放下)         C. put away(放弃)        D. put back(倒退)

6.  Mary ____C____ her shoulders when I asked her what we should do.

A. threw         B. shook(摇动)         C. shrugged(耸肩)         D. tapped(轻拍)

7. ____D___ in thought(失去了记忆), the mathematician wandered all along the street.(数学家独自漫游在街上)

A. Losing        B. To lost         C. To be lost       D. Lost

8. The city government promises(承诺) to ___B____ the problem of unemployment(失业) in real earnest.

A) postpone(延迟)                     B) tackle(扭倒)           C) compose(创作)                    D) anticipate(占先)

9. “You ___B___ call me uncle because I am about the same age as your father,” said the visitor to the boy.

A) more or less(或多或少)        B) may just as well(无妨)          C) sort of(有几分地)               D) off and on(断断续续地)

10. To postpone(延迟) ___A___ the debt(债务) will ruin(毁灭) our business reputation.(名声)

A) paying                     B) to pay                     C) pay                         D) paid

11. That was so serious(严肃的) a matter that I had no choice but __C____ the police.

A) called in            B) calling in           C) call in        D) to call in

12. Lost in the Cosmos gives a simplified, point-by-point explanation of St. Anselm’s ___C___ for the existence of God.

   A) theory(理论)       B) preference(参考)    C) argument(论证)      D) contribution(贡献)

13. Single’s Dinner Club is where ____D____ single males/females look for good conversation, fellowship, and more.

   A) respectful(有礼貌的)    B) respected      C)respective     D) respectable

14. Those who haven’t ____D____ their essays by the end of the week won’t have them marked.

   A) turned out    B) turned over    C) turned down    D) turned in

15. I’m a sort of unpaid adviser, ____B______, to the committee.

   A) as it is       B) as it were       C) as for        D) as though

16. The cost of equipping the new hospital has been ____D_____ at $2 million.

   A) urged        B) mentioned       C) settled      D) estimated

17. The astronauts temporarily lost ____A____ with Earth because of technical problems of the space shuttle.

   A) touch      B) correspondence      C) destination     D) direction

18. There has been _____D____ no improvement in living standards over the past decade in this area.

   A) absolutely    B) mostly       C) awfully       D)practically

19. An orange can be _____C_____ sweet and sour at the same time.

   A) not much of     B) or something    C) kind of      D) a kind of

20. The police are inquiring about where the suspect usually ____A_____.

   A) hangs out      B) hands over      C) goes by      D) goes around

posted @ 2007-03-13 14:57 江边之鸟 阅读(661) | 评论 (0)编辑 收藏

采薇讲述的是从远方戍边归来的士兵追述征战生活。全诗通过回述艰苦的征战生活,来表达强烈的思乡情绪。既透露了士兵御敌胜利的喜悦,也深感征战之苦,渴望和平的心情。表现出中华民族自古已有的坚持正义,又爱好和平的心理。

posted @ 2007-03-13 14:56 江边之鸟 阅读(1288) | 评论 (1)编辑 收藏

Assignment Two

1.        While he is still _______C________ about the purchase(购买), his business rivals(竞争对手) have already made a lot of money from it.

A) on his mind         B) in one mind          C) in two minds    D) in mind

 

2.        The only way ______C_______ the quality of the students should be stricter discipline and more challenging examinations, says the headmaster.

A) improving          B) improve              C) to improve(改进)      D) improves

The way to do something

3  The economic(经济学) policies in China have ______B________ great changes in our life.

A) brought back(归还)        B) brought about(导致)        C) brought around(说服)     D) brought over(推出)

 

4  Your composition(创作) is pretty good _____A________ grammar and spelling.

A) in terms of(按照,用…来说)           B) at the rate of (以率)        C) in the name of(以…的名义)      D) in honor of(为纪念)

 

5  I report to my teacher every week to make sure that my efforts(努力) are made ______B________.

A) in the right forms                         B) in the right directions(向正确的方向)

C) in accurate ways                          D) in precise manners

 

6          Mankind will have to _______A_______ the sun’s rays as a source of energy.

A) harness(治理)              B) present(现在)              C) convey(表达,传递)             D) contact(联系)

 

7          The damages(毁坏) to the building are _______C________ that it will cost a lot of money to repair it.

A) so                  B) thus                C) such                D) in

 

8          If Columbus(哥伦布) hadn’t discovered the New Continent(大陆), what ____D_______ America today ________________ very different.

A) were… would be       B) is… should be         C) is… were     D) is… would be

 

9          A(n) _______B_______ record of any event is impossible. Different people will look at a happening from a different angle.

A) evident(明显的)             B) precise(精确的)                C) precious(珍贵的)           D) brief(短暂的)

 

10      At the end of this week, she should _______A________ an essay to the teacher. Otherwise, she will have to retake the course.

A) submit             B) hand                C) devote(把…奉献给)            D) offer

 

11      To his regret(遗憾), his request for a raise in salary(销售额) was finally _______B________.

A) turned away       B) turned down(调低)          C) turned over       D) turned back(折回)

 

12      They _______A________ the mother ______________ the way she had trained her disabled child.

A) complimented …on (赞美)                 B) relived …of

C) talked …into                         D) presented …with

 

13      We ______C_________ the cost of the vacation and decided that we could afford it.

A) searched for        B) left out             C) worked out        D) look over

 

14      The police were ________D_________ immediately after the disturbance(扰乱) began in the inner-city area.

A) run into(偶尔碰到)           B) waited on(服侍)           C) brought about(导致)        D) sent for(召唤)

 

15      They spent the whole summer _______D_________ the buried(掩埋) treasure.(财富)

A) glancing over(扫视)      B) running for(竞选)        C) picking out(挑出)           D) hunting for(追捕到)

 

16      I would like to rent(出租) an apartment----well-furnished(布置), comfortable and _______B________ in a safe location.

A) after all(终究)           B) above all(在上方)            C) for all(尽管,虽然)              D) over all(超过)

 

17      ______B_______ Tony had to fulfill(实现) his American dream were vision(想象力), determination(决定), self-control and 24 precious(珍贵) hours a day.

A) Since             B) All               C) As                   D) That

 

18      Nowadays many teenagers(青少年) feel ________A________ to talk openly(直率的) with their parents due to the generation gap between them.

A) reluctant(不情愿的)          B) innocent(天真的)           C) appropriate(适当的)           D) delighted(高兴)

 

19      She is terribly(可怕的) upset because her father, all of a sudden(突然), _______D________ last week.

A) passed off(发生)        B) passed by(经过)          C) passed down(传下去)          D) passed away(去世)

 

20      There are fears(害怕) that the company’s traditions(传统) of service and quality will be _______A________ to achieve(完成) profit.(利润)

A) sacrificed(牺牲)        B) reserved(保留)           C) switched             D) accomplished(达到目的)

posted @ 2007-03-13 14:54 江边之鸟 阅读(250) | 评论 (0)编辑 收藏

Assignment Three

1.      I don’t know how old he is, but he looks ______B_____ over fifty.

A) very         B) well             C) quite           D) rather

2.      As he was speaking a regional(区域) dialect(方言), I couldn’t _____B_________ what he wanted to know.

A) put out       B) make out(了解)         C) come out(显露)       D) think out(仔细考虑)

3.      Don’t disturb(打扰) him. He is _____C________ in his academic(学术) problem.

A) thinking      B ) attracted(吸引)        C) absorbed(吸收)        D) blooming(开花)

4.      As far as I can see, their behavior actually ______C_______ their keen desire(渴望) to succeed.

A) adjusted      B) intended(打算)          C) reflected(反映)        D) presented

5.      They complained because one of the _______A_______ events, climbing the mountain, had been canceled by the travel agency for no reason.

A) scheduled(日程)        B) dated        C) interested       D) margined(边缘)

6.      His ill-intended joke made us ______C_________ angry(发怒). We left the hall immediately.

A) any more                              B) not any more

C) more than a little                        D) no more

7.      He beat the other runners by a _____D_______ of ten seconds.

A) gap(缺口)            B) blank        C) time           D) margin(余地)

8.      Behind him ______B_______, of full figure and fine presence(出席), with hair still brown.

A) did a tall woman come in               B) came in a tall woman

C) a tall woman came in                  D) in came a tall woman

9.      His pale(苍白的) face and dry lips(嘴唇) suggested that he ______C_______ anything for a few days.

A) has not eaten                         B) not eat

C) had not eaten                         D) should have eaten

10.  The little girl ran towards us, her hair ____A_______ about in the breeze(轻风).

A) moving       B) moved        C) move         D) was moving

11.  The early settlers(调停) of the American continent(大陆) _____C______ copper(铜币) __________ corn with the Indians.

A) mixed…with(混合)                     B) referred…to

C) traded…for(贸易)                      D) attached…to(连接)      

12.  I was trying to ______B____ him _________, but failed because he didn’t fit into any type I knew.

A) check…through                   B) size…up(估计,判断)

C) pick…out(挑出)                        D) note…down(记下)

13. No artificial(人工的) light can ___D______ daylight for general use.

   A) make up for(弥补)    B) do with(想要)   C) stand for(代表,主张)    D) compare with

14. It was truly a miracle(奇迹) that the little girl ___B_____ the flood(洪水) by climbing onto a tree.

   A) explored        B) survived(幸存)        C) captivated(迷住)        D) relieved(缓解)

15. The army is reported to be ____C_____ considerable(相当多的) resistance(反抗) in some remote rural(农村) areas.

   A) companioning(伴侣)                      B) discarding(抛弃)

   C) encountering(遇到)                       D) embracing(拥抱,包围)

16. The Princess’(公主) biography(传记 ) ____B____ that her marriage was not as satisfactory(令人满意的) as was once believed.

   A) explored     B) revealed(展示)       C) identified(标识)       D) inquired(打听)

17. Farmers mistrusted(不信任) speculative(投机的)grain(少量) selling through Grain Exchange. It happened too often that they sold their wheat soon after harvest ___A_____ see prices rising and speculators getting rich.

   A) only to    B) so as to(为了,以便)      C) in order to(为了做某事)       D) in attempts to

18. _____C_____ I fully understand your point of view on what makes a marriage perfect, I do also have some sympathy(同情心) with your parents’.

   A) Since        B) That          C) While           D) When

19. I actually don’t want to drag you away from your key pal(伙伴) but I’m only acting _____D____ your best interest.

   A) on        B) with         C) for           D) in

20. To my despair(绝望), I eat _____A_____ I want and I still don’t seem to put on any weight.

   A) whatever      B) however     C) whichever      D) whenever

posted @ 2007-03-13 14:53 江边之鸟 阅读(222) | 评论 (0)编辑 收藏

  1. 语言简洁,紧凑,使用方便,灵活:其实C语言与java,c++,C#语法形式相象,非常简练,而且语句量很少,不像basic,pascal那样多;
  2. 运算符丰富:C提供了位操作符,指针操作符等运算符,有了这些操作符,使C语言的功能更为强大,使用更为灵活;
  3. 数据结构丰富:如共用体,枚举结构等都是其它语言所不多见的;
  4. 具有结构化的控制语句:这也是C较早的成为结构化程序设计语言;
  5. 语法限制不太灵活,程序设计自由度大:比之fortran等语句要灵活得多;
  6. C语言能进行位(bit)操作:实现汇编语言的大多数功能;
  7. 生成目标代码质量高,程序执行效率高:据说只比汇编低,比Basic之流要快得多;
  8. 用C语言写的程序可移植性好:与汇编要比

posted @ 2007-03-13 14:52 江边之鸟 阅读(175) | 评论 (0)编辑 收藏

  • C语言可以进行科学技算,但是没有fortran及PL/I适用;
  • C语言可以进行商业和管理等数据处理领域,但不如Cobol;
  • 对操作系统和系统实用程序以及需要对硬件进行操作的场合,比较适合;
  • 可用于教学领域,或许比pascal更适合;

posted @ 2007-03-13 14:52 江边之鸟 阅读(1164) | 评论 (0)编辑 收藏

  1. C程序是由函数构成的;
  2. 一个函数体由两部分组成:函数首部与函数体;
  3. 一个C程序总是从main函数开始执行的;
  4. C程序书写格式自由,一行内可以写几个语句,一个语句可以分写大多行;
  5. 每个语句和数据定义的最后必须有一个分号;
  6. C语言本身没有输入和输出语句;
  7. 可以用/*.......*/对C程序的任何部分进行注释

posted @ 2007-03-13 14:52 江边之鸟 阅读(211) | 评论 (0)编辑 收藏

#include <stdio.h>
int main()
{
        printf("***************************/n");
        printf("     Very good!         /n");
        printf("**************************/n");
        return 0;
}

posted @ 2007-03-13 14:51 江边之鸟 阅读(219) | 评论 (0)编辑 收藏

#include <stdio.h>
int main()
{
 printf("max number is:%d",max(1,2,6));
}

int max(int a,int b,int c)
{
 int maxNum;
 maxNum=a;
 if (b>a )
  maxNum=b;
 if (c>maxNum)
  maxNum=c;
 return maxNum;
}

posted @ 2007-03-13 14:50 江边之鸟 阅读(363) | 评论 (0)编辑 收藏

虽然可以用G++也可以进行C程序的编译,不过最好还是用GCC.我在windowsXp下用MinGw进行:

首先,对MinGw进行配置,在下载安装完后,在环境变量中的path变量中,加入MinGw/bin目录,这样就可以在任何地方直接使用GCC命令了。

1、编辑

在Dos下用DGJPP,在windows下用Mingw,我用的是MinGw developer studio.非常不错。

2、编译

如源文件名为abc.c,则可以直接用gcc abc.c就可以生成a.exe可执行程序;如果觉得这个可执行程序不合意的话,那么可以用gcc -o abc.exe abc.c 就可以编译并生成abc.exe可执行程序;

3、执行

在命令提示符下执行abc就可以看到效果了。

posted @ 2007-03-13 14:50 江边之鸟 阅读(1249) | 评论 (0)编辑 收藏

  1. 凡未被事先定义的,不作为变量名,这样能保证程序中变量名使用正确;
  2. 每一个变量被指定一确定数据类型,在编译时就能为其分配相应的存储单元;
  3. 指定每一变量属于一个类型,这就便于在编译时,据此检查该变量所进行的运算是否合法;

posted @ 2007-03-13 14:49 江边之鸟 阅读(958) | 评论 (0)编辑 收藏

求表达式的值,设原来a=12,设a和n为整型变量:
(1) a+=a
a=24  ;a=a+a
(2) a-=2
a=10 ;a=a-2
(3)a*=2+3
a=60 a=a*(2+3)
(4)a/=a+a
a=0 a=a/(a+a)
(5)a%=(n%=2),n=5
a=0 ;按理说是n%=2 是n=n%2=1,然后a=a%1=12%1=0,但是在gcc中调试失败,或许是不支持吗?
(6)a+=a-=a*a=a
;搞不清楚,在gcc中调试失败

说明一点:觉得在程序设计中这样过份的调用操作符,会导致程序不清楚,而且很容易出逻辑错误。不建议这种方法。再者gcc基本上遵从ansi C,相信GCC.

posted @ 2007-03-13 14:49 江边之鸟 阅读(181) | 评论 (0)编辑 收藏

为了让学习生活能够有序高效的进行,应该制定个计划。去年一学期的失败,应该是要吸取教训的。每天晚上的时间从18:30起算起,基本上是有空的。决定从18:30-21:30 这三个小时之间进行学习,近期主要是对上学期要补考的课程进行复习,顺便将本学期的课程也别丢下了。这应该养成我两年内的习惯。就今年课程而言,C语言和大学语文、法律基础应该是没问题的。而微机原理与接口技术要下点功夫的,对于线性代数和综合英语尤其要下较大功夫。也就是主攻微机原理和线性代数,其它的放在第二位,有所突出,根据个人的掌握情况进行学习,有的放矢,希望今年期末考试可以过掉,我就谢天谢地了,我可真不愿补考了。 闹钟 

posted @ 2007-03-13 14:49 江边之鸟 阅读(219) | 评论 (1)编辑 收藏

写出程序运行结果:

#include <stdio.h>
int main()
{
 int i,j,m,n;
 i=8;
 j=10;
 m=++i;
 n=j++;
 printf("%d,%d,%d,%d",i,j,m,n);
 return 0;
}

结果:i=9 j=11 m=9 n=10

注意:i与j在进行++运算后自身值都发现了改变,而表达式的值却是有区别的。在m=++i中,i先自加1之后再赋于m,而在n=j++中,j的值先赋于n,然后j的值再自加 1的。

posted @ 2007-03-13 14:48 江边之鸟 阅读(182) | 评论 (0)编辑 收藏

仅列出标题
共6页: 1 2 3 4 5 6