c++ static

2017-06-06  本文已影响17人  Fa1se003

static函数只能访问static变量
static变量不参与继承

image.png

static变量在main初始化之前完成赋值

上一篇 下一篇

猜你喜欢

热点阅读