1Qter豆
最佳答案有啊,看文档赛说的很清楚,2-36进制
int QString::toInt ( bool * ok = 0, int base = 10 ) const
Returns the string converted to an int using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.
If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.
If base is 0, the C language convention is used: If the string begins with ...
| ||
2013-9-18 13:54:32
显示全部楼层
评分 | ||
2013-9-18 17:27:07
显示全部楼层
| ||
2013-9-24 21:13:13
显示全部楼层
| ||