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

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/29 03:57:11
a value of type
xNPEe4ˣVmB^0UEP](ZQ4D$B/,pZWLs(JT:{v@jfP@# *:m} 5AƑNt>-?6%I~l4i~&_xΒ\ qPDљ+GxCXxq}nwm>hbϒt̝>l8Kb|Sk4wgؚn[W\~uSQʶE~7

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