I simply can't figure them out.
Please don't criticize my code beside the va_list stuff... it doesn't really matter to me.
This is in a template class (template <int N>):
Code:CPolygon (CVertex first, ...) { if (N <= 0) { m_iNumVertices = 0; return; } m_iNumVertices = N; m_Vertices[0] = first; va_list args; va_start (args, first); for (int i = 1; i < m_iNumVertices; i++) m_Vertices[i] = (CVertex) va_arg (args, CVertex); va_end (args); }
[code][/code]tagged by Salem