![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
bdfyb
这个作者很懒,什么都没留下…
展开
-
C++中int型与string型互相转换
int转string int n = 0; std::stringstream ss; std::string str; ss ss>>str; string转int std::string str = "123"; int n = atoi(str.c_str()); #include "stdafx.h" #include string> #include转载 2015-11-20 20:09:45 · 316 阅读 · 0 评论 -
Mac快捷使用二:Terminal快捷键
Command+ K 清屏(全清) ctrl + l 清屏(仅将当前命令行移到最上端) Command+ T 新建标签 Command+W 关闭当前标签页 Command+ S 保存终端输出 Command+ D 垂直分隔当前标签页 Command+ Shift + D 水平分隔当前标签页 Command+ shift + {或}向左/向右切换标签 contro转载 2016-03-12 10:46:09 · 343 阅读 · 0 评论 -
字符流stringstream
以下内容转自:http://www.usidcbbs.com/read-htm-tid-1898.html C++引入了ostringstream、istringstream、stringstream这三个类,要使用他们创建对象就必须包含sstream.h头文件。 istringstream类用于执行C++风格的串流的输入操作。 ostringstream类用于执行C++风格的串流转载 2017-01-05 11:44:34 · 525 阅读 · 0 评论