文档目录
将字符串转换为整数。
int stringToInt(string s);
字符串形式的整数
整数
int a; a=stringToInt("2020"); // a 的值变为整数2020 //注意:字符串参数不是整数,上位机模拟运行时会提示类型错误 a=stringToInt("12AB");//此种字符串参数无法转换成int型数据