a value of type "char const *" cannot be used to initialize an entity of type "unsigned char *"
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/04 02:40:50
avalueoftype"charconst*"cannotbeusedtoinitializeanentityoftype"unsignedchar*"avalueoftype"charconst*
a value of type "char const *" cannot be used to initialize an entity of type "unsigned char *"
a value of type "char const *" cannot be used to initialize an entity of type "unsigned char *"
a value of type "char const *" cannot be used to initialize an entity of type "unsigned char *"
指针类型不同,不能进行赋值,一般只是警告吧,进行强制类型转换就没问题了,只是注意不要因为强制类型转换造成信息丢失,先查阅一些有关强制类型转换的资料吧!