for ( i=0;i<a;i++ )
{
qin.Echo();
qin>>b;
if(b == (char)8) { total--;
cuv[i-2]=cuv[i-1];
cuv[i-1]=0;
i--;
} else if(b!=char(13)){ // for key enter
total++;
space++;
cuv[i]=b; } else break;
}
If pressed once or twice "backspace" works, but if pressed for more than two times, not working, first i checked for once "backspace" i make cuv[i-1]=cuv ; cuv=0;.. so i see for twice "backspace"... cuv[i-2]=cuv[i-1]; cuv[i-1]=0;... but i dont know how can i make this for more backspace.
ps: i dont want use strlen,or strchr;