L未若的博客

么心么肺,难得糊涂

error: cast from ‘char*’ to ‘int’ loses precision

编译时出现错误:         error: cast from ‘char*’ to ‘int’ loses precision 原因:程序中存在 char* addrCom; addrCom= ......//赋值 if(-1 == (int)addrCom) //导致编译出错...

2016-08-12 09:28:14

阅读数 1981

评论数 0

warning: format ‘%s’ expects argument of type ‘char *’和warning: backslash and newline separated by

关于程序中产生的警告: 1,echoserv.c:49:2: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’ [-Wformat=] printf("ip = ...

2016-05-27 09:18:12

阅读数 6091

评论数 1

提示
确定要删除当前文章?
取消 删除
关闭
关闭