i have made to fix this problem but now i get another problem.
my code is:
void sub_picture(int** picR,int shurot,int amudot,int x1,int y1,int x2, int y2)
int** pic3=new int*[shurot1+1];
for (int x=x1,i=0;x<x2+1;i++,x++) //x=ROWS
for (int y=y1,j=0;y<y2+1 ;j++,y++)//y=COLS
the error is :
Unhandled exception at 0x00eec806 in TARGIL4.exe: 0xC0000005: Access violation reading location 0xfdfdff8d.
i understand what the error means but i have no idea what is not good.
just to explain - i try to take a matrix text file, and to cut it with 2 point to more little matrix then the original.
but my matrix is 400X300 and after pressins F10 hundred times its not geting the error. so i guess its on the high numbers
if i insert short nembers (less then 200) it works..