- 博客(1)
- 收藏
- 关注
原创 ISO C++11 doesn't allow conversion from string literal to 'char*'
string类型与char const *类型在做书上的例题是遇到如下问题:int main() { char *pch = "abc"; // caution:ISO C++11 doesn't allow conversion from string literal to 'char*' cout<<pch<<endl; cout<<(void*)pch<<endl; }
2016-06-21 21:14:27 16910
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人