- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
MainWindow::~MainWindow()
{
delete ui;
}
struct t_point {
int i,j;
};
#define stack_len 50000000
long int head, tail;
t_point *steck;
// long int take_border( short int*arr, int h1, int w1, int deep ){
long int take_border( short int*arr, int h1, int w1 ){
long int k=0;
//int i,j,m,n,ii,jj;
int i,j,m,ii,n,jj;
steck = (t_point*) malloc(tail*sizeof(t_point));
if(! steck ){
//ui->teDebug->setText("out of Memory");
return 0;
}
{
QFile file("buffer.dat");
file.open(QIODevice::ReadOnly);
unsigned int size = sizeof(t_point)* tail;
QDataStream in(&file); // we will serialize the data into the file
in.readRawData((char*) steck, size );
}
// <...>
}