原创 C++ 多文件友元類函數編程

文件1:tt,h tt.cpp //tt.h #pragma once #include "hufriend.h" class tt { public:     friend void hufriend::lookHumanRoom(tt

原创 Ubuntu16.04 安裝boost的命令

在終端輸入: sudo apt-get install libboost-all-dev, 即可

原创 C++11-thread(join detach joinable)

#include <iostream> #include <thread> //c++11中 thread的頭文件 C++11中的很多函數都放到了std庫裏面 void testThread() {    std::cout << "th