摘要:
cd /opt/usr/bag/rtfbag play 2020-01-02-18-00-05.bag rtfbag play 2... 阅读全文
posted @ 2022-08-19 22:46
luoganttcc
阅读(15)
评论(0)
推荐(0)
摘要:
link 人的认知四个层级: 1、不知道自己不知道 2、知道自己不知道 3、知道自己知道 4、不知道自己知道 第一种人,自以为什么都... 阅读全文
posted @ 2022-08-19 22:46
luoganttcc
阅读(303)
评论(0)
推荐(0)
摘要:
执行此程序之前,必须在和该程序源文件同目录中手动创建一个 in.txt 文件,假设其内部存储的字符串为: 10 20 30 40 ... 阅读全文
posted @ 2022-08-19 22:46
luoganttcc
阅读(20)
评论(0)
推荐(0)
摘要:
通过前面的学习我们知道,C++ 使用 open() 方法打开文件,使用 close() 方法关闭文件。例如(程序一): #inclu... 阅读全文
posted @ 2022-08-19 22:46
luoganttcc
阅读(226)
评论(0)
推荐(0)
摘要:
link vi main1.cpp #include #include #include using namespace std;i... 阅读全文
posted @ 2022-08-19 22:46
luoganttcc
阅读(275)
评论(0)
推荐(0)
摘要:
《C++ open打开文件》一节中,详细介绍了文件流对象如何调用 open() 成员方法打开指定文件。相对应地,文件流对象还可以主动... 阅读全文
posted @ 2022-08-19 22:46
luoganttcc
阅读(330)
评论(0)
推荐(0)
摘要:
在学习了 C++ 文件流对象使用 open() 打开文件后,我们知道它的第二个参数是一个字符串,用来表示文件打开方式,即如果使用 i... 阅读全文
posted @ 2022-08-19 22:46
luoganttcc
阅读(90)
评论(0)
推荐(0)
摘要:
#include #include #include using namespace std;int main(){ ifst... 阅读全文
posted @ 2022-08-19 22:46
luoganttcc
阅读(9)
评论(0)
推荐(0)
摘要:
在对文件进行读写操作之前,先要打开文件。打开文件有以下两个目的: 通过指定文件名,建立起文件和文件流对象的关联,以后要对文件进行操作... 阅读全文
posted @ 2022-08-19 22:46
luoganttcc
阅读(119)
评论(0)
推荐(0)
摘要:
《C++输入输出流》一章中讲过,重定向后的 cin 和 cout 可分别用于读取文件中的数据和向文件中写入数据。除此之外,C++ 标... 阅读全文
posted @ 2022-08-19 22:46
luoganttcc
阅读(37)
评论(0)
推荐(0)

浙公网安备 33010602011771号