else if(nChar=='\b')
{
pos=pDoc->lines.FindIndex(pDoc->nLineNum);
if(!pos&&pDoc->nLineNum==0) //文本为空则什么都不作
{
}
else//文本不为空则删去一个字符
{
    pDoc->lines.RemoveAt(pos);
}
}
这样写编译没有问题,但是删不了字符,应该怎么写啊?
文本为空是不是用!pos&&pDoc->nLineNum==0判断啊?nLineNum是行数。