文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>forbids declaration of `tcpBind' with no type

forbids declaration of `tcpBind' with no type

时间:2010-08-30  来源:orchisan

ANSI C++ forbids declaration of `tcpBind' with no type

CTcpTrans::tcpBind(int sockfd, struct sockaddr *my_addr, int addrlen)
{
    int ret;
   
    ret = bind(sockfd, my_addr, addrlen);
   
    return ret;
}
改为
int CTcpTrans::tcpBind(int sockfd, struct sockaddr *my_addr, int addrlen)
{
    int ret;
   
    ret = bind(sockfd, my_addr, addrlen);
   
    return ret;
}
函数前面要加类型。
相关阅读 更多 +
排行榜 更多 +
幸运硬币官方正版下载

幸运硬币官方正版下载

休闲益智 下载
宝宝来找茬手机版 v9.86.00.00 安卓版

宝宝来找茬手机版 v9.86.00.00 安卓版

休闲益智 下载
翻滚飞机大战最新版 v1.0.4 安卓版

翻滚飞机大战最新版 v1.0.4 安卓版

飞行射击 下载