文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
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;
}
函数前面要加类型。
相关阅读 更多 +
排行榜 更多 +
PvZ戴夫的时空冒险重置

PvZ戴夫的时空冒险重置

策略塔防 下载
PVZTV雪版阳光加50

PVZTV雪版阳光加50

策略塔防 下载
双刃战士雪姐

双刃战士雪姐

冒险解谜 下载