Original Post
My biggest question is how I would replace code like this with a vector:
class CObject
{
public:
virtual HRESULT Render() = 0;
CObject* m_pNext;
};
My other questions are:
->Is there anyway to access the data members of a vector class without setting a pointer:
vector<POINT> Point;
POINT AddPoint(int x, int y)
{
POINT pt;
pt.x = x;
pt.y = y;
return pt;
}
Point.push_back(AddPoint(3,5));
MoveTo(Point[0].x,Point[0].y);
Second would be how would I go about using push_back() without overriding a constructor or making a function like above.
Thanks in advance!
/*
I use DirectX 8.1 and C++ (Microsoft Visual C++ 6.0 Professional edition)
*/