#include
using namespace std;
class A
{
private:
int x;
public:
A(int a) :x(a){}
void count(){ cout << x++; }
};
int main()
{
//原代码
// A *a;
// a->count();改错代码
A *a;
A b(2);
a = &b;
a->count();
system("pause");
return 0;
}
阅读(158721) | 评论(0) | 转发(0) |