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

 

 ·如何实现驱动程序内延时    »显示摘要«
    摘要: 驱动程序中,如果需要延时一段时间,并且将时间片让出.就象 sleep一样. 在驱动程序中能实现吗? ......
    摘要: 今天我在一个网站上看到一篇文,说在网上可以挣到钱,是不是真的能啊。 ......


换行问题

 
  ansistring   a1="12345",a2="67890"   ;  
  int   Length,LogHandle       ;  
        Length   =   strlen(a1.c_str());  
        LogHandle   =   open("c:\a.log",O_RDWR   |   O_APPEND   |   O_TEXT)   ;  
        write(LogHandle,a1.c_str(),Length);  
        close(LogHandle)   ;  
        LogHandle   =   open("c:\a.log",O_RDWR   |   O_APPEND   |   O_TEXT)   ;  
        Length   =   strlen(a2.c_str());  
        write(LogHandle,a2.c_str(),Length   );  
        close(LogHandle)   ;    
  结果:  
  1234567  
  890  
  我要得结果:  
  12345  
  67890  
   
  怎么改?可得到我要得结果。  
   
 

NO.1   作者: Libran

AnsiString   a1="12345",a2="67890"   ;  
  int   Length,LogHandle       ;  
        Length   =   strlen(a1.c_str());  
        LogHandle   =   open("c:\\a.log",   O_RDWR   |   O_APPEND   |   O_TEXT)   ;  
        write(LogHandle,a1.c_str(),Length);  
        close(LogHandle)   ;  
        LogHandle   =   open("c:\\a.log",   O_RDWR   |   O_APPEND   |   O_TEXT)   ;  
        Length   =   strlen(a2.c_str());  
        write(LogHandle,"\n",1);     //这里插个换行进去就行了  
        write(LogHandle,a2.c_str(),Length   );  
        close(LogHandle);


 ·大家帮我看看到底有什么错误    »显示摘要«
    摘要: create or replace package jutipackage as type centk is ref cursor; end jutipackage; / 程序包已创建 create or replace function thni (pltr in varchar2,outrs jutipackage.centk) return outrs jutipackage.cen......
» 本期热门文章:

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