锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲乱码中文字幕小综合,精品国产日韩亚洲一区91,亚洲一日韩欧美中文字幕在线http://www.tkk7.com/lzj520/zh-cnSat, 10 May 2025 12:17:43 GMTSat, 10 May 2025 12:17:43 GMT60091118姹傛潹杈変笁瑙掍腑鐨勯」http://www.tkk7.com/lzj520/archive/2009/11/18/302812.htmllzj520lzj520Wed, 18 Nov 2009 08:11:00 GMThttp://www.tkk7.com/lzj520/archive/2009/11/18/302812.html   int r=0;
  if(l==1|n==1|l==n){
   return 1;
  }else{
  return recursion(l-1,n-1)+recursion(l-1,n);
  }
 }

public static void main(String[] args){
System.out.println(recursion(7,4));
}

lzj520 2009-11-18 16:11 鍙戣〃璇勮
]]>
090505 james閭歡鑷姩璺戝幓spam box涓嬮潰鐨勯棶棰?/title><link>http://www.tkk7.com/lzj520/archive/2009/05/05/269027.html</link><dc:creator>lzj520</dc:creator><author>lzj520</author><pubDate>Tue, 05 May 2009 09:18:00 GMT</pubDate><guid>http://www.tkk7.com/lzj520/archive/2009/05/05/269027.html</guid><wfw:comment>http://www.tkk7.com/lzj520/comments/269027.html</wfw:comment><comments>http://www.tkk7.com/lzj520/archive/2009/05/05/269027.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/lzj520/comments/commentRss/269027.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/lzj520/services/trackbacks/269027.html</trackback:ping><description><![CDATA[<p>瑙e喅鐢╦ames鏀墮偖浠舵椂閭歡鑷繁璺戝幓浜唖pam box涓嬮潰鐨勯棶棰橈紝鎶婁笅闈㈣繖孌墊敞閲婃帀灝卞彲浠ヤ簡銆?/p> <p><mailet match="InSpammerBlacklist=dnsbl.njabl.org."<br />                  class="ToProcessor"><br />            <processor> spam </processor><br />            <notice>550 Requested action not taken: rejected - see http://njabl.org/ </notice><br /> </mailet><br /> </p> <img src ="http://www.tkk7.com/lzj520/aggbug/269027.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/lzj520/" target="_blank">lzj520</a> 2009-05-05 17:18 <a href="http://www.tkk7.com/lzj520/archive/2009/05/05/269027.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>090310 Exercise 1.12 Pascal's trianglehttp://www.tkk7.com/lzj520/archive/2009/03/10/258890.htmllzj520lzj520Tue, 10 Mar 2009 11:21:00 GMThttp://www.tkk7.com/lzj520/archive/2009/03/10/258890.htmlhttp://www.tkk7.com/lzj520/comments/258890.htmlhttp://www.tkk7.com/lzj520/archive/2009/03/10/258890.html#Feedback0http://www.tkk7.com/lzj520/comments/commentRss/258890.htmlhttp://www.tkk7.com/lzj520/services/trackbacks/258890.html   (cond ((> y x) (display "error input"))
        ((= x 1) 1)
        ((= x 2) 1)
        ((= y 1) 1)
        ((= x y) 1)
        (else
         (+ (Pascal(- x 1) y) (Pascal (- x 1) (- y 1))
         ))))

lzj520 2009-03-10 19:21 鍙戣〃璇勮
]]>
090310 RHEL 涓嬪畨瑁呭甫mod_prox妯″潡鐨刟pachehttp://www.tkk7.com/lzj520/archive/2009/03/10/258885.htmllzj520lzj520Tue, 10 Mar 2009 11:06:00 GMThttp://www.tkk7.com/lzj520/archive/2009/03/10/258885.htmlhttp://www.tkk7.com/lzj520/comments/258885.htmlhttp://www.tkk7.com/lzj520/archive/2009/03/10/258885.html#Feedback0http://www.tkk7.com/lzj520/comments/commentRss/258885.htmlhttp://www.tkk7.com/lzj520/services/trackbacks/258885.html make
make install

鎴栨槸涓嶉噸鏂板畨瑁呯殑鎯呭喌涓嬶細
make WITH_PROXY_MODULE=yes

lzj520 2009-03-10 19:06 鍙戣〃璇勮
]]>
090310 RHEL 涓嬫寕杞絯indows鏂囦歡鐩綍http://www.tkk7.com/lzj520/archive/2009/03/10/258883.htmllzj520lzj520Tue, 10 Mar 2009 11:04:00 GMThttp://www.tkk7.com/lzj520/archive/2009/03/10/258883.htmlhttp://www.tkk7.com/lzj520/comments/258883.htmlhttp://www.tkk7.com/lzj520/archive/2009/03/10/258883.html#Feedback0http://www.tkk7.com/lzj520/comments/commentRss/258883.htmlhttp://www.tkk7.com/lzj520/services/trackbacks/258883.html smbclient -L 192.168.0.11 -U administrator
鎸傝澆錛?br /> mount -t smbfs -o username=administrator,password=pwdabc,iocharset=cpq36 //192.168.0.11/share /mnt/11share

lzj520 2009-03-10 19:04 鍙戣〃璇勮
]]>
090310 Exercise 1.11. recursive process and iterativehttp://www.tkk7.com/lzj520/archive/2009/03/10/258516.htmllzj520lzj520Tue, 10 Mar 2009 00:51:00 GMThttp://www.tkk7.com/lzj520/archive/2009/03/10/258516.htmlhttp://www.tkk7.com/lzj520/comments/258516.htmlhttp://www.tkk7.com/lzj520/archive/2009/03/10/258516.html#Feedback0http://www.tkk7.com/lzj520/comments/commentRss/258516.htmlhttp://www.tkk7.com/lzj520/services/trackbacks/258516.htmlExercise 1.11.  A function f is defined by the rule that f(n) = n if n<3 and f(n) = f(n - 1) + 2f(n - 2) + 3f(n - 3) if n> 3. Write a procedure that computes f by means of a recursive process. Write a procedure that computes f by means of an iterative process.

recursive:

(define (fn n)
  (cond ((>= n 3) (+ (+ (fn (- n 1)) (* 2 (fn (- n 2)))) (* 3 (fn (- n 3)))))
        ((< n 3) n)
   ))


 iterative:

(define (re n)
  (if (< n 3)
      n
      (iter 2 1 0 n)
      ))
(define (iter a b c n)
(if(= n 3)
   (ca a b c)
   (iter (ca a b c) a b (- n 1))
   )
)
(define (ca a b c)
  (+ a (* 2 b) (* 3 c) )
)



lzj520 2009-03-10 08:51 鍙戣〃璇勮
]]>
090306 Exercise 1.8 cube-root procedureshttp://www.tkk7.com/lzj520/archive/2009/03/06/258241.htmllzj520lzj520Fri, 06 Mar 2009 08:22:00 GMThttp://www.tkk7.com/lzj520/archive/2009/03/06/258241.htmlhttp://www.tkk7.com/lzj520/comments/258241.htmlhttp://www.tkk7.com/lzj520/archive/2009/03/06/258241.html#Feedback0http://www.tkk7.com/lzj520/comments/commentRss/258241.htmlhttp://www.tkk7.com/lzj520/services/trackbacks/258241.html the cube root of x, then a better approximation is given by the value
(x/y2+2y)/3
Use this formula to implement a cube-root procedure analogous to the square-root procedure. (In
section 1.3.4 we will see how to implement Newton's method in general as an abstraction of these
square-root and cube-root procedures.)

(define (cube x)
  (* x x x))
(define (square x)
  (* x x ))
(define (result x y)
 (/ (+ (/ x (square y)) (* 2 y)) 3))
(define (improve  x guess)
  (result   x guess))
(define (good-enough?  x guess)
  (< (abs (- (* guess guess guess ) x))0.001))
(define (sqrt-iter x  guess)
  (if (good-enough?  x guess)
      guess
      (sqrt-iter x (improve  x guess)
                 )))

lzj520 2009-03-06 16:22 鍙戣〃璇勮
]]>
090306 Exercise 1.6 Square Roots by Newton's Methodhttp://www.tkk7.com/lzj520/archive/2009/03/06/258214.htmllzj520lzj520Fri, 06 Mar 2009 07:19:00 GMThttp://www.tkk7.com/lzj520/archive/2009/03/06/258214.htmlhttp://www.tkk7.com/lzj520/comments/258214.htmlhttp://www.tkk7.com/lzj520/archive/2009/03/06/258214.html#Feedback0http://www.tkk7.com/lzj520/comments/commentRss/258214.htmlhttp://www.tkk7.com/lzj520/services/trackbacks/258214.html can't I just define it as an ordinary procedure in terms of cond?'' she asks. Alyssa's friend Eva Lu
Ator claims this can indeed be done, and she defines a new version of if:
(define (new-if predicate then-clause else-clause)
  (cond (predicate then-clause)
        (else else-clause)))
Eva demonstrates the program for Alyssa:
(new-if (= 2 3) 0 5)
5
(new-if (= 1 1) 0 5)
0
Delighted, Alyssa uses new-if to rewrite the square-root program:
32(define (sqrt-iter guess x)
  (new-if (good-enough? guess x)
          guess
          (sqrt-iter (improve guess x)
                     x)))
What happens when Alyssa attempts to use this to compute square roots? Explain.


(define (new-if predicate then-clause else-clause)
(cond (predicate then-clause)
      (else-clause)))
(define (average x y)
  (/ (+ x y) 2))
(define (improve guess x)
  (average guess (/ x guess)))
(define (good-enough? guess x)
  (< (abs (- (square guess) x))0.001))
(define (square x)
  (* x x))
(define (sqrt-iter guess x)
  (new-if (good-enough? guess x)
          guess
          (sqrt-iter (improve guess x)
                     x)))

sqrt-iter (improve guess x)浣滀負鍙傛暟鏉ヤ紶閫掔粰new-if錛屽湪鎵цnew-if鐨勬椂鍊欙紝灝辨繪槸浼氭墽琛宻qrt-iter (improve guess x)錛岄犳垚浜嗘寰幆銆?br />



lzj520 2009-03-06 15:19 鍙戣〃璇勮
]]>
090305 Exercise 1.3 returns the sum of the squares of the two larger numbershttp://www.tkk7.com/lzj520/archive/2009/03/05/258058.htmllzj520lzj520Thu, 05 Mar 2009 11:56:00 GMThttp://www.tkk7.com/lzj520/archive/2009/03/05/258058.htmlhttp://www.tkk7.com/lzj520/comments/258058.htmlhttp://www.tkk7.com/lzj520/archive/2009/03/05/258058.html#Feedback0http://www.tkk7.com/lzj520/comments/commentRss/258058.htmlhttp://www.tkk7.com/lzj520/services/trackbacks/258058.html
(define (compare x y) (- x y))
(define (sumsquares x y)(+(* x x)(* y y)))
(define (returnlarge a b c)
  (cond ((and (>= (compare a b) 0) (>= (compare c b) 0)) (sumsquares a c))
        ((and (>= (compare a c) 0) (>= (compare b c) 0)) (sumsquares a b))
        ((and (>= (compare c a) 0) (>= (compare b a) 0)) (sumsquares b c))
         )
  )
(returnlarge 3 3 2)

>18

lzj520 2009-03-05 19:56 鍙戣〃璇勮
]]>
090213 闆嗙兢鍐呯敤jsessionid鍏變韓sessionhttp://www.tkk7.com/lzj520/archive/2009/02/13/254575.htmllzj520lzj520Fri, 13 Feb 2009 08:46:00 GMThttp://www.tkk7.com/lzj520/archive/2009/02/13/254575.htmlhttp://www.tkk7.com/lzj520/comments/254575.htmlhttp://www.tkk7.com/lzj520/archive/2009/02/13/254575.html#Feedback0http://www.tkk7.com/lzj520/comments/commentRss/254575.htmlhttp://www.tkk7.com/lzj520/services/trackbacks/254575.html 浣跨敤HttpSessionListener鏉ョ洃鍚瑂ession鐨勫垱寤哄拰閿姣侊紝闆嗙兢鍐呴儴鐨則omcat寮鍚痵ession澶嶅埗銆?涓簲鐢ㄩ兘璇曠敤HttpSessionListener鏉ョ洃鍚?br />
web.xml錛?br />
  <listener>
  <listener-class>com.com.ActiveUserListener2</listener-class>
 </listener>

<distributable/>

ActiveUserListener2.java

package com.com;

import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

public class ActiveUserListener2 implements HttpSessionListener {
    private static int sessionCount2 = 0;
    private static Map sessionMaps2 = new HashMap(); //瀛樻斁session鐨勯泦鍚堢被

  public void sessionCreated(HttpSessionEvent arg0) {
        HttpSession session = arg0.getSession();
        String sessionId = session.getId();
        System.out.println("Create a session:" + sessionId);
        sessionMaps2.put(sessionId, session);
        sessionCount2++;
 }

  public void sessionDestroyed(HttpSessionEvent arg0) {
        sessionCount2--;
        String sessionId = arg0.getSession().getId();
        sessionMaps2.remove(sessionId);//鍒╃敤浼氳瘽ID鏍囩ず鐗瑰畾浼氳瘽
        System.out.println("Destroy a session:" + sessionId);
 }
 public static int getSessionCount() {
  return sessionCount2;
    }
    public static Map getSessionMaps() {
     return sessionMaps2;
    }
}

浼犻抯essionid錛?jsessionid=<%=session.getId()%>

嫻嬭瘯鏁堟灉錛?br /> <%
Map activeSessions = ActiveUserListener2.getSessionMaps();
             out.println(activeSessions.get("CB55ABC39DD5B917D65F456C28FC25E6.tomcat1"));
             out.println(activeSessions);
            }
      }
%>



lzj520 2009-02-13 16:46 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 国产午夜亚洲不卡| 日韩免费视频一区| 国产亚洲成av片在线观看| 未满十八私人高清免费影院| 午夜视频免费成人| 亚洲中文字幕乱码熟女在线| aa级一级天堂片免费观看| 亚洲 欧洲 视频 伦小说| 免费无码又爽又刺激聊天APP| 亚洲伊人色一综合网| 美女视频黄免费亚洲| 亚洲精品无码一区二区| 免费看美女让人桶尿口| 老司机午夜在线视频免费观| 免费一看一级毛片人| 国产综合免费精品久久久| 亚洲av一综合av一区| 亚洲精品视频免费看| 亚洲中文字幕无码av| 免费a级毛片18以上观看精品| 一个人免费观看视频在线中文| 中文字幕亚洲乱码熟女一区二区 | 成年人网站在线免费观看| 亚洲乱色伦图片区小说| 亚洲国产天堂久久综合| 人妻免费一区二区三区最新| 亚洲一区免费观看| 女人被男人躁的女爽免费视频 | 免费一区二区无码东京热| 久久久久亚洲av无码专区喷水| AV片在线观看免费| 中文字幕免费播放| 亚洲大香人伊一本线| 全亚洲最新黄色特级网站 | 精品亚洲成a人片在线观看| 精品国产免费观看| 嫩草在线视频www免费观看| 亚洲中文字幕一二三四区苍井空| 国产福利电影一区二区三区,亚洲国模精品一区| 99久久国产精品免费一区二区| 亚洲久悠悠色悠在线播放|