#include <iostream.h>
void main()
{
int m = 3 ,n =2,i,j;
int **data = new int*[m];
for(i=0;i<m;i++)
{
data = new int[n];
}
for(i =0;i<m;i++)
{
for(j= 0;j<n;j++)
{
data[j] = i*j;
}
}
for(i=0;i<m;i++)
{
for(j=0;j<n;j++)
{
cout<<"data["<<i<<"]["<<j<<"]="<<data[j]<<"\n";
}
}
then ,i want to add a line to the "array"(a array) and give the number to this line which is
m = m+1;
for(i=0;j<n;j++)
{
data[m][j]=(m+2)*j;
}
Is that adding "m += 1" to the code right?