hi...i need help with this segment of program....i wanna let user key in (not more than 3 characters) and allows him to backspace
for(i=0;i<3;i++)
{
choice2[i]=getch();
if(choice2[i]!='\b')
{
gotoxy(43+i,17);
putch(choice2[i]);
}
if(choice2[i]=='\b')
{
putch(' ');
gotoxy(43+i-1,17);
i--;
}
if(choice2[i]=='\r')
break;
}