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; 在對其進行初始化時,遇到了錯誤
相關文章
相關標籤/搜索