摘要: c++有编码问题,char无法直接转int,转换方法很多,下面介绍一个比较简单明了的: char x='8'; int y=x-'0'; string 转 int string a = "20210629"; string s = a.substr(0, 4); int y = atoi(s.c_s 阅读全文
posted @ 2021-06-18 16:33 callcall 阅读(645) 评论(0) 推荐(0) 编辑