![]() |
#2
rjsp2015-12-09 09:39
|
#include <iostream>
using namespace std;
class Person{
private:
int a = 10;
public:
void display(){
cout<<"a="<<a<<endl;
}
};
int main(){
Person p;
p.display();
return 0;
}//这样的赋值在vs2015上居然能通过编译并运行。