2016年10月30日

C++中int转为char 以及int 转为string和string 转int和字符串的split

摘要: 1、对于int 转为char 直接上代码: 正确做法: 不要想当然以为(char)b 就可以,在GCC下这是不行的,推荐用_itoa,标准库函数 2、对于int 转string 直接用函数to_string 3、对于string 类型的变量input转int 4、字符串的split,分两种 一、用空 阅读全文

posted @ 2016-10-30 20:25 Joker_88 阅读(24996) 评论(0) 推荐(0) 编辑

导航