a value of type "char const *" cannot be used to initialize an entity of type "unsigned char *"

来源:学生学帮网 编辑:学帮网 时间:2024/06/21 09:23:31

a value of type "char const *" cannot be used to initialize an entity of type "unsigned char *"

指针类型不同,不能进行赋值,一般只是警告吧,进行强制类型转换就没问题了,只是注意不要因为强制类型转换造成信息丢失,先查阅一些有关强制类型转换的资料吧!