天速乒乓球地板TS500

图片 1

程序代码如下,希望m=1时,X=100;m=2时,X=1;m为其余值时,X=0;编写如下嵌套循环的程序,然而程序的进行理并了结果总是停留在里面的大循环中,跳不出来,请教大神是如何来头吧?程序代码:#includestdio.h#defineHeight5#defineWidth10intmain(){intm,n;intX;for(m=0;mHeight;m++){for(n=0;nWidth;n++){if((m=1)){X=100;}elseif((m=2)){X=1;}else{X=0;}printf(“m=%dn=%dX=%dn”,m,n,X卡塔尔(英语:State of Qatar);}}return0;}运行结果:m=1n=0X=100m=1n=1X=100m=1n=2X=100m=1n=3X=100m=1n=4X=100m=1n=5X=100m=1n=6X=100m=1n=7X=100m=1n=8X=100m=1n=9X=100m=1n=0X=100m=1n=1X=100m=1n=2X=100m=1n=3X=100m=1n=4X=100m=1n=5X=100m=1n=6X=100m=1n=7X=100m=1n=8X=100m=1n=9X=100m=1n=0X=100m=1n=1X=100m=1n=2X=100m=1n=3X=100m=1n=4X=100m=1n=5X=100m=1n=6X=100m=1n=7X=100m=1n=8X=100m=1n=9X=100m=1n=0X=100m=1n=1X=100m=1n=2X=100m=1n=3X=100m=1n=4X=100m=1n=5X=100m=1n=6X=100m=1n=7X=100m=1n=8X=100m=1n=9X=100m=1n=0X=100m=1n=1X=100m=1n=2X=100m=1n=3X=100m=1n=4X=100m=1n=5X=100m=1n=6X=100m=1n=7X=100m=1n=8X=100m=1n=9X=100m=1n=0X=100m=1n=1X=100m=1n=2X=100m=1n=3X=100m=1n=4X=100m=1n=5X=100m=1n=6X=100m=1n=7X=100m=1n=8X=100m=1n=9X=100m=1n=0X=100m=1n=1X=100m=1n=2X=100m=1n=3X=100m=1n=4X=100

●TPU表层超强耐磨防滑管理 ●高强度聚脂网格布稳固层

楼主想用该插件里的Real-Time4绘制三个电压-时间曲线,插入该插件后能健康绘制出表格背景,但曲线平昔绘制不出来,看了比非常多遍程序感到没啥难题,求大神解决。。。那是起首化函数:BOOLCCurveCanvasDlg::OnInitDialog(卡塔尔{CDialog::OnInitDialog(卡塔尔;RECTrect;GetClientRect(rect卡塔尔国;m_hCanvas=PEcreate(PECONTROL_SGRAPH,WS_VISIBLE|WS_VSCROLL|WS_HSCROLL,rect,m_hWnd,1001);//设置线条数PEnset(m_hCanvas,PEP_nSUBSETS,1);PEnset(m_hCanvas,PEP_nPOINTS,2000);PEnset(m_hCanvas,PEP_nDATETIMEMODE,PEDTM_VB);//Date/TimeModePEnset(m_hCanvas,PEP_bUSINGXDATAII,TRUE);//UsingDoublePrecisionXDataII//Somefunctionalattributes//1440isminutesinadayZoomInterval=(3.0F/1440.0F);//3minutescalezoomintervalZoomSmallInterval=(0.5F/1440.0F);//30secondscaleadjustment//DeterminecurrentdateandtimeinVB’sformat//m_time=CTime::GetCurrentTime();m_petm.nDay=m_time.GetDay();m_petm.nMonth=m_time.GetMonth();m_petm.nYear=m_time.GetYear()-1900;m_petm.nHour=m_time.GetHour();m_petm.nMinute=m_time.GetMinute();m_petm.nSecond=m_time.GetSecond();m_petm.nMilliSecond=0;PEcreateserialdate(StartTime,m_petm,PEDTM_VB);//Extentstoshowalldatapointsdoublemanmaxx;PEnset(m_hCanvas,PEP_nMANUALSCALECONTROLX,PEMSC_MINMAX);PEvset(m_hCanvas,PEP_fMANUALMINX,StartTime,1);manmaxx=StartTime+ZoomInterval;PEvset(m_hCanvas,PEP_fMANUALMAXX,manmaxx,1);PEnset(m_hCanvas,PEP_nMANUALSCALECONTROLY,PEMSC_MINMAX);doubled=1.0F;PEvset(m_hCanvas,PEP_fMANUALMINY,d,1);d=100.0F;PEvset(m_hCanvas,PEP_fMANUALMAXY,d,1);//SetZoomedpartialRangeofXScale//ZoomStart=StartTime;ZoomEnd=ZoomStart+ZoomInterval;PEvset(m_hCanvas,PEP_fZOOMMINX,ZoomStart,1);PEvset(m_hCanvas,PEP_fZOOMMAXX,ZoomEnd,1);d=1.0F;PEvset(m_hCanvas,PEP_fZOOMMINY,d,1);d=100.0F;PEvset(m_hCanvas,PEP_fZOOMMAXY,d,1);PEnset(m_hCanvas,PEP_bZOOMMODE,TRUE);//IfZoomModeisTrue,youwillsee3minutesofdata////IfZoomModeisFalse,youwillseealldatainobject////Clearoutdefaultdata’//NoneedtoclearoutXDatasinceusingXDataII’floatf=0.0F;PEvsetcellEx(m_hCanvas,PEP_faYDATA,0,0,f);PEvsetcellEx(m_hCanvas,PEP_faYDATA,0,1,f);PEvsetcellEx(m_hCanvas,PEP_faYDATA,0,2,f);PEvsetcellEx(m_hCanvas,PEP_faYDATA,0,3,f);//SetVariousOtherProperties///PEnset(m_hCanvas,PEP_bBITMAPGRADIENTMODE,FALSE);PEnset(m_hCanvas,PEP_nQUICKSTYLE,PEQS_DARK_INSET);PEszset(m_hCanvas,PEP_szMAINTITLE,(char*)TEXT(“ScientificReal-TimeExample”));PEszset(m_hCanvas,PEP_szSUBTITLE,(char*)TEXT(“”));PEnset(m_hCanvas,PEP_bNORANDOMPOINTSTOEXPORT,TRUE);PEnset(m_hCanvas,PEP_bFOCALRECT,FALSE);PEnset(m_hCanvas,PEP_bALLOWBAR,FALSE);PEnset(m_hCanvas,PEP_bALLOWPOPUP,FALSE);PEnset(m_hCanvas,PEP_bPREPAREIMAGES,TRUE);PEnset(m_hCanvas,PEP_bCACHEBMP,TRUE);PEnset(m_hCanvas,PEP_bFIXEDFONTS,TRUE);DWORDcol=RGB(0,255,0);PEvsetcell(m_hCanvas,PEP_dwaSUBSETCOLORS,0,col);PEnset(m_hCanvas,PEP_nGRADIENTBARS,8);PEnset(m_hCanvas,PEP_nTEXTSHADOWS,PETS_BOLD_TEXT);PEnset(m_hCanvas,PEP_bMAINTITLEBOLD,TRUE);PEnset(m_hCanvas,PEP_bSUBTITLEBOLD,TRUE);PEnset(m_hCanvas,PEP_bLABELBOLD,TRUE);PEnset(m_hCanvas,PEP_bLINESHADOWS,TRUE);PEnset(m_hCanvas,PEP_nFONTSIZE,PEFS_MEDIUM);//Improvesmetafileexport////PEnset(m_hCanvas,PEP_nDPIX,600);//PEnset(m_hCanvas,PEP_nDPIY,600);PEreinitialize(m_hCanvas);PEresetimage(m_hCanvas,0,0);::InvalidateRect(m_hCanvas,NULL,FALSE);//SetDemo’sRenderEnginetoHybrid//CMDIFrameWnd*pWnd=(CMDIFrameWnd*)AfxGetApp()-GetMainWnd();pWnd-SendMessage(WM_CHANGE_METAFILE,PEPLAYMETAFILE);//InitializeCountersandTimer//m_nRealTimeCounter=1;//m_nSinCounter=1;//SetTimer(2,500,NULL卡塔尔;returnTRUE;//returnTRUEunlessyousetthefocustoacontrol//至极:OCX属性页应再次来到FALSE}那是身处框架函数的反应计时器响应函数中的程序://更新绘图窗口m_dlgCanvas.newy=50+i;m_dlgCanvas.m_time=CTime::GetCurrentTime();m_dlgCanvas.m_petm.nDay=m_dlgCanvas.m_time.GetDay();m_dlgCanvas.m_petm.nMonth=m_dlgCanvas.m_time.GetMonth();m_dlgCanvas.m_petm.nYear=m_dlgCanvas.m_time.GetYear()-1900;m_dlgCanvas.m_petm.nHour=m_dlgCanvas.m_time.GetHour();m_dlgCanvas.m_petm.nMinute=m_dlgCanvas.m_time.GetMinute();m_dlgCanvas.m_petm.nSecond=m_dlgCanvas.m_time.GetSecond();m_dlgCanvas.m_petm.nMilliSecond=0;//将赢得的时辰传给newx2PEcreateserialdate(m_dlgCanvas.newx2,m_dlgCanvas.m_petm,PEDTM_VB);//Shiftdatawhencounterreachesendofdata//if(m_dlgCanvas.m_nRealTimeCounter=1999){floatYData[250]={0};floatXData[250]={0};//memset(YData,0,250*sizeof(float));//memset(XData,0,250*sizeof(double));//ShiftDataby250datapoints,oldest250willbelost.m_dlgCanvas.m_nRealTimeCounter=m_dlgCanvas.m_nRealTimeCounter-250;PEvset(m_hCanvas,PEP_faAPPENDYDATA,YData,250);PEvset(m_hCanvas,PEP_faAPPENDXDATAII,XData,250);}//Storenewvaluesatcurrentindex//PEvsetcellEx(m_hCanvas,PEP_faXDATAII,0,m_dlgCanvas.m_nRealTimeCounter,m_dlgCanvas.newx2);PEvsetcellEx(m_hCanvas,PEP_faYDATA,0,m_dlgCanvas.m_nRealTimeCounter,m_dlgCanvas.newy);//Incrementindexcounter//m_dlgCanvas.m_nRealTimeCounter+=1;////SinCounterisonlytoproducesinwavedata////m_dlgCanvas.m_nSinCounter+=1;//if(m_dlgCanvas.m_nSinCounter30000)//m_dlgCanvas.m_nSinCounter=1;//Ifcurrenttimeisbeyondzoommax,there-adjustzoommax//if(m_dlgCanvas.newx2m_dlgCanvas.ZoomEnd){m_dlgCanvas.ZoomEnd=m_dlgCanvas.ZoomEnd+m_dlgCanvas.ZoomSmallInterval;m_dlgCanvas.ZoomStart=m_dlgCanvas.ZoomEnd-m_dlgCanvas.ZoomInterval;PEvset(m_hCanvas,PEP_fZOOMMINX,m_dlgCanvas.ZoomStart,1);PEvset(m_hCanvas,PEP_fZOOMMAXX,m_dlgCanvas.ZoomEnd,1);PEvgetcellEx(m_hCanvas,PEP_faXDATAII,0,1,m_dlgCanvas.dx);PEvset(m_hCanvas,PEP_fMANUALMINX,m_dlgCanvas.dx,1);PEvset(m_hCanvas,PEP_fMANUALMAXX,m_dlgCanvas.ZoomEnd,1);}//Updateimageandforcepaint//PEreinitialize(m_hCanvas);PEresetimage(m_hCanvas,0,0);::InvalidateRect(m_hCanvas,NULL,FALSE);CFrameWndEx::OnTimer(nIDEvent);

宝石红 长20m×宽1.8m×厚5.0mm

发表评论

电子邮件地址不会被公开。 必填项已用*标注

网站地图xml地图