經安全檢測,此網站為安全網站,請放心前往原始網址!

C++ deprecated conversion from string constant to 'char*' - Stack Overflow

I have a class with a private char str[256]; and for it I have an explicit constructor: explicit myClass(const char *func) { strcpy(str,func); } I call it as: myClass obj("example"); Whe... ... The warning: deprecated conversion from string constant to 'c

stackoverflow.com

網址安全性掃描由 google 提供