07 2022 档案
摘要:1 #include <iostream> 2 #include <thread> 3 4 void Func() 5 { 6 std::cout << "hello" << std::endl; 7 } 8 9 int main() 10 { 11 //ok 12 //std::thread tm
阅读全文
摘要:1. 静态类方法只需要在类内部使用static,类方法实现cpp 内不需要在到函数头部增加static。 2. 联合体 可见域范围 1 #include <iostream> 2 3 //文件全局可见性 4 union Opval 5 { 6 double dis; //运动距离 7 double
阅读全文
摘要:1 #include <iostream> 2 3 using namespace std; 4 5 class TInterface1 6 { 7 public: 8 virtual void Sleep() = 0; 9 }; 10 class TInterface2 11 { 12 publi
阅读全文