求教这个该怎么改,谢谢
#include <iostream>#include <string>
using std::string;
int main()
{
int *pci_bad=new int[100];
const string *pci_ok=new const string[100]();
return 0;
}
//error C2468: 'new' : cannot allocate 'const'/'volatile' objects (type is 'const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > [100]')
[ 本帖最后由 xl327134332 于 2013-5-25 21:10 编辑 ]