![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
十年23
这个作者很懒,什么都没留下…
展开
-
349. Intersection of Two Arrays
Given two arrays, write a function to compute their intersection. Example: Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2]. Note: Each element in the result must be unique.The res原创 2016-06-15 21:01:08 · 177 阅读 · 0 评论 -
protobuf介绍以及使用方法用例
概述 protobuf作为网络通信时的消息载体,不仅效率高,而且还加快开发进度,减少了BUG。 但是protobuf消息生成的类,不管是C++\Java还是其他第三方支持的语言C等生成的消息类,都不太适合用于业务逻辑处理(没有100%的不行,如果非要使用message类作为业务逻辑对象,那么耦合性就太高了)。因此很多时候,我们都需要重复定义至少一份业务逻辑对象,至少是客户端和服务器各一份。那么原创 2017-03-14 10:43:20 · 1526 阅读 · 0 评论