#include <iostream>
using namespace std;
class B24 {
public:
int say() {
cout << "B say" << endl;
return 0;
}
~B24() {
cout << "B destructor" << endl;
}
static void print(){
printf("123\n");
}
};
int main() {
B24::print();
return 0;
}
C++ static静态函数
最新推荐文章于 2024-05-16 09:13:13 发布