当前位置:首页
开发技术指南» 文章正文
    引言:

 ·变量传递的问题    »显示摘要«
    摘要: 有两个类其中一个类想得到另一个类中的一个变量应该怎么写? 如: class a{ public static void one() { int i = 1; } } class b{ public static void second() { 在这里怎么才能得到a类中i的值 } } ......
 ·下面的代码怎么转换数据类型    »显示摘要«
    摘要: 便于大家指教,我把主要的写出来: public class person { public enum sex : byte { male = 0, female } public sex sex; public person() { console.write("性别:"); sex=(sex)console.readline......


高分:SOLSOCKET,SORCVTIMO,SOSNDTIMEO,IPPOTOTCP,TCPNODELAY这些是在哪个头文件定义的呢

我已经包含了下列这些头文件      
  #include     <unistd.h>          
  #include     <sys/types.h>      
  #include     <sys/socket.h>      
  #include     <sys/ioctl.h>      
  #include     <netinet/in.h>      
  #include     <arpa/inet.h>      
  #include     <netdb.h>      
  但是编译时还是提示这些变量未定义,windows里这些变量都在winsock2.h中预定义的,      
  linux里需要自己预定义这些量吗?      
  如果不需要,是在哪个头文件定义的呢?

NO.1   作者: boxban

#include     <netinet/in.h>  
  #include   <netinet/tcp.h>   //   for   TCP_NODELAY  
  int   main()  
  {  
                  int   a[]   =   {SOL_SOCKET,SO_RCVTIMEO,SO_SNDTIMEO,IPPROTO_TCP,TCP_NODELAY};  
   
                  return   0;  
  }  
   
  另:你的标题中有拼写错误   ^_^  
   
 


    摘要: 静态成员函数中无法使用成员变量吗? static bool callback enumwindowsproc(hwnd hwnd,lparam lparam); bool callback cxfhidedlg::enumwindowsproc(hwnd hwnd,lparam lparam) {这里想用m_list.addstring("888888888");为什么......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE