静态成员函数,可以不通过对象来调用,即没有隐藏的this指针。
virtual函数一定要通过对象来调用,即有隐藏的this指针。
static成员没有this指针是关键!
static function都是静态决议的(编译的时候就绑定了)
而virtual function 是动态决议的(运行时...
文章技术mix呢
2017-11-07
784浏览量
ZeroMQ接口函数之 :zmq_msg_set - 设置消息的性质
zmq_msg_set - 设置消息的性质
Synopsis
int zmq_msg_set (zmq_msg_t *message, int property, int value);
Description
zmq_msg_set()函数会设置message参数指定的消息的属性,属性值由val...
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longe...
[LeetCode] Read N Characters Given Read4 II - Call multiple times 用Read4来读取N个字符之二 - 多次调用
The API: int read4(char *buf) reads 4 characters at a time from a file.
The return value is the actual number of characters read. For example, it ret...