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

 

 ·文件操作的问题    »显示摘要«
    摘要: 代码如下,但vb提示出错; dim t as textstream dim a() as textbox dim b as filesystemobject set b = createobject("scripting.filesystemobject") set t = b.opentextfile("c:\aaa.txt", forreadin......
    摘要: 从a地到b地,可以有几种方案选择:路程最短;换乘车最少;车月票有效等,其中 最短路径好求,有现成算法,但是,我还没有想好换乘车次最少及车月票有效用什么结构 ,但是考虑到整体结构,及结构的公用性,能否指点一下思路?谢谢! ......


,这个东西错在哪儿

set   @j=1   --赋初值  
      while   @j<=@n    
      begin  
          set   @find=1--赋初值find=1  
          set   @already=0--赋初值already=0  
          while   @find>1    
          begin  
            exec   control_qchar   @q_cha   output   --随机产生一个章节  
            select   identity(int,1,1)   as   mid,   q_no   into   #mtemp   FROM   shiti   where   (q_type=@q_type   and    
                q_difficult>@q_difficult-0.51   and   q_difficult<@q_difficult+0.51   and   q_cha=@q_cha   )  
            select   @istart=min(mid),@iend=max(mid)   from   #mtemp   --赋初值@istart,@iend  
            /*保证iValue位于iStart和iEnd之间*/  
            set   @iValue   =   CONVERT(INT,RAND()   *   (@iEnd   -   @iStart   +   1)   +   @iStart)/*产生随机数*/  
            select     @q_no=q_no   from   #mtemp   where   mid=@iValue  
            select     @already=count(*)   from   s_temptable   where     (q_type=@q_type    
                      and   q_no=@q_no     and   s_xh=@xh)      
            if   @already=0       set   @find=0    
            drop   table   #mtemp                    
        end  
        insert   into   s_temptable(s_xh,q_no,q_type)values   (@xh,@q_no,@q_type)  
        set   @j=@j+1        
  每次运行都说我的@q_no为null?  
  我该如何改写?

NO.1   作者: teaism

主要是这一句:  
  select   identity(int,1,1)   as   mid,   q_no   into   #mtemp   FROM   shiti   where   (q_type=@q_type   and    
                q_difficult>@q_difficult-0.51   and   q_difficult<@q_difficult+0.51   and   q_cha=@q_cha   )  
  --加上:  
  select   *   from   #mtemp   --有没有结果?很可能没结果!  
   
 


 ·帮我翻译一下,谢谢    »显示摘要«
    摘要: this ability to apply automatic or manual techniques for demonstrating the relation between pairs of systems can be used during a stepwise refinement software development process. ......
» 本期热门文章:

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