I have created a class CMyGraph, which plots points of a graph on screen. The code i am using right now is as follows.
CMyGraph* plotPoint1 = new CMyGraph();
plotPoint1->SetData(0, 64);
But if i have to plot multiple points i do it hardcoded like.. ..
I intent to do this dynamically , i.e. the values will come from the database. And those many points will be plotted. In short those many objects will be created. I am a newbie .. can anyone suggest a solution for that
CMyGraph* plotPoint1 = new CMyGraph();
plotPoint1->SetData(0, 64);
But if i have to plot multiple points i do it hardcoded like.. ..
CMyGraph* plotPoint1 = new CMyGraph();
plotPoint1->SetData(0, 64);
CMyGraph* plotPoint2 = new CMyGraph();
plotPoint2->SetData(0, 64);
CMyGraph* plotPoint3 = new CMyGraph();
plotPoint3->SetData(0, 64);
plotPoint1->SetData(0, 64);
CMyGraph* plotPoint2 = new CMyGraph();
plotPoint2->SetData(0, 64);
CMyGraph* plotPoint3 = new CMyGraph();
plotPoint3->SetData(0, 64);
I intent to do this dynamically , i.e. the values will come from the database. And those many points will be plotted. In short those many objects will be created. I am a newbie .. can anyone suggest a solution for that
Comment