//先定义一个string类型的函数
String a;
int b = atoi(a.c_str()); //使用函数atoi
//当然想转换为其他函数
uint32_t b atoi(a.c_str()); //该效果也是可以的
如何将string类型的数据转换成uint32_t的情况
最新推荐文章于 2023-08-09 15:26:46 发布
//先定义一个string类型的函数
String a;
int b = atoi(a.c_str()); //使用函数atoi
//当然想转换为其他函数
uint32_t b atoi(a.c_str()); //该效果也是可以的