c/c++ code reading

i am quite new to c and c++ programming.i want to know step by step detail of following code being posted.please write comments in each line of the code.


while(fin)
{

for(int i=0;i<2;i++)
{ fin>>strg;}

data[count]=new double*[4];
data[count][0]=new double[3];
data[count][1]=new double[3];
data[count][2]=new double[3];
data[count][3]=new double[3];

for(j=0;j<3;j++)
fin>>data[count][0][j];
for(j=0;j<3;j++)
fin>>strg;
for(k=0;k<3;k++)
fin>>data[count][1][k];
fin>>strg;
for(l=0;l<3;l++)
fin>>data[count][2][l];
fin>>strg;
for(m=0;m<3;m++)
fin>>data[count][3][m];
fin>>strg>>strg;
count++;
}
Last edited on
Topic archived. No new replies allowed.