问题描述
- Height-Speed-Chart传入的坐标为什么为double型,如何在控件类里修改为in型
-
void CChartXYSerie::AddPoints(double* pX, double* pY, unsigned Count)
{
SChartXYPoint* pPoints = new SChartXYPoint[Count];
for (unsigned i=0; i
{
pPoints[i].X = pX[i];
pPoints[i].Y = pY[i];
}
CChartSerieBase::AddPoints(pPoints, Count);
delete pPoints;
}
解决方案
可以把他强转为int类型
时间: 2025-01-14 07:04:56