![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Dev_C++
Lesel
这个作者很懒,什么都没留下…
展开
-
从txt文件中读入数据
目录 1. 使用文件流从txt文本中读数据到矩阵中 2.使用文件流从txt文本中读入一行数据到c[10] 3. 待学习链接 1. 使用文件流从txt文本中读数据到矩阵中 #include <iostream> #include <fstream> using namespace std; /* run this program using the c...原创 2019-03-06 16:44:44 · 5413 阅读 · 0 评论 -
C++ pair的用法
头文件: #include <vector> 特点: pair默认对first升序,当first相同时对second升序。 类模板: template<class T1,class T2>struct pair 参数: T1:第一个参数的数据类型; T2:第二个参数的数据类型。 功能: pair将一对值组合成一个值,这一对值可...原创 2019-03-07 10:07:33 · 412 阅读 · 0 评论