日期:2014-05-18  浏览次数:21048 次

计算器的退格怎么用C#中的string来实现
比如String test="123456";
然后按“←”键test="12345";
请问怎么实现

------解决方案--------------------
if (test.Length > 0)
test = test.Remove(test.Length - 1, 1);