freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

正弦函數(shù)的圖形表示-在線瀏覽

2024-11-01 13:01本頁面
  

【正文】 ****************/ void Initialize()/* 圖形設(shè)備初始化 */ { int GD=VGA。 int ErrorC。 initgraph(amp。GM,)。 if (ErrorC!=0) { printf(Graphics System ERROR)。 } cleardevice()。 settextstyle(TRIPLEX_FONT,0,9)。 setcolor(YELLOW)。 outtextxy(6,470,Press Any Key...)。 沈 陽 航 院 設(shè) 計 用 紙 XI cleardevice()。 setlinestyle(0,0,1)。 setfillstyle(SOLID_FILL,BLUE)。 Title(Function Graphics )。 DrawMenuBar()。 } /****************************************/ int ScreenX(double x)/*數(shù)學座標轉(zhuǎn)換為屏幕坐標 */ /*對于屏幕坐標而言,它的 X 軸坐標與數(shù)學坐標的正方向相同,而 Y 軸的坐標相反 */ { return (316+ZOOM*x+RX*ZOOM)。 } void MoveUp() { if(RY1=15) RY=1。 Inform(MoveUp)。 Draw()。 } void MoveLeft() { if(RX1=15) RX=1。 沈 陽 航 院 設(shè) 計 用 紙 XII Inform(MoveLeft)。 Draw()。 } /****************************************/ /* 圖形縮放 */ void ZoomIn() { if(ZOOM*=80) ZOOM*=。 Inform(ZoomIn)。 Draw()。 } /* 目錄的選擇功能實現(xiàn) */ switch(getch()) case ‘ 0’ : ; break; case ‘ 1’ : ; break; case ‘ 2’ : ; 判斷所輸入的數(shù)據(jù)是否符合要求: void SetA() { do { printf(\nPlease Input A(10~10):)。A)。 }while(A*A100)。 scanf(%f,amp。 if (B*B100) printf(Input Wrong(10~10)! Try Again.\n)。 } void SetC() { do { printf(\nPlease Input C(10~10):)。C)。 }while(C*C100)。 scanf(%f,amp。 if (MaxX*MaxX10000||MaxX=MinX) printf(Input Wrong.(100~100),And MaxXMinX! Try Again.\n)。 } void SetMinX() { 沈 陽 航 院 設(shè) 計 用 紙 XIV do { printf(\nPlease Input Min X(100~100):)。MinX)。 }while(MinX*MinX10000||MaxX=MinX)。這讓我在實踐中對 C 語 言又有了一個全新的認識。尤其是在這次實踐活動中,我的課題: 繪制函數(shù) SinX 的過程中了解了更多的知識,對于 C 語言的繪圖有了一定的掌握。在對C 語言繪制圖形的過程中,讓自己了解到不少東西,如數(shù)學坐標轉(zhuǎn)換成屏幕坐標,菜單欄及歡迎屏幕的制作,圖形的縮放及移動,圖形的顏色和立體感上也有了一定的了解,并可以進行一些簡單的操作等 五、參考文獻 1 譚浩強. C 程序設(shè)計.北京:清華大學出版社, 2020 沈 陽 航 院 設(shè) 計 用 紙 XV 六、 源程序 /* 編譯預(yù)處理 */ include include include include include include define ESC 0x1b define MENU struct menu /**/ /* 菜單結(jié)構(gòu)體 */ struct menu { char Name[16]。 void (*Function)()。 /**/ /* 全局變量 */ int RX=0,RY=0。 int Q=10。 float MaxX=32,MinX=32。 MENU Menus2[6]。 void Initialize()。 void Draw()。 void ZoomIn()。 void Pause()。 void Inform(char * str)。 void DrawRect(int,int,int,int)。 void MoveUp()。 void MoveLeft()。 void SetMaxX()。 void SetB()。 void Setting()。 void ShowMenu(MENU * M,int)。 void MoveRight()。 void StartUp()。 int ScreenY(double)。 /**/ /* 程序開始 */ /****************************************/ main()/* 主函數(shù) */ { /*菜單資源初始化 */ strcpy(Menus[0].Name,Start Now) 。Menus[0].Function=amp。 沈 陽 航 院 設(shè) 計 用 紙 XVII strcpy(Menus[1].Name,Settings) 。Menus[1].Function=amp。 strcpy(Menus[2].Name,Quit) 。Menus[2].Function=NULL。Menus2[0].Value=0 。SetA。Menus2[1].Value=1 。SetB。Menus2[2].Value=2 。SetC。Menus2[3].Value=3 。SetMinX。Menus2[4].Value=4 。SetMaxX。Menus2[5].Value=5 。 Configure()。 Start()。 Pause()。 int GM=VGAHI。 clrscr()。GD,amp。 ErrorC=graphresult()。 exit(1)。 } /****************************************/ void Configure()/* 字符環(huán)境主菜單 */ { do { clrscr()。 printf( \n)。 printf( \n
點擊復制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1