![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C/C++/Opengl
问之路
个人网站:www.wenzhilu.top
展开
-
C++读取整个文本
第一种方法:读取至std::string的情况:#include string> #include #include std::ifstream t("file.txt"); std::string str((std::istreambuf_iteratorchar>(t)), std::istreambuf_it转载 2018-04-02 11:14:04 · 1314 阅读 · 0 评论 -
boost的signal和solt机制使用入门
boost的signal和solt机制使用入门signal-slot是一个非常方便的接口机制,在Qt和Gtk中广泛使用。boost也实现了一个signal-slot机制。编译包含signal-slot的代码使用signal-slot,必须包含头文件[cpp]view plaincopy#include<boost/signal.hpp>sig...转载 2019-06-11 18:41:08 · 583 阅读 · 0 评论