#具体情况看图,有的编译器上可以运行有的不可以,是不是要在哪里加上一个const
"hello"是个常量字符串,而参数要求char *你可以直接 (*p)->((char * )"hello");
把print()函数的参数改为const char*类型
print()
const char*