这段代码

char *p[] = { "Nanjing","Beijing","Wuhan","Shenyang" };

在CodeBlocks中运行是正常的,但是在Visual Studio就不让编译了,提示

Error (active) E0144 a value of type "const char " cannot be used to initialize an entity of type "char "

这是啥原因呢,难道VS下必须加const吗