const string &p = "hello"; //这个样子是正确的 string &p = "hello"; //是错误的
初学。
收起
改成如下,如有帮助,请采纳string p = "hello";
报告相同问题?