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

正文內(nèi)容

正弦函數(shù)的圖形表示-文庫(kù)吧資料

2025-07-06 22:53本頁(yè)面
  

【正文】 *****************************/void StartUp()/* 圖形環(huán)境啟動(dòng)*/{ Initialize()。Menus2[5].Function=NULL。 strcpy(Menus2[5].Name,Back) 。Menus2[4].Function=amp。 strcpy(Menus2[4].Name,Set MaxX) 。Menus2[3].Function=amp。 strcpy(Menus2[3].Name,Set MinX) 。Menus2[2].Function=amp。 strcpy(Menus2[2].Name,Set C) 。Menus2[1].Function=amp。 strcpy(Menus2[1].Name,Set B) 。Menus2[0].Function=amp。 strcpy(Menus2[0].Name,Set A) 。Menus[2].Value=2 。Setting。Menus[1].Value=1 。StartUp。Menus[0].Value=0 。double Function(double)。int ScreenX(double)。void Configure()。void Quit()。int MenuInput(MENU * M,int)。void SetC()。void SetA()。void SetMinX()。void MoveDown()。void DrawAxis(int,int,int,int)。void DrawMenu(MENU * m,int,int,int,int)。void Title(char * str)。void ZoomOut()。void DrawMenuBar()。void Start()。/**//* 函數(shù)聲明*/void m()。/* 菜單*/MENU Menus[3]。float A=1,B=1,C=0。double ZOOM=10。}。 int Value。使得自己可以運(yùn)用程序畫(huà)出簡(jiǎn)單的函數(shù)圖象。這讓我在了解到自己的不足的同時(shí),使自己對(duì)C語(yǔ)言的掌握又加深了一步。四、個(gè)人總結(jié)通過(guò)這次C語(yǔ)言的課設(shè)實(shí)踐活動(dòng),使我充分的體會(huì)到自己的不足。 if (MinX*MinX10000||MaxX=MinX) printf(Input Wrong.(100~100),And MinXMaxX! Try Again.\n)。 scanf(%f,amp。 }while(MaxX*MaxX10000||MaxX=MinX)。MaxX)。}/****************************************//* 區(qū)間設(shè)置*/void SetMaxX(){ do { printf(\nPlease Input Max X(100~100):)。 if (C*C100) printf(Input Wrong(10~10)! Try Again.\n)。 scanf(%f,amp。 }while(B*B100)。B)。}void SetB(){ do { printf(\nPlease Input B(10~10):)。 if (A*A100) printf(Input Wrong(10~10)! Try Again.\n)。 scanf(%f,amp。 Inform(ZoomOut)。}void ZoomOut(){ if(ZOOM/=) ZOOM/=。 Draw()。 Inform(MoveRight)。}void MoveRight(){ if(RX+1=15) RX+=1。 Draw()。 Inform(MoveDown)。}void MoveDown(){ if(RY+1=15) RY+=1。 Draw()。}int ScreenY(double y){ return (211ZOOM*y+RY*ZOOM)。 Inform(Ready!)。 DrawRect(3,465,636,476)。 bar(1,1,638,12)。 bar(0,0,639,479)。 setfillstyle(SOLID_FILL,7)。 getch()。 settextstyle(0,0,1)。 outtextxy(120,180,Wele)。/****************************************/void Start()/* 歡迎屏幕及視圖初始化*/{ setcolor(RED)。 exit(1)。 ErrorC=graphresult()。GD,amp。 clrscr()。 int GM=VGAHI。 Pause()。 Start()。 Inform(MoveRight)。}void MoveRight(){ if(RX+1=15) RX+=1。 Draw()。 Inform(MoveDown)。}void MoveDown(){ if(RY+1=15) RY+=1。 Draw()。 Inform(ZoomOut)。}void ZoomOut(){ if(ZOOM/=) ZOOM/=。 Draw()。double Function(double x) {return (A*sin(B*x)+C)。 }}int ScreenX(double x){ return (316+ZOOM*x+RX*ZOOM)。 y2=Function(x+)。x=MaxX。 setlinestyle(0,0,1)。 DrawAxis(MaxX,MaxY,MinX,MinY)。 MaxY=211/ZOOM。 setfillstyle(1,7)。 DrawRect(3,37,636,460)。} }}void Draw(){ double x,y,y2。i=maxy。i++) { if(i%10==0) {line(ScreenX(i),ScreenY(1),ScreenX(i),ScreenY(1))。 for(i=minx。 line(ScreenX(minx),ScreenY(0),ScreenX(maxx),ScreenY(0))。}繪制函數(shù)圖象及功能模塊圖void DrawAxis(int maxx,int maxy,int minx,int miny){ int i。 }/***************
點(diǎn)擊復(fù)制文檔內(nèi)容
電大資料相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1