stdarg, checking for # of entered arguments
How would I go about checking that the number of arguments entered is less than m_iDimension? I searched on MSDN, and I tried something like sizeof(vaList)/sizeof(double) < m_iDimension but that didn't seem to work.
void CMatrix::SetRow(unsigned short iRowNum, ...)
if (m_pdMatrixData == NULL) return;
// Error Checking;
// Variable length argument lists... defined in stdarg.h;
for (int i = 0; i < m_iDimension; i++)
m_pdMatrixData[iRowNum][i] = va_arg(vaList, double);
Any help would be much appreciated.