说好的private呢?0变250了! 这怎么搞??? #include <stdio.h> class t { private: // int a; int *p; public: t() { a = 0; p = &a; } int *getp() {return p;} void printa(){printf("%d\n",a);} ~t() {} }; int main() { t a; a.printa(); int *p=a.getp(); *p=250; a.printa(); }