2021年4月6日

摘要: 总结: 1.不要对临时变量进行改变。要传递临时变量,得用常量引用。 2. 当引用不需要更改时,用const引用。 问题: struct Sales_data { Sales_data() = default; Sales_data(std::string &str){} Sales_data& co 阅读全文
posted @ 2021-04-06 11:39 tycoon3 阅读(931) 评论(0) 推荐(0)
摘要: #include <iostream> #include <future> #include <thread> using namespace std; class Person { public: Person(int v) { value = v; std::cout << "Cons" <<v 阅读全文
posted @ 2021-04-06 09:29 tycoon3 阅读(21100) 评论(0) 推荐(0)

导航