void ColForm(ostream ColPage, int **ColData, int ColPower)
{
int n, x, y, mask;
mask = ColPower;
ColPage << "<table border = \"1\">" << endl;
ColPage << "<p>Column Form</p>" << endl;
for(x = 0; x < ColPower; x++)
{
ColPage << "<tr>" << endl;
for(n = 1, y = 0; y < ColPower; y++)
{
for( mask = 0; ColData[x][y] != ColData[x+1][y]; x++)
{
n++;
}
if( ColData[x][y] != ColData[x+1][y] )
{
ColPage << "<th rowspan = \"" << n << "\">" << endl;
ColPage << "<p>" << ColData[x][y] << "</p>" << endl;
ColPage << "</th>" << endl;
n = 1;
}
}
ColPage << "</tr>" << endl;
}
ColPage << "</table>" << endl;
}
I have the access violation error at
for( mask = 0; ColData[x][y] != ColData[x+1][y] ; x++) loop
can anybody tell me the reason, and what should i do to correct it....
thanks

New Topic/Question
Reply




MultiQuote



|