![]() |
#2
newyj2008-12-14 18:57
|
大家先看看例子:
class Student
{
private:
char num[6];
char *Get()
{
return num;
}
};
int main()
{ student s1;
s1.Get();
return 0;
}
其中s1.Get()的函数返回值是什么?函数char *Get()前面加个*号是什么用法?怎样才能获得私有数据成员num的数值.