#include <iostream> using namespace std; class A { public: int getv() { return 2; } }; int main () { A* k = NULL; cout << k->getv() << endl; return 0; }
点赞
牛客网
牛客企业服务