近来用atoi函数将cstring转化成int型时,转换失败。 主要是因为atoi 只能用于转化ANSI char字符型,不能用于转换宽字符型。 这个需要用_ttoi函数 转载于:https://www.cnblogs.com/zhangshufeng/archive/2011/10/04/2198761.html