2023年全國(guó)碩士研究生考試考研英語(yǔ)一試題真題(含答案詳解+作文范文)_第1頁(yè)
已閱讀1頁(yè),還剩13頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、<p>  計(jì)算機(jī)技術(shù)基礎(chǔ)課程設(shè)計(jì)</p><p><b>  C語(yǔ)言</b></p><p><b>  設(shè)計(jì)報(bào)告</b></p><p><b>  題目:小蟲(chóng)子挖隧道</b></p><p><b>  一、選題背景:</b></p&

2、gt;<p>  1、問(wèn)題提出:通過(guò)c語(yǔ)言的學(xué)習(xí)和對(duì)程序設(shè)計(jì)的興趣,使我很想設(shè)計(jì)一個(gè)小程序,使自己對(duì)程序設(shè)計(jì)有更深的認(rèn)識(shí),來(lái)充實(shí)一下這學(xué)期的學(xué)習(xí)。</p><p>  2、在這個(gè)程序中應(yīng)用了c語(yǔ)言中的一些基本知識(shí),來(lái)運(yùn)行出一個(gè)應(yīng)用方向鍵的小程序。</p><p><b>  二、設(shè)計(jì)思路:</b></p><p>  1、 練習(xí)進(jìn)

3、行圖形的界面處理,通過(guò)語(yǔ)句include<graphics.h>將庫(kù)函數(shù)引出,通過(guò)init( )函數(shù)初始化圖形系統(tǒng),編寫相應(yīng)的的功能函數(shù)完成大嘴巴的效果,通過(guò)循環(huán)響應(yīng) 。</p><p>  2、在實(shí)現(xiàn)過(guò)程中,通過(guò)調(diào)用蟲(chóng)子嘴巴函數(shù)和四個(gè)方向移動(dòng)函數(shù),可以看到在設(shè)計(jì)的背景顏色下以張著大嘴巴挖出隧道移動(dòng)。</p><p><b>  3、主要應(yīng)用如下:</b>

4、;</p><p>  pieslice 繪制并填充一個(gè)扇形</p><p>  setfillstye 設(shè)置填充模式和顏色</p><p>  #include 文件包含初始化圖形系統(tǒng)</p><p>  for

5、 循環(huán)</p><p>  initgraph 初始化圖形系統(tǒng)</p><p>  closegraph 關(guān)閉初始化圖形系統(tǒng)</p><p>  setbkcolor 設(shè)計(jì)背景顏色</p><p>  putpixel

6、 在指定位置畫一像素</p><p><b>  真</b></p><p><b>  假</b></p><p><b>  假</b></p><p><b>  真</b></p><p><b>  假

7、</b></p><p><b>  假</b></p><p><b>  四:程序清單:</b></p><p>  #include <graphics.h></p><p>  #include <stdio.h></p><p>

8、  #include <time.h></p><p>  #include <dos.h></p><p>  #define maxx 640</p><p>  #define maxy 480</p><p>  #define minx 0</p><p>  #defin

9、e miny 0</p><p>  #define midx 0</p><p>  #define midy 0</p><p>  #define r 15</p><p><b>  main()</b></p><p><b>  {</b><

10、/p><p>  int i,x,y;</p><p>  char c; /*定義變量*/</p><p>  init(); /*調(diào)用圖形初始化函數(shù)*/</p><p>  ground();

11、 /*調(diào)用畫土地函數(shù)*/</p><p><b>  x=320;</b></p><p><b>  y=240;</b></p><p>  dazuir(x,y,13); /*調(diào)用畫蟲(chóng)子函數(shù)*/</p&g

12、t;<p><b>  c=' ';</b></p><p>  while(c!='\015')</p><p><b>  {</b></p><p>  c=getch();</p><p><b>  switch(c)</b&g

13、t;</p><p><b>  {</b></p><p><b>  case'M':</b></p><p><b>  {</b></p><p>  dazui(x,y,13); /*調(diào)用合上嘴巴

14、函數(shù)*/</p><p>  delay(2000); /*延遲2000毫秒*/</p><p>  dazui(x,y,0); /*調(diào)用合上嘴巴函數(shù)*/</p><p>  x=x+15;

15、 /*嘴巴前進(jìn)*/</p><p>  delay(1000); /*延遲1000毫秒*/</p><p>  dazuir(x,y,13); /*調(diào)用向右嘴巴函數(shù)*/</p><p><b>  break;</b>&l

16、t;/p><p><b>  }</b></p><p><b>  case'H':</b></p><p><b>  {</b></p><p>  dazui(x,y,13); /*調(diào)用合上嘴巴函數(shù)*/

17、</p><p>  delay(2000); /*延遲2000毫秒*/</p><p>  dazui(x,y,0); /*調(diào)用合上嘴巴函數(shù)*/</p><p>  y=y-15;

18、 /*移動(dòng)嘴巴位置*/</p><p>  delay(1000); /*延遲1000毫秒*/</p><p>  dazuit(x,y,13); /*調(diào)用向上嘴巴函數(shù)*/</p><p><b>  break;</b><

19、/p><p><b>  }</b></p><p><b>  case'K':</b></p><p><b>  {</b></p><p>  dazui(x,y,13); /*調(diào)用合上嘴巴函數(shù)*/&l

20、t;/p><p>  delay(2000); /*延遲2000毫秒*/</p><p>  dazui(x,y,0); /*調(diào)用合上嘴巴函數(shù)*/</p><p>  x=x-15;

21、/*移動(dòng)嘴巴位置*/</p><p>  delay(1000); /*延遲1000毫秒*/</p><p>  dazuil(x,y,13); /*調(diào)用向左嘴巴函數(shù)*/</p><p><b>  break;</b></p

22、><p><b>  }</b></p><p><b>  case'P':</b></p><p><b>  {</b></p><p>  dazui(x,y,13); /*調(diào)用合上嘴巴函數(shù)*/<

23、/p><p>  delay(2000); /*延遲2000毫秒*/</p><p>  dazui(x,y,0); /*調(diào)用合上嘴巴函數(shù)*/</p><p>  y=y+15; /*

24、移動(dòng)嘴巴位置*/</p><p>  delay(1000); /*延遲1000毫秒*/</p><p>  dazuib(x,y,13); /*調(diào)用向下嘴巴函數(shù)*/</p><p><b>  break;</b></p&g

25、t;<p><b>  }</b></p><p>  default :;</p><p><b>  }</b></p><p><b>  }</b></p><p><b>  }</b></p><p>  

26、init() /*定義初始化圖形系統(tǒng)函數(shù)*/</p><p><b>  {</b></p><p>  int gdriver=DETECT;</p><p>  int gmobe;</p><p>  initgraph(&gdrive

27、r,&gmobe,"c:\\tc\\bgi"); /*初始化圖象系統(tǒng)*/</p><p>  setbkcolor(0); /*定義背景為黑色*/</p><p><b>  return;</b></p><p><b>  }</b>

28、</p><p>  ground() /*畫綠地函數(shù)*/</p><p><b>  {</b></p><p>  int i,rx,ry;</p><p>  for(i=1;i<=2000;i++)

29、 /*循環(huán)系統(tǒng)語(yǔ)句*/</p><p>  putpixel(rand()%maxx,rand()%maxy,2); /*在指定位置畫一像素*/</p><p>  for(i=1;i<=1000;i++)</p><p><b>  {</b></p><p>  rx=rand()%maxx;&l

30、t;/p><p>  ry=rand()%maxy; /*隨機(jī)位置畫一像素*/</p><p>  putpixel(rx,ry,12);</p><p>  putpixel(rx+1,ry,12);</p><p>  putpixel(rx+1,ry+1,12);

31、 /*在三個(gè)相鄰位置畫像素*/</p><p><b>  }</b></p><p>  for(i=1;i<=20000;i++)</p><p>  putpixel(rand()%maxx,rand()%maxy,10); /*在指定位置畫一像素*/</p><p><b>

32、;  return;</b></p><p><b>  }</b></p><p>  dazui(int x,int y,int lcolor) /*在x,y處以lcolor色畫合上大嘴巴*/</p><p><b>  {</b></p><p>  setcolor(

33、lcolor); /*設(shè)置當(dāng)前畫線顏色*/</p><p>  setfillstyle(1,lcolor); /*設(shè)置填充模式和顏色*/</p><p>  pieslice(x,y,0,360,r); /*繪制并填充一個(gè)扇形*/</p><

34、p>  setlinestyle(0,0,3); /*設(shè)置當(dāng)前畫線寬度和類型*/</p><p>  setcolor(0); /*設(shè)置當(dāng)前畫線顏色*/</p><p>  circle(x+4,y-6,2); /*在給定半徑以(x,y)為圓心畫圓*

35、/</p><p><b>  return;</b></p><p><b>  }</b></p><p>  dazuir(int x,int y,int lcolor) /*在x,y處以lcolor色向右的大嘴巴*/</p><p><b>  {</b>&l

36、t;/p><p>  setcolor(lcolor); /*設(shè)置當(dāng)前畫線顏色*/</p><p>  setfillstyle(1,lcolor); /*設(shè)置填充模式和顏色*/</p><p>  pieslice(x,y,30,330,r);

37、 /*繪制并填充一個(gè)扇形*/</p><p>  setlinestyle(0,0,3); /*設(shè)置當(dāng)前畫線寬度和類型*/</p><p>  setcolor(0); /*設(shè)置當(dāng)前畫線顏色*/</p><p>  circle(x+4,y-6,2);

38、 /*在給定半徑以(x,y)為圓心畫圓*/</p><p><b>  return;</b></p><p><b>  }</b></p><p>  dazuil(int x,int y,int lcolor) /*在x,y處以lcolor色向左的大嘴巴*/</p><

39、;p><b>  {</b></p><p>  setcolor(lcolor); /*設(shè)置當(dāng)前畫線顏色*/</p><p>  setfillstyle(1,lcolor); /*設(shè)置填充模式和顏色*/</p><p>  pieslice(x,y

40、,210,360,r); /*繪制并填充一個(gè)扇形*/</p><p>  pieslice(x,y,0,150,r); /*繪制并填充一個(gè)扇形*/</p><p>  setlinestyle(0,0,3); /*設(shè)置當(dāng)前畫線寬度和類型*/</p><

41、p>  setcolor(0); /*設(shè)置當(dāng)前畫線顏色*/</p><p>  circle(x-4,y-6,2); /*在給定半徑以(x,y)為圓心畫圓*/</p><p><b>  return;</b></p><p><b> 

42、 }</b></p><p>  dazuit(int x,int y,int lcolor) /*在x,y處以lcolor色向上的大嘴巴*/</p><p><b>  {</b></p><p>  setcolor(lcolor); /*設(shè)置當(dāng)前畫線顏色*/</

43、p><p>  setfillstyle(1,lcolor); /*設(shè)置填充模式和顏色*/</p><p>  pieslice(x,y,120,360,r); /*繪制并填充一個(gè)扇形*/</p><p>  pieslice(x,y,0,60,r); /

44、*繪制并填充一個(gè)扇形*/</p><p>  setlinestyle(0,0,3); /*設(shè)置當(dāng)前畫線寬度和類型*/</p><p>  setcolor(0); /*設(shè)置當(dāng)前畫線顏色*/</p><p>  circle(x-7,y-6,2);

45、 /*在給定半徑以(x,y)為圓心畫圓*/</p><p><b>  return;</b></p><p><b>  }</b></p><p>  dazuib(int x,int y,int lcolor) /*在x,y處以lcolor色向下的大嘴巴*/</p><p

46、><b>  {</b></p><p>  setcolor(lcolor); /*設(shè)置當(dāng)前畫線顏色*/</p><p>  setfillstyle(1,lcolor); /*設(shè)置填充模式和顏色*/</p><p>  pieslice(x,y,0

47、,240,r); /*繪制并填充一個(gè)扇形*/</p><p>  pieslice(x,y,300,360,r); /*繪制并填充一個(gè)扇形*/</p><p>  setlinestyle(0,0,3); /*設(shè)置當(dāng)前畫線寬度和類型*/</p><p&

48、gt;  setcolor(0); /*設(shè)置當(dāng)前畫線顏色*/</p><p>  circle(x+7,y+6,2); /*在給定半徑以(x,y)為圓心畫圓*/</p><p><b>  return;</b></p><p><b>  }

49、</b></p><p>  五、主要解決問(wèn)題的方法及技術(shù)要求:</p><p>  主要用函數(shù)和循環(huán)函數(shù),結(jié)合背景設(shè)計(jì),用pieslice,selfillstyle畫扇形,并成為大嘴巴的電子形象。</p><p><b>  六、設(shè)計(jì)結(jié)果說(shuō)明:</b></p><p>  設(shè)計(jì)優(yōu)點(diǎn):該程序運(yùn)用了所學(xué)到的基

50、本知識(shí),通過(guò)宏定義和多次的調(diào)用函數(shù),淺顯易懂,運(yùn)行后比較生動(dòng),達(dá)到了設(shè)計(jì)的初衷。看過(guò)的人可以很清楚明白,并且可以通過(guò)改變程序的設(shè)計(jì)背景,達(dá)到意想的效果 。</p><p>  設(shè)計(jì)不足:此程序不是游戲模式,只是一個(gè)運(yùn)用所學(xué)過(guò)的知識(shí),運(yùn)行出一個(gè)可通過(guò)鍵盤調(diào)節(jié)的小程序。</p><p>  設(shè)計(jì)改進(jìn):如果通過(guò)更深入的學(xué)習(xí),可以嘗試把此程序設(shè)計(jì)在音效之下,并改進(jìn)成游戲模式。</p>

51、<p>  g an employment tribunal claim</p><p>  Employment tribunals sort out disagreements between employers and employees.</p><p>  You may need to make a claim to an employment tribunal i

52、f:</p><p>  you don't agree with the disciplinary action your employer has taken against you</p><p>  your employer dismisses you and you think that you have been dismissed unfairly.</p&g

53、t;<p>  For more information about dismissal and unfair dismissal, see Dismissal.</p><p>  You can make a claim to an employment tribunal, even if you haven't appealed against the d

54、isciplinary action your employer has taken against you. However, if you win your case, the tribunal may reduce any compensation awarded to you as a result of your failure to appeal.</p><p>  Remember that in

55、 most cases you must make an application to an employment tribunal within three months of the date when the event you are complaining about happened. If your application is received after this time limit, the tribunal wi

56、ll not usually accept it.</p><p>  If you are worried about how the time limits apply to you, take advice from one of the organisations listed under Further help.</p><p>  Employment tribun

57、als are less formal than some other courts, but it is still a legal process and you will need to give evidence under an oath or affirmation.</p><p>  Most people find making a claim to an employment tribunal

58、 challenging. If you are thinking about making a claim to an employment tribunal, you should get help straight away from one of the organisations listed under Further help.</p><p>  If you are being rep

59、resented by a solicitor at the tribunal, they may ask you to sign an agreement where you pay their fee out of your compensation if you win the case. This is known as a damages-based agreement. In England and Wales,

60、your solicitor can't charge you more than 35% of your compensation  if you win the case.</p><p>  If you are thinking about signing up for  a damages-based agreement, you should make sure you&#

61、39;re clear about the terms of the agreement. It might be best to get advice from an experienced adviser, for example, at a Citizens Advice Bureau.  To find your nearest CAB, including those that give advice by e-ma

62、il, click on nearest CAB.</p><p>  For more information about making a claim to an employment tribunal, see Employment tribunals.</p><p>  The (lack of) air up there </p><p&

63、gt;  Watch mCayman Islands-based Webb, the head of Fifa's anti-racism taskforce, is in London for the Football Association's 150th anniversary celebrations and will attend City's Premier League match at Chels

64、ea on Sunday.</p><p>  "I am going to be at the match tomorrow and I have asked to meet Yaya Toure," he told BBC Sport.</p><p>  "For me it's about how he felt and I would lik

65、e to speak to him first to find out what his experience was."</p><p>  Uefa has opened disciplinary proceedings against CSKA for the "racist behaviour of their fans" during City

66、's 2-1 win.</p><p>  Michel Platini, president of European football's governing body, has also ordered an immediate investigation into the referee's actions.</p><p>  CSKA said they

67、were "surprised and disappointed" by Toure's complaint. In a statement the Russian side added: "We found no racist insults from fans of CSKA."</p><p>  Age has reached the end of the

68、beginning of a word. May be guilty in his seems to passing a lot of different life became the appearance of the same day; May be back in the past, to oneself the paranoid weird belief disillusionment, these days, my mind

69、 has been very messy, in my mind constantly. Always feel oneself should go to do something, or write something. Twenty years of life trajectory deeply shallow, suddenly feel something, do it.</p><p>  一字開(kāi)頭的年

70、齡已經(jīng)到了尾聲。或許是愧疚于自己似乎把轉(zhuǎn)瞬即逝的很多個(gè)不同的日子過(guò)成了同一天的樣子;或許是追溯過(guò)去,對(duì)自己那些近乎偏執(zhí)的怪異信念的醒悟,這些天以來(lái),思緒一直很凌亂,在腦海中不斷糾纏??傆X(jué)得自己自己似乎應(yīng)該去做點(diǎn)什么,或者寫點(diǎn)什么。二十年的人生軌跡深深淺淺,突然就感覺(jué)到有些事情,非做不可了。</p><p>  The end of our life, and can meet many things really

71、 do?</p><p>  而窮盡我們的一生,又能遇到多少事情是真正地非做不可?</p><p>  During my childhood, think lucky money and new clothes are necessary for New Year, but as the advance of the age, will be more and more found th

72、at those things are optional; Junior high school, thought to have a crush on just means that the real growth, but over the past three years later, his writing of alumni in peace, suddenly found that isn't really grow

73、 up, it seems is not so important; Then in high school, think don't want to give vent to out your inner voice can be in the high school chil</p><p>  童年時(shí),覺(jué)得壓歲錢和新衣服是過(guò)年必備,但是隨著年齡的推進(jìn),會(huì)越來(lái)越發(fā)現(xiàn),那些東西根本就可有可無(wú);初中時(shí),以

74、為要有一場(chǎng)暗戀才意味著真正的成長(zhǎng),但三年過(guò)去后,自己心平氣和的寫同學(xué)錄的時(shí)候,突然就發(fā)現(xiàn)是不是真正的成長(zhǎng)了,好像并沒(méi)有那么重要了;然后到了高中,覺(jué)得非要吐露出自己的心聲才能為高中生涯里的懵懂情愫劃上一個(gè)句點(diǎn),但畢業(yè)晚會(huì)的時(shí)候最終還是被梗塞在了咽喉,后來(lái)再次站在他曾經(jīng)揮汗如雨的球場(chǎng),看著他投過(guò)籃球的球框時(shí),突然間發(fā)現(xiàn)自己已經(jīng)想不起他的容顏。</p><p>  Originally, this world, can

75、 produce a chemical reaction to an event, in addition to resolutely, have to do, and time.</p><p>  原來(lái),這個(gè)世界上,對(duì)某個(gè)事件能產(chǎn)生化學(xué)反應(yīng)的,除了非做不可的堅(jiān)決,還有,時(shí)間。</p><p>  A person's time, your ideas are always sp

76、ecial to clear. Want, want, line is clear, as if nothing could shake his. Also once seemed to be determined to do something, but more often is he backed out at last. Dislike his cowardice, finally found that there are a

77、lot of love, there are a lot of miss, like shadow really have been doomed. Those who do, just green years oneself give oneself an arm injection, or is a self-righteous spiritual.</p><p>  一個(gè)人的時(shí)候,自己的想法總是特別地清晰

78、。想要的,不想要的,界限明確,好像沒(méi)有什么可以撼動(dòng)自己。也曾經(jīng)好像已經(jīng)下定了決心去做某件事,但更多的時(shí)候是最后又打起了退堂鼓。嫌惡過(guò)自己的怯懦,最終卻發(fā)現(xiàn)有很多緣分,有很多錯(cuò)過(guò),好像冥冥之中真的已經(jīng)注定。那些曾經(jīng)所謂的非做不可,只是青蔥年華里自己給自己注射的一支強(qiáng)心劑,或者說(shuō),是自以為是的精神寄托罷了。</p><p>  At the moment, the sky is dark, the air is fr

79、esh factor after just rained. Suddenly thought of blue plaid shirt; Those were broken into various shapes of stationery; From the corner at the beginning of deep friendship; Have declared the end of the encounter that ha

80、ven't start planning... Those years, those days of do, finally, like youth, will end in our life.</p><p>  此刻,天空是陰暗的,空氣里有著剛下過(guò)雨之后的清新因子。突然想到那件藍(lán)格子襯衫;那些被折成各種各樣形狀的信紙;那段從街角深巷伊始的友誼;還有那場(chǎng)還沒(méi)有開(kāi)始就宣告了終結(jié)的邂逅計(jì)劃……那些年那些天的

81、非做不可,終于和青春一樣,都將在我們的人生中謝幕。</p><p>  Baumgartner the disappointing news: Mission aborted. r plays an important role in this mission. Starting at the ground, conditions have to be very calm -- winds less than 2

82、 mph, with no precipitation or humidity and limited cloud cover. The balloon, with capsule attached, will move through the lower level of the atmosphere (the troposphere) where our day-to-day weather lives. It will climb

83、 higher than the tip of Mount Everest (5.5 miles/8.85 kilometers), drifting even higher than the cruising al</p><p>  The supersonic descent could happen as early as Sunda.</p><p>  The weatheTh

84、e balloon will slowly drift to the edge of space at 120,000 feet (</p><p>  Then, I would assume, he will slowly step out onto something resembling an Olympic diving platform.</p><p>  Below, th

85、e Earth becomes the concrete bottom of a swimming pool that he wants to land on, but not too hard. Still, he'll be traveling fast, so despite the distance, it will not be like diving into the deep end of a pool. It w

86、ill be like he is diving into the shallow end. </p><p>  Skydiver preps for the big jump</p><p>  When he jumps, he is expected to reach the speed of sound -- 690 mph (1,110 kph) -- in less than

87、 40 seconds. Like hitting the top of the water, he will begin to slow as he approaches the more dense air closer to Earth. But this will not be enough to stop him completely.</p><p>  If he goes too fast or

88、 spins out of control, he has a stabilization parachute that can be deployed to slow him down. His team hopes it's not needed. Instead, he plans to deploy his 270-square-foot (25-square-meter) main chute at an altitu

89、de of around 5,000 feet (1,524 meters).</p><p>  In order to deploy this chute successfully, he will have to slow to 172 mph (277 kph). He will have a reserve parachute that will open automatically if he los

90、es consciousness at mach speeds.</p><p>  Even if everything goes as planned, it won't. Baumgartner still will free fall at a speed that would cause you and me to pass out, and no parachute is guaranteed

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 眾賞文庫(kù)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論