今天才知道,静态成员函数在声明的时候前面加上static,但是在定义的时候不需要加,否则编译时会报错。在这留一笔。
C++中静态成员函数的声明及定义
- No comments yet.
This entry was posted on 2007-08-28, 17:22 and is filed under Happy coding. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.
Fusion theme by digitalnature | powered by WordPress
Entries (RSS) and Comments (RSS) ^
雁过留声