#include<iostream>
using namespace std;
class A{
public:
private:
};
int main(){
}
const成员函数:如果你不想让成员函数修改成员变量的值,就可以把成员函数声明为const
更多详情请点击 http://blog.sina.com.cn/zhaojianjunzjj
#include<iostream>
using namespace std;
class A{
public:
private:
};
int main(){
}
const成员函数:如果你不想让成员函数修改成员变量的值,就可以把成员函数声明为const
更多详情请点击 http://blog.sina.com.cn/zhaojianjunzjj