c++ 中 static 成员 和 函数

好处

  对象共享变量,属于类的。

关键点

  成员声明和定义的位置。

  静态函数没有 this 指针。

posted @ 2018-08-21 15:56  cp1usplus  阅读(94)  评论(0编辑  收藏  举报