• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            隨筆 - 60  文章 - 5  trackbacks - 0
            <2009年10月>
            27282930123
            45678910
            11121314151617
            18192021222324
            25262728293031
            1234567

            常用鏈接

            留言簿(2)

            隨筆分類(42)

            隨筆檔案(60)

            文章檔案(2)

            我收藏的博客

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            本章介紹了MySQL可使用的API,從哪里獲得它們,以及如何使用它們。 詳細介紹C API,這是因為它是由MySQL團隊開發的,而且它也是大多數其他API的基礎。 本章還介紹了libmysqld庫(嵌入式服務器),以及對應用程序開發人員有用的一些程序。

            posted @ 2011-04-25 21:54 黃劍父 閱讀(278) | 評論 (0)編輯 收藏
            mysql的中文參考手冊:http://dev.mysql.com/doc/refman/5.1/zh/index.html
            posted @ 2011-04-25 19:54 黃劍父 閱讀(206) | 評論 (0)編輯 收藏
            研究一下google pacman的代碼
            https://github.com/macek/google_pacman
            insertCoin()投幣,開始初始化游戲
            newGame(),初始化單人游戲。
              g.newGame = function () {
                g.playerCount = 1;//玩家數
                g.createChrome();
                g.createPlayfield();//創建地圖
                g.createActors();//創建玩家
                g.startGameplay()
              };

            g.keyPressed//鍵盤響應函數
            posted @ 2011-04-17 08:37 黃劍父 閱讀(1705) | 評論 (0)編輯 收藏
            http://boxcomputing.baidu.com/
            posted @ 2011-04-13 00:26 黃劍父 閱讀(1141) | 評論 (0)編輯 收藏
            https://developer.mozilla.org/en/Canvas_tutorial
            https://developer.mozilla.org/cn/Canvas_tutorial
            http://www.cssass.com/blog
            國內的一個博客
            http://www.benjoffe.com/es/
            國外的一個個人站點,有幾個demo并有源碼。
            posted @ 2011-03-17 16:04 黃劍父 閱讀(1202) | 評論 (0)編輯 收藏
            最近在開設計模式方面的資料。
            設計模式這些東西,要常看看,這樣會給自己在新項目設計的時候或者是老項目重構的時候提供一些思路。

            當然任何設計模式,都是有一些基本的目標,比如易于擴展,靈活,穩定。為了達到這個目標,在設計軟件的時候,那么就應該遵守一些基本的原則。
            下面這幾個原則就是比較重要的。
            一、單一職責原則
            重點:職責如何劃分。

            二、里氏替換原則
            重點:

            三、依賴倒置原則
            重點:
            高層模塊不要依賴低層模塊,高層和低層模塊都要依賴抽象;
            抽象不應該依賴細節;
            細節應該依賴抽象。

            從語言層面說就是,面向接口編程。
            模塊間的依賴通過抽象發生,實現類之間不發生直接的依賴關系,其依賴關系是通過接口或抽象類產生的;
            接口或抽象類不依賴于實現類;
            實現類依賴接口或抽象類。

            實例:
            這個舉實際編程中遇到的例子,以后補充。

            四、接口隔離原則

            五、迪米特法則

            六、開閉原則
            posted @ 2010-11-24 11:15 黃劍父 閱讀(2275) | 評論 (0)編輯 收藏
            關于線程的創建與結束,值得寫一篇小文章。
            有這個想法,是由解決一個bug引起的。那個bug是因為在線程退出的時候沒有釋放線程資源,導致線程對象句柄一直往上升,后面的結果可想而知了。
            AfxBeginThread和AfxEndThread。

            這邊文章以后補上來。
            posted @ 2010-11-24 10:37 黃劍父 閱讀(243) | 評論 (0)編輯 收藏
            BM算法
            http://www.javaeye.com/topic/352954,BM模式匹配算法-原理(圖解)這篇文章是我見過的最好的講解了。
            同時還有一篇http://www.javaeye.com/topic/353137,BM模式匹配算法-實現(C語言)。

            WM算法
            posted @ 2010-01-22 14:33 黃劍父 閱讀(124) | 評論 (0)編輯 收藏

            source:http://msdn.microsoft.com/en-us/library/ms524352.aspx
            For an ISAPI extension to be used by IIS, it must provide a standard interface. To provide a standard interface, each ISAPI extension DLL must implement and export two primary functions, GetExtensionVersion and HttpExtensionProc. A third function, TerminateExtension, is optional and is commonly used by extensions to perform cleanup operations.

            Initialization Using GetExtensionVersion
            Initialization is handled by the entry-point function GetExtensionVersion. This function's role is to perform all initialization, including the creation of worker threads, synchronization objects, and database connections, and to establish the version of ISAPI that was used to build the DLL.

            Adding Functionality Using HttpExtensionProc

            In general, an extension's functionality is exposed through the HttpExtensionProc entry-point function. This function receives a pointer to an EXTENSION_CONTROL_BLOCK structure, which contains data used for the required processing and is also used by the extension to communicate with IIS.
            When HttpExtensionProc in employed, it should first send a response header to the client. The header provides the client with information, such as the content type that is returned. After the header is sent, any other processing can be performed through the various callback functions provided in the EXTENSION_CONTROL_BLOCK.

            Termination Using TerminateExtension

            When an extension is no longer needed, IIS removes it from memory. If the extension provides the TerminateExtension function, IIS calls it before removing the extension. Use of TerminateExtension is recommended to close down any threads that an extension initialized during processing.

            After IIS finishes processing a request for an ISAPI extension, the connection can either be closed or kept open. A request can specify that the connection remain open by specifying the Connection: Keep-Alive header. If an ISAPI extension is designed to support Keep-Alive requests, this should be indicated to the client by calling the HSE_REQ_SEND_RESPONSE_HEADER server support function. The specified response header should contain Connection: Keep-Alive.

            posted @ 2010-01-12 09:15 黃劍父 閱讀(264) | 評論 (0)編輯 收藏
            指針與引用看上去完全不同,指針操作符(*和->),引用操作符 (.),但是它們似乎有相同的功能。指針與引用都是讓你可以間接引用其他對象。
            指針與引用的不同點:
            第一:不存在指向空值的引用,指針可以指向空值。
            第二:指針可以被重新賦值,指向另一個不同的對象,但是引用則總是指向在初始化時被指定的對象,以后不能改變。
            什么情況下該使用指針或引用。總體來說,
            posted @ 2009-12-01 11:34 黃劍父 閱讀(85) | 評論 (0)編輯 收藏
            僅列出標題
            共6頁: 1 2 3 4 5 6 
            久久免费的精品国产V∧| 久久久www免费人成精品| 91精品国产高清久久久久久io| 97久久天天综合色天天综合色hd| 久久精品国产99国产精品澳门| 国产午夜精品久久久久九九电影| 久久91精品国产91| 久久777国产线看观看精品| 日韩AV毛片精品久久久| 久久r热这里有精品视频| 久久久久国产精品人妻| 国内精品伊人久久久久网站| 亚洲狠狠婷婷综合久久久久 | 天天做夜夜做久久做狠狠| 久久久久亚洲AV无码专区体验| 精品久久人人妻人人做精品| 亚洲国产精品久久久天堂 | 国产亚洲精品久久久久秋霞| 丁香狠狠色婷婷久久综合| 一日本道伊人久久综合影| 国产亚洲欧美成人久久片| 亚洲AV无码一区东京热久久| 久久精品18| 91久久精品国产成人久久| 97久久超碰成人精品网站| 国产成人精品三上悠亚久久| 久久伊人色| 久久久久这里只有精品| 国产精品免费久久久久久久久| 久久91精品国产91久久小草| 人妻丰满AV无码久久不卡| 久久精品国产乱子伦| 久久频这里精品99香蕉久| 日韩一区二区三区视频久久| 久久久国产精品| 日本免费久久久久久久网站| 久久99国产综合精品免费| 久久国产精品77777| 国产日产久久高清欧美一区| MM131亚洲国产美女久久| 久久久久综合网久久|