我怎么可以用?#include #include using namespace std;int main(){string *p;string msg("hello world!");p=&msg;cout << *p << endl;cout << (*p)[0] < (*p)[p->length()-1] << endl;system("pause");return 0;}
string有str()获取char*类型字符串