C2440: 没法从"const char *" 转换为"char *",E0144:"const char *" 类型的值不能用于初始化 "char *" 类型的实体

VS2017: 在singer类的私有成员中定义了一个静态数组:web protected: enum { other, alto, contralto, soprano, bass, baritone, tenor }; enum { Vtypes = 7 }; private: static char *pv[Vtypes]; int voice; 在对其进行初始化时,遇到了错误
相关文章
相关标签/搜索