摘要: 1, #include<iostream> 2 2 #include<string> 3 3 using namespace std; 4 4 class test{ 5 5 int i; 6 6 public: 7 7 test(int i){ 8 8 cout << "test(int i)" 阅读全文
posted @ 2019-11-17 22:35 刘大侠GG_B 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 using namespace std; 3 class test{ 4 int mvalue; 5 public: 6 test(int i){ 7 mvalue = i; 8 } 9 int value(){ 10 return mvalue; 11 阅读全文
posted @ 2019-11-17 21:59 刘大侠GG_B 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 同步就是你叫我去吃饭,我听到了就和你去吃饭; 如果没有听到,你就不停的叫,直到我告诉你听到了,才一起去吃饭。异步就是你叫我,然后自己去吃饭,我得到消息后可能立即走,也可能等到下班才去吃饭。 所以,要我请你吃饭就用同步的方法,要请我吃饭就用异步的方法,这样你可以省钱。 同步是指:发送方发出数据后,等接 阅读全文
posted @ 2019-11-17 17:27 刘大侠GG_B 阅读(4802) 评论(0) 推荐(0) 编辑