C强制访问类的私有成员 #include class A { private: char *str; public: A(): str("nothing"){}; }; int main() { A a; return 0; }
c++各种经典笔试题 char *const cp; ( * 读成 pointer to ) cp is a const pointer to char const char *p; p is a pointer to const char; char const *p;