wchar 转 int

近来用atoi函数将cstring转化成int型时,转换失败。

主要是因为atoi 只能用于转化ANSI char字符型,不能用于转换宽字符型。

这个需要用_ttoi函数

转载于:https://www.cnblogs.com/zhangshufeng/archive/2011/10/04/2198761.html

猜你喜欢

转载自blog.csdn.net/weixin_33800593/article/details/93532287