![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
luckywaynexu
https://github.com/luckywaynexu/
展开
-
C++ 各种类型转换,char,char* , string,int互转
char 转 stringconst char c = ‘a’;string s;s.push_back(c);char[ ] 转 stringchar* 转 string char* p = "hello world", string str = p string 转 char[ ]string 转 char*string str = ”hello world“...原创 2019-07-23 22:11:35 · 250 阅读 · 0 评论 -
C++字符串逆向输出几种方法
1、逆向迭代器2、用栈3、交换函数原创 2019-07-25 15:49:14 · 2205 阅读 · 0 评论