我按以下转换总是提示deprecated conversion from string constant to char*ifstream in;string a;while(in.good()){in>>a;char *p=a.data();}
还是提示deprecated conversion from string constant to char*啊