赞
踩
可以访问全局变量
int num = 10;
int main() {
int num = 5;
cout << num << endl;//5
cout << ::num << endl;//10
}Person::Person(string name, int age) {
this->name = name;
this->age = age;
}
Person::~Person() {
}
string Person::getName() {
}Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。