摘要: 1,利用atoi或者stoi进行转换 atoi 将char中存储的数字变为int类型,若string可以string.c_str()后再使用 越界会导致溢出 stoi 将string中存储的数字变为int类型 越界会导致运行错误 string s1="1654564564564512451",s2= 阅读全文
posted @ 2022-03-22 23:05 ACtoYou 阅读(182) 评论(0) 推荐(0)