回复 8楼 超神级
哪个上面声明了?我怎么没看到?

我总觉得授人以鱼不如授人以渔...
可是总有些SB叫嚣着:要么给代码给答案,要么滚蛋...
虽然我知道不要跟SB一般见识,但是我真的没修炼到宠辱不惊...

2013-09-11 06:16
程序代码:#include <iostream>
using namespace std;
class human
{
public:
void get_stature(){cout<<stature;}
void GetWeight();
void SetStature(int x){stature=x;}
private:
int stature;
int weight();
};
void main()
{
human Mike;
Mike.SetStature(8);
Mike.get_stature();
}
2013-09-11 14:12
2013-09-11 19:41
2013-09-18 18:26
2013-09-19 11:26
2013-09-21 16:13