計(jì)算機(jī)實(shí)習(xí)內(nèi)容要求_第1頁(yè)
計(jì)算機(jī)實(shí)習(xí)內(nèi)容要求_第2頁(yè)
計(jì)算機(jī)實(shí)習(xí)內(nèi)容要求_第3頁(yè)
計(jì)算機(jī)實(shí)習(xí)內(nèi)容要求_第4頁(yè)
計(jì)算機(jī)實(shí)習(xí)內(nèi)容要求_第5頁(yè)
已閱讀5頁(yè),還剩23頁(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、北京郵電大學(xué)計(jì)算機(jī)實(shí)習(xí) 指導(dǎo)教師:苗建松第 PAGE 28頁(yè)*北京郵電大學(xué)信息與通信工程學(xué)院 TITLE * MERGEFORMAT 計(jì)算機(jī)實(shí)習(xí)內(nèi)容要求 SUBJECT * MERGEFORMAT 信息與通信工程學(xué)院2010級(jí)2011年 8月22日實(shí)習(xí)要求1基本要求1.1、內(nèi)容要求作品的內(nèi)容可以是下面4種中的任意一種:可以制作一個(gè)小游戲,比如俄羅斯方塊、貪吃蛇、時(shí)鐘、投篩子等;可以制作一個(gè)課件,比如模擬漢諾塔游戲的過(guò)程;可以制作一個(gè)管理系統(tǒng),比如學(xué)生成績(jī)管理、學(xué)生基本信息管理等;其它你認(rèn)為有興趣的作品。1.2、作品功能要求 基本要求: 能夠應(yīng)用文件流進(jìn)行磁盤文件的讀寫:比如游戲分?jǐn)?shù)的保存等能夠

2、應(yīng)用面向?qū)ο蟮脑O(shè)計(jì)思想和方法能夠使用多文件結(jié)構(gòu)能夠播放音頻文件,增強(qiáng)游戲的效果2可選課題鑒于部分同學(xué)對(duì)于Windows編程非常感興趣,并且C+基礎(chǔ)較好,可以1-2人組成一個(gè)課題小組,嘗試完成下面的課題(選作可選課題中的任何一個(gè),就不需要在做基本要求中的內(nèi)容了)。同學(xué)們分組作自選課題必須跟老師協(xié)商并說(shuō)明思路,經(jīng)老師允許后方可開始進(jìn)行。2.1、完成一個(gè)簡(jiǎn)單計(jì)算器簡(jiǎn)單計(jì)算器的界面如圖3所示,功能可以參見Windows操作系統(tǒng)的附件中的計(jì)算器的功能,能夠完成基本的算術(shù)運(yùn)算。圖1 簡(jiǎn)單計(jì)算器研究步驟:學(xué)習(xí)Windows編程框架,了解消息機(jī)制學(xué)習(xí)各種控件的使用,尤其是對(duì)話框、按鈕、編輯框等學(xué)習(xí)菜單的使用如

3、果時(shí)間允許,可以將簡(jiǎn)單計(jì)算器,擴(kuò)展為如圖4所示的科學(xué)計(jì)算器。圖2 科學(xué)計(jì)算器2.2、完成一個(gè)簡(jiǎn)單的信息管理系統(tǒng)簡(jiǎn)單的信息管理系統(tǒng)主要能夠完成對(duì)信息的讀取、增、刪、改、查、排序、保存等功能,比如一個(gè)簡(jiǎn)單學(xué)生信息管理系統(tǒng)界面如圖4所示,基本功能如下:(1)讀取文件中的學(xué)生信息,能夠按照學(xué)生類別顯示;(2)能夠增加、刪除、修改學(xué)生信息(3)能夠按照學(xué)號(hào)精確查詢學(xué)生信息(4)能夠統(tǒng)計(jì)不同類別、不同性別的學(xué)生人數(shù)(5)更新后的學(xué)生信息數(shù)據(jù)保存在文件中圖3 簡(jiǎn)單學(xué)生管理系統(tǒng)研究步驟:學(xué)習(xí)Windows編程框架,了解消息機(jī)制學(xué)習(xí)各種控件的使用,尤其是對(duì)話框、按鈕、編輯框等學(xué)習(xí)菜單的使用學(xué)習(xí)IO流的使用可以對(duì)

4、各種信息進(jìn)行管理,比如學(xué)生成績(jī)管理系統(tǒng)、通訊錄、圖書管理系統(tǒng)等2.3、完成一個(gè)畫圖軟件簡(jiǎn)單的畫圖軟件的形式和功能可以參考Windows操作系統(tǒng)中“附件”里的畫圖軟件,如圖6所示。圖4 畫圖軟件該軟件能夠完成如下基本功能:(1)能夠繪制直線、曲線;(2)能夠繪制各種形狀,比如矩形、橢圓形等(3)能夠繪制各種實(shí)心形狀,比如實(shí)心矩形、實(shí)心橢圓等(4)能夠添加文字(5)能夠設(shè)置不同的繪制顏色研究步驟:學(xué)習(xí)使用單文檔的(Single document)程序結(jié)構(gòu)學(xué)習(xí)使用MFC中CDC類系列的使用,包括CPen類、CBrush類等學(xué)習(xí)使用鼠標(biāo)消息處理函數(shù)的使用有能力的同學(xué)可以擴(kuò)展畫圖軟件的功能,比如能夠顯示

5、磁盤上已有的圖片文件、能夠具備“橡皮擦”的功能,進(jìn)行擦除、能夠保存繪制后的圖形等等2.4、自選題目學(xué)生根據(jù)自身的情況,可以自由選擇感興趣的題目,要求一要寫出具體的想法以及預(yù)期完成的結(jié)果,二要征得實(shí)驗(yàn)教師的同意。下面給出一些題目可供參考??梢詫?shí)現(xiàn)一個(gè)簡(jiǎn)單的Windows游戲,比如:碰碰球游戲,游戲者可以控制木板的左右移動(dòng),迎接下落的小球,小球與模板碰撞后彈起,反復(fù)運(yùn)行,直到小球下落后木板無(wú)法接起,游戲結(jié)束。參考程序如圖7所示。圖6 碰碰球游戲可以實(shí)現(xiàn)Josephus問(wèn)題的求解,Josephus問(wèn)題是:n個(gè)小孩圍成一圈,任意假定一個(gè)數(shù)m,從第一個(gè)小孩起,順時(shí)針?lè)较驍?shù),每數(shù)到第m個(gè)的小孩時(shí),該小孩便

6、離開。小孩不斷離開,圈子中的人數(shù)不斷減少,最后一個(gè)離開的小孩是勝利者,請(qǐng)問(wèn)最后一個(gè)離開的小孩的編號(hào)?實(shí)現(xiàn)可參考程序如圖8所示。圖7 Josephus問(wèn)題的求解可以學(xué)習(xí)使用OpenGL等工具庫(kù)實(shí)現(xiàn)一個(gè)動(dòng)畫制作,題目任意??梢詫W(xué)習(xí)數(shù)據(jù)庫(kù)的使用,完成一個(gè)基于數(shù)據(jù)庫(kù)的信息管理系統(tǒng)??梢詫W(xué)習(xí)Socket類的使用,完成一個(gè)基于網(wǎng)絡(luò)的應(yīng)用,比如一個(gè)即時(shí)消息系統(tǒng)、文件傳輸系統(tǒng)等??梢詫W(xué)習(xí)如何實(shí)現(xiàn)一個(gè)屏幕保護(hù)程序可以學(xué)習(xí)任何你感興趣的相關(guān)程序設(shè)計(jì)的知識(shí),完成一個(gè)完整的作品。參考資料可以參考以下資料。vc經(jīng)典教程.chm 電子版C+到Visual C+ 6.0精彩100例,應(yīng)甫臣、劉迎輝編,電腦愛好者雜志出版社,

7、2001年Visual C+ 課程設(shè)計(jì)案例精選,嚴(yán)華峰等編著,中國(guó)水利水電出版社,2002年附件1文件ColorConsole.h#include #include using namespace std;HANDLE initiate();BOOL textout(HANDLE hOutput,int x,int y,WORD wColors,int nColors,LPTSTR lpszString);附件2文件colorConsole.cpp#include colorConsole.hHANDLE initiate()HANDLE hOutput; hOutput = GetStdHa

8、ndle(STD_OUTPUT_HANDLE);return hOutput;BOOL textout(HANDLE hOutput,int x,int y,WORD wColors,int nColors,LPTSTR lpszString) DWORD cWritten; BOOL fSuccess; COORD coord; coord.X = x; / start at first cell coord.Y = y; / of first row fSuccess = WriteConsoleOutputCharacter( hOutput, / screen buffer handl

9、e lpszString, / pointer to source string lstrlen(lpszString), / length of string coord, / first cell to write to &cWritten); / actual number written if (! fSuccess) couterror:WriteConsoleOutputCharacterendl; for (;fSuccess & coord.X lstrlen(lpszString)+x; coord.X += nColors) fSuccess = WriteConsoleO

10、utputAttribute( hOutput, / screen buffer handle wColors, / pointer to source string nColors, / length of string coord, / first cell to write to &cWritten); / actual number written if (! fSuccess) couterror:WriteConsoleOutputAttributeendl;return 0;附件3主文件 main.cpp#include #include #include #include co

11、lorConsole.h/投篩子void rolldice(HANDLE hOutput,int n,int col,int row,WORD wColors);void main(void) HANDLE handle;WORD wColors1;int row,col;/初始化handle = initiate();/生成6個(gè)不同骰子wColors0=FOREGROUND_GREEN|FOREGROUND_RED|FOREGROUND_INTENSITY;row=col=2;for (int i=0;i6;i+)rolldice(handle,i+1,col,row+6*i,wColors

12、);/打印屏幕底部菜單 WORD wMenuColors1;wMenuColors0=FOREGROUND_RED|FOREGROUND_BLUE|FOREGROUND_INTENSITY;textout(handle,1,24,wMenuColors,1, 游戲規(guī)則:);textout(handle,11,24,wMenuColors,1,投擲開始/結(jié)束=ENTER;);textout(handle,34,24,wMenuColors,1,更換游戲者=空格;);textout(handle,53,24,wMenuColors,1,退出=q.);bool flag=false;int coun

13、t=1;int sum=0;/隨機(jī)數(shù)的種子srand( (unsigned)time( NULL );col=15;row=8;/游戲開始while(1) if (_kbhit()int ch=_getch();if (ch=13) flag=!flag; if (!flag)wColors0=FOREGROUND_RED|FOREGROUND_INTENSITY; rolldice(handle,i+1,row,col,wColors);/記錄游戲者和點(diǎn)數(shù)char buf20;itoa(count,buf,10); textout(handle,1,13+2*count,wMenuColor

14、s,1,buf);textout(handle,3,13+2*count,wMenuColors,1,點(diǎn)數(shù):);sum+=i+1;itoa(sum,buf,10);textout(handle,9,13+2*count,wMenuColors,1,buf);else if (ch=32)/更換游戲者sum=0;count+;else if (ch=q | ch=Q) break; if (flag)/隨機(jī)投篩子i=rand() % 6;wColors0=FOREGROUND_RED|FOREGROUND_INTENSITY; rolldice(handle,i+1,row,col,wColor

15、s);Sleep(100);wColors0=0;rolldice(handle,i+1,row,col,wColors); void rolldice(HANDLE hOutput,int n,int col ,int row,WORD wColors)switch(n)case 1: textout(hOutput,row+1,col+1,wColors,1,); break;case 2:textout(hOutput,row+1,col, wColors,1,); textout(hOutput,row+1,col+2,wColors,1,); break;case 3:textout

16、(hOutput,row, col+2,wColors,1,); textout(hOutput,row+1,col+1,wColors,1,);textout(hOutput,row+2,col, wColors,1,); break;case 4:textout(hOutput,row, col, wColors,1,); textout(hOutput,row, col+2,wColors,1,);textout(hOutput,row+2,col, wColors,1,);textout(hOutput,row+2,col+2,wColors,1,); break;case 5:tex

17、tout(hOutput,row, col, wColors,1,); textout(hOutput,row, col+2,wColors,1,); textout(hOutput,row+1,col+1,wColors,1,);textout(hOutput,row+2,col, wColors,1,);textout(hOutput,row+2,col+2,wColors,1,); break;case 6:textout(hOutput,row, col, wColors,1,); textout(hOutput,row, col+1,wColors,1,); textout(hOut

18、put,row, col+2,wColors,1,); textout(hOutput,row+2,col, wColors,1,);textout(hOutput,row+2,col+1,wColors,1,);textout(hOutput,row+2,col+2,wColors,1,); break; default:cout投擲骰子失敗!endl;#include #include #include #include #include colorConsole.hHANDLE initiate();void main(void) HANDLE handle;handle = initi

19、ate(); WORD wColors2;wColors0=FOREGROUND_RED| FOREGROUND_INTENSITY; wColors1=FOREGROUND_RED|FOREGROUND_GREEN| FOREGROUND_INTENSITY; int y=20,x=7; while(x80) int i=_getch(); if (i=w) textout(handle,x,y,wColors,1, ); Sleep(100);textout(handle,x,y,wColors,1, );y-;textout(handle,x,y,wColors,1,); if (i=s

20、) textout(handle,x,y,wColors,1,);Sleep(100);textout(handle,x,y,wColors,1, );y+;textout(handle,x,y,wColors,1,); if (i=d) textout(handle,x,y,wColors,1, ); x+ ; if (i=a) textout(handle,x,y,wColors,1, ); x-; #include #include #include #include #include colorConsole.hHANDLE initiate();void main(void) HAN

21、DLE handle;handle = initiate(); WORD wColors1;wColors0=FOREGROUND_RED| FOREGROUND_INTENSITY; /wColors1=FOREGROUND_RED|FOREGROUND_GREEN| FOREGROUND_INTENSITY; WORD wbackColors1; wbackColors0=FOREGROUND_RED|FOREGROUND_GREEN| FOREGROUND_INTENSITY; for(int j=5;j15;j+) textout(handle,5,j,wbackColors,1,);

22、for(int i=5;i15;i+) textout(handle,25,i,wbackColors,1,); int y=6,x=7; while(x25) int i=_getch(); if (i=w) textout(handle,x,y,wColors,1,); Sleep(100);textout(handle,x,y,wColors,1, );y-;textout(handle,x,y,wColors,1,); if (i=s) textout(handle,x,y,wColors,1,);Sleep(100);textout(handle,x,y,wColors,1, );y

23、+;textout(handle,x,y,wColors,1,); if (i=d) textout(handle,x,y,wColors,1,); x+ ; if (i=a) textout(handle,x,y,wColors,1,); x-; #include #include #include #include #include colorConsole.hHANDLE initiate();void main(void) HANDLE handle;handle = initiate(); WORD wColors1;wColors0=FOREGROUND_RED| FOREGROU

24、ND_INTENSITY; /wColors1=FOREGROUND_RED|FOREGROUND_GREEN| FOREGROUND_INTENSITY; WORD wbackColors1; wbackColors0=FOREGROUND_RED|FOREGROUND_GREEN| FOREGROUND_INTENSITY; for(int j=5;j15;j+) textout(handle,5,j,wbackColors,1,);for(int i=5;i15;i+) textout(handle,25,i,wbackColors,1,); int y=6,x=7; int m=10,

25、n=10; textout(handle,m,n,wColors,1,); while(x25&m25) int i=_getch(); / if(x=m&y=n) if (i=w) if(y=n+2&x=m) textout(handle,x,y,wColors,1,); textout(handle,m,n,wColors,1,); Sleep(100);textout(handle,x,y,wColors,1, ); textout(handle,m,n,wColors,1, );y-;n-; textout(handle,x,y,wColors,1,);textout(handle,m

26、,n,wColors,1,); else textout(handle,x,y,wColors,1,); Sleep(100);textout(handle,x,y,wColors,1, );y-;textout(handle,x,y,wColors,1,); if (i=s) if(y=n-2&x=m) textout(handle,x,y,wColors,1,); textout(handle,m,n,wColors,1,); Sleep(100);textout(handle,x,y,wColors,1, ); textout(handle,m,n,wColors,1, );y+;n+;

27、textout(handle,x,y,wColors,1,);textout(handle,m,n,wColors,1,); else textout(handle,x,y,wColors,1,);Sleep(100);textout(handle,x,y,wColors,1, );y+;textout(handle,x,y,wColors,1,); if (i=d) if(x=m-2) textout(handle,x,y,wColors,1,); textout(handle,m,n,wColors,1,); x+ ; m+; elsetextout(handle,x,y,wColors,

28、1,);x+; if (i=a) if(x=m+2) textout(handle,x,y,wColors,1,); textout(handle,m,n,wColors,1,); x- ; m-; else textout(handle,x,y,wColors,1,); x-; #include #include #include #include #include colorConsole.hHANDLE initiate();void main(void) HANDLE handle;handle = initiate(); WORD wColors1;wColors0=FOREGROU

29、ND_RED| FOREGROUND_INTENSITY; /wColors1=FOREGROUND_RED|FOREGROUND_GREEN| FOREGROUND_INTENSITY; WORD wbackColors1; wbackColors0=FOREGROUND_RED|FOREGROUND_GREEN| FOREGROUND_INTENSITY; for(int j=5;j15;j+) textout(handle,5,j,wbackColors,1,);for(int i=5;i15;i+) textout(handle,25,i,wbackColors,1,); int y=

30、6,x=7; int m=10,n=10; textout(handle,m,n,wColors,1,); while(x25&m25) int i=_getch(); / if(x=m&y=n) if (i=w) if(y=n+2&x=m) textout(handle,x,y,wColors,1,); textout(handle,m,n,wColors,1,); Sleep(100);textout(handle,x,y,wColors,1, ); textout(handle,m,n,wColors,1, );y-;n-; textout(handle,x,y,wColors,1,);

31、textout(handle,m,n,wColors,1,); else textout(handle,x,y,wColors,1,); Sleep(100);textout(handle,x,y,wColors,1, );y-;textout(handle,x,y,wColors,1,); if (i=s) if(y=n-2&x=m) textout(handle,x,y,wColors,1,); textout(handle,m,n,wColors,1,); Sleep(100);textout(handle,x,y,wColors,1, ); textout(handle,m,n,wCo

32、lors,1, );y+;n+;textout(handle,x,y,wColors,1,);textout(handle,m,n,wColors,1,); else textout(handle,x,y,wColors,1,);Sleep(100);textout(handle,x,y,wColors,1, );y+;textout(handle,x,y,wColors,1,); if (i=d) if(x=m-2) textout(handle,x,y,wColors,1,); textout(handle,m,n,wColors,1,); x+ ; m+; elsetextout(han

33、dle,x,y,wColors,1,);x+; if (i=a) if(x=m+2) textout(handle,x,y,wColors,1,); textout(handle,m,n,wColors,1,); x- ; m-; else textout(handle,x,y,wColors,1,); x-; #include #include #include #include #include colorConsole.h #define KEY_UP 72#define KEY_DOWN 80#define KEY_LEFT 75#define KEY_RIGHT 77#define

34、KEY_ESC 27#define MAPW 12 /地圖的寬度#define MAPH 20 /地圖的高度void Init();/初始化工作void Turn(int a4,int w,int h,int *x,int y); /方塊轉(zhuǎn)動(dòng)bool IsAvailable(int a,int x,int y,int w,int h); /判定是否能放下void DrawBlocks(int a,int w,int h,int x,int y,WORD wColors,int nColors);void ClearSquare(int *a,int w,int h,int x,int y);v

35、oid GameOver();void DeleteLine(int mMAPW,int row,int w,int h); /消除一行HANDLE handle;/7種不同形狀的方塊int b744=1,1,1,1,0,2,2,2,2,3,3,0,3,3,0,0,4,4,4,4,0,5,5,5,5, 6,6,6,6, 7,7,7,7 ;WORD SQUARE_COLOR7 = FOREGROUND_RED|FOREGROUND_INTENSITY, FOREGROUND_GREEN|FOREGROUND_INTENSITY,FOREGROUND_BLUE|FOREGROUND_INTENSI

36、TY,FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_INTENSITY,FOREGROUND_RED|FOREGROUND_BLUE|FOREGROUND_INTENSITY,FOREGROUND_GREEN|FOREGROUND_BLUE|FOREGROUND_INTENSITY,FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE|FOREGROUND_INTENSITY ;int mapMAPHMAPW = 0; /保存工作區(qū)的區(qū)域int dx = 24 ; /初始化屏幕時(shí)起始坐標(biāo)int dy = 3;in

37、t main()int score=0; /初始化分?jǐn)?shù)int level=0; /初始化游戲級(jí)別int Num = rand() %7 ; /創(chuàng)建第一個(gè)方塊編號(hào)int nextNum = Num; /保存下一個(gè)方塊編號(hào)int blank; /記錄每個(gè)方塊起始位置int x = 0,y = 0; /記錄游戲開始的相對(duì)坐標(biāo)int a44 = 0; /臨時(shí)使用用來(lái)保存當(dāng)前方塊Init();while(1)for(int i=0;i4;i+) /復(fù)制方塊for(int j=0;j4;j+)if(aij = bnextNumij) blank=i;y = 1- blank;x = 4;/創(chuàng)建下一個(gè)方塊N

38、um = nextNum;ClearSquare(bNum0,4,4,13,13);nextNum = rand() % 7 ;WORD wColors1= SQUARE_COLORnextNum ;DrawBlocks(bnextNum0,4,4,13,13,wColors,1);wColors0 = SQUARE_COLORNum ;DrawBlocks(&a00,4,4,x,y,wColors,1);/顯示分?jǐn)?shù)信息char string5;wColors0=FOREGROUND_RED| FOREGROUND_GREEN|FOREGROUND_INTENSITY;textout(hand

39、le,26+dx,5+dy,wColors,1,itoa(score,string,10);textout(handle,26+dx,9+dy,wColors,1,itoa(level,string,10);int max_delay = 100-10*level; /計(jì)算不同游戲級(jí)別的下落時(shí)間間隔while(1)int delay=0; /延遲量while(delaymax_delay)if(_kbhit() /用if避免按住鍵使方塊卡住int key=_getch();switch (key)case KEY_UP:ClearSquare(&a00,4,4,x,y);Turn(a,4,4,

40、&x,y);wColors0=SQUARE_COLORNum;DrawBlocks(&a00,4,4,x,y,wColors,1);break;case KEY_DOWN:delay=max_delay;break;case KEY_LEFT:if(IsAvailable(&a00,x-1,y,4,4)ClearSquare(&a00,4,4,x,y);x-;wColors0=SQUARE_COLORNum;DrawBlocks(&a00,4,4,x,y,wColors,1);break;case KEY_RIGHT:if(IsAvailable(&a00,x+1,y,4,4)ClearSqu

41、are(&a00,4,4,x,y);x+;wColors0=SQUARE_COLORNum;DrawBlocks(&a00,4,4,x,y,wColors,1);break;case KEY_ESC:exit(EXIT_SUCCESS);break;_sleep(8);delay+;if(IsAvailable(&a00,x,y+1,4,4) /是否能下移ClearSquare(&a00,4,4,x,y);y+;wColors0=SQUARE_COLORNum;DrawBlocks(&a00,4,4,x,y,wColors,1);elseif(y=1) GameOver(); /是否結(jié)束for

42、(int i=0;i4;i+) /放下方塊,更新工作區(qū)for(int j=0;j4;j+)if(aij&(i+y)MAPH-1)&(j+x)MAPW-1) mapi+yj+x=aij;int full,k=0;for(int a=y;imin(a+4,MAPH-1);a+)full=1;for(int j=1;j11;j+)if(!mapij) full=0;if(full) /消掉一行DeleteLine(map,i,MAPW,MAPH);k+;score=score+k;level=min(score/30,9);max_delay=100-10*level;break; return E

43、XIT_SUCCESS;void Init()handle=initiate();srand(2);/time(NULL);/初始化工作區(qū)for(int i=0;i20;i+)mapi0=-2;mapi11=-2;for(int j=0;j12;j+)map0j=-1;map19j=-1;map00=-3;map011=-3;map190=-3;map1911=-3;WORD wColors1=FOREGROUND_RED| FOREGROUND_GREEN|FOREGROUND_INTENSITY;textout(handle,26+dx,3+dy,wColors,1,SCORE);text

44、out(handle,26+dx,7+dy,wColors,1,LEVEL);textout(handle,26+dx,11+dy,wColors,1,NEXT);wColors0=FOREGROUND_RED|FOREGROUND_BLUE|FOREGROUND_INTENSITY;DrawBlocks(&map00,12,20,0,0,wColors,1);textout(handle,dx,dy,wColors,1,);wColors0=FOREGROUND_RED| FOREGROUND_GREEN|FOREGROUND_INTENSITY;textout(handle,dx-16,dy,wColors,1,按任意鍵開始);int ch=_getch();textout(handle,dx-16,dy,wColors,1, );bool IsAvailable(int a,int x,int y,int w,int h)for(int i=max(y,1);iy+h;i+)for(int j=x;jx+w

溫馨提示

  • 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ù)網(wǎng)僅提供信息存儲(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)論