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.. ..
CMyGraph* plotPoint1 = new CMyGraph();
plotPoint1->SetData(0, 64);
CMyGraph* plotPoint2 = new CMyGraph();
plotPoint2->SetData(0, 64);
...