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

 

    摘要: 劳烦各位,那位能告诉我怎样获取一个菜单弹出后所在的位置(相对于桌面)?包括菜单中的第一级、第二级、第n级子菜单的位置。100分为谢,嫌分少了还可以在加!先谢谢了。 ......
 ·判定图的同构算法    »显示摘要«
    摘要: 谁知道一些用于判定图的同构的算法,最好是复杂度等于或小于多项式(最坏),当然有线性(平均)的更好。 ......


遇到一个PRO*C预编译错误,请指点

在我的程序里有:  
  #include   <netinet/in.h>  
  将其去掉后,就没错误。请问是不是少包含了什么库文件,我的是这样的:  
  #include   <stdio.h>  
  #include   <stdlib.h>  
  #include   <sys/socket.h>  
  #include   <netinet/in.h>  
  #include   <netdb.h>  
  #include   <arpa/inet.h>  
  #include   <unistd.h>  
   
  错误如下:  
  Error   at   line   0,   column   0   in   file   ChkYdAcc.pc  
  PCC-F-02102,   Fatal   error   while   doing   C   preprocessing  
  Error   at   line   280,   column   10   in   file   /usr/include/netinet/in.h  
        280     uint64_t   ntohll(uint64_t);  
        280     .........1  
        280     PCC-S-02201,   Encountered   the   symbol   "ntohll"   when   expecting   one   of   the  
                  following:  
   
                        ;   ,   =   (   [  
                  The   symbol   ";"   was   substituted   for   "ntohll"   to   continue.  
   
  Error   at   line   281,   column   10   in   file   /usr/include/netinet/in.h  
        281     uint64_t   htonll(uint64_t);  
        281     .........1  
        281     PCC-S-02201,   Encountered   the   symbol   "htonll"   when   expecting   one   of   the  
                  following:  
   
                        ;   ,   =   (   [                  
                  The   symbol   ";"   was   substituted   for   "htonll"   to   continue.  
 

NO.1   作者: ajiefudan

proc的程序最好跟别的分开,写成多个程序,编译成c文件后,然后跟别的文件一起编译连接,这样可以避免很多麻烦。

NO.2   作者: dgj

ajiefudan(阿杰)   说的极是  
  proc的编译过程很糟糕的!!!!  
  你最后把ORACLE的低层操作用PROC封装成函数,然后在别的程序里就不要出现PROC了。  
  比如:  
  orc_commit();  
  ora_rollback();  
  ora_connect();  
  ora_disconnect();  
  ora_select();  
  ora_query();     //   for     insert,update,delete    
 


 ·如何让两个checklistbox内容同步    »显示摘要«
    摘要: 如何让两个checklistbox内容同步? 我想让一个checklistbox中的内容被选中时,另一个中也同样被选中,一个中的被 check时,另一个也被check,它们中的内容是一样的. ......
» 本期热门文章:

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