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

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/09 05:57:57

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