memory mapping??

I have a table of two dimensions where i stock integer parameters I also have a variable I wants to traverse the table to post my parameters and to modify them if need .

when posting the values are false!!

and when I modify them , at the reset of becomes again like front!!

an idea??


static int para[5][10] = { 1,1,30,100, 100, 10, 10, 10, 1, 1,

2,1,20,150, 120, 10, 10, 10, 0,1,

3,1,20,200, 140, 10, 10, 10, 0, 1,

4,1,20,250, 150, 10, 10, 10, 0, 0,

5,1,20,300, 160, 10, 10, 10, 0, 0};

modif (int n , int m)

{

int val;

val = para[n][m];----------------??

while(1)

{

if (!(IOPIN0 & (1<<plus)))

{

mili(500);//wait

val++;---------------------?? my problem

sprintf (buf, “%d”, m+1);

sprintf (buf1, “%d”, val);

home();//lcd commande

out2para ( mess,buf,buf1);// mess is string

}

if (!(IOPIN0 & (1<<moins)))

{

mili(500);

if (val >0)

{

val–;

sprintf (buf, “%d”, m+1);

sprintf (buf1, “%d”, val);

home();

affiche2para ( mess,buf,buf1);

}

}

if (!(IOPIN0 & (1<<valide)))

{

mili(500);

para[n][m]=val;// to save the new value in para[n][m]

home();

affiche(" fin de config");

goto rep3;

}

}

rep3:

}


is it a memory problem??

thank you for assistance