随笔分类 -  C/C++

C++ 回调函数
摘要:使用std::function 回调函数 #include <iostream> #include <functional> using namespace std; void readFromFile(const std::string& filename, std::function<void( 阅读全文
posted @ 2024-02-27 08:43 Freedom_lyx 阅读(27) 评论(0) 推荐(0)
C++ 判断IP是否可以ping通
摘要:C++ IP ping 阅读全文
posted @ 2019-12-25 10:57 Freedom_lyx 阅读(1959) 评论(0) 推荐(0)
C++ list结构体变量排序
摘要:以下内容是自己整理的根据结构体里面的不同变量,对list排序的实例,若有问题可以留言。仅供参考。 1 #include <iostream> 2 #include <list> 3 #include <algorithm> 4 5 using namespace std; 6 7 //声明结构体 8 阅读全文
posted @ 2018-08-10 23:04 Freedom_lyx 阅读(5795) 评论(0) 推荐(0)
VS2013 ERROR MSB8020
摘要:error MSB8020: The build tools for Visual Studio 2013 (Platform Toolset = 'v120') cannot be found. To build using the v120 build tools, please install 阅读全文
posted @ 2017-09-14 20:23 Freedom_lyx 阅读(790) 评论(0) 推荐(0)