![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
清风徐来,水波不兴.
Study study and study, day day up.
展开
-
json
nlohmann::json std::string file_name = "file_name.json"; std::ifstream ifs(file_name, std::ios::in); if( !ifs.good() ) { std::cout << __FILE__ << __LINE__ <&l...原创 2019-12-02 16:36:27 · 84 阅读 · 0 评论 -
std汇总
std::ifstream读整个文件的方法: std::string file_name = "..."; // your file name std::ifstream ifs(file_name, std::ios::in); if( !ifs.good() ) { std::cout << __FILE__ << __L...原创 2019-11-28 19:14:20 · 319 阅读 · 0 评论 -
pcl opencv中flann冲突
1>pcl/kdtree/flann.h第50行// before is this, but it show opencv's this .h file//#include <flann/flann.hpp>#include </usr/include/flann/flann.hpp>2> /usr/include/flann/util/seri...原创 2019-09-03 18:33:31 · 1916 阅读 · 3 评论 -
matlab曲面
http://blog.sina.com.cn/s/blog_794cebfb0100zuj3.htmlhttp://photo.blog.sina.com.cn/showpic.html#blogid=6ff3146301015vxj&url=http://s7.sinaimg.cn/orignal/6ff31463x79c9d56c9c86原创 2018-12-19 10:15:35 · 202 阅读 · 0 评论 -
c++ MVC
引用:https://stackoverflow.com/questions/3984296/model-view-controller-design-pattern-code-exampleHere's a quick example :class Button; // Prewritten GUI elementclass GraphGUI {public: Gra...转载 2018-11-17 15:50:08 · 1052 阅读 · 0 评论 -
解决1130 Host 'localhost' is not allowed to connect to this MySQL server
https://www.jianshu.com/p/eabd09eec0a9转载 2018-08-24 10:23:49 · 1510 阅读 · 0 评论 -
一些宏
宏: MACROifdef MACRO_0elif defined MACRO_1endif原创 2018-05-16 13:35:51 · 121 阅读 · 0 评论 -
qmake 添加额外参数 分开编译
网上有一篇 使用 config:https://www.e-learn.cn/content/wangluowenzhang/147643使用宏 可以: qmake “DEFINES += MACRO_SSSSSS” SSSS.pro原创 2018-05-16 12:45:10 · 1668 阅读 · 2 评论 -
c++ 文件判空
方法(一)FILE* fstream = 0;fstream = fopen(file_name.c_str(), "r");int worked = (fstream ? 1 : 0);//if file is empty?char buf;int read_count = fread(&buf, 1, 1, fstream);std::cout<<__FILE__<<__原创 2017-08-17 21:40:22 · 1590 阅读 · 0 评论 -
c++ 参考网站
http://www.cplusplus.com/原创 2017-08-17 21:03:19 · 293 阅读 · 0 评论