#具体情况看图,有的编译器上可以运行有的不可以,是不是要在哪里加上一个const
收起
"hello"是个常量字符串,而参数要求char *你可以直接 (*p)->((char * )"hello");
报告相同问题?