当阅读代码时,发现很多人在类中定义的private变量会采用静态数据,为什么要这样用?什么时候用,这里解释的很好: https://www.runoob.com/w3cnote/cpp-static-usage.htmlhttps://www.runoob.com/w3cnote/cpp-static-usage.html