c奇技淫巧
FawkesLi
这个作者很懒,什么都没留下…
展开
-
关于std::thread的封装引发的一系列问题及其解答
某日突发奇想,想封装自己的thread,想要实现的效果类似java的thread #include <thread> #include <chrono> using namespace std; class mThread :public std::thread { public: mThread() : thread(mThread::run){ this->...原创 2020-04-08 21:16:14 · 570 阅读 · 0 评论 -
c语言强行面向对象之强行构造函数
众所周知,c语言是一个面向对象的语言 #include <iostream> #include <cstdio> #include <iomanip> #include <string> #include <cstdlib> #include <cstring> #include <queue> #include...原创 2020-04-03 13:17:46 · 183 阅读 · 0 评论