C++中静态成员函数的声明及定义

  今天才知道,静态成员函数在声明的时候前面加上static,但是在定义的时候不需要加,否则编译时会报错。在这留一笔。

This entry was posted in Happy coding. Bookmark the permalink.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>