• <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
            <2025年7月>
            293012345
            6789101112
            13141516171819
            20212223242526
            272829303112
            3456789

            常用鏈接

            留言簿(2)

            隨筆分類(42)

            隨筆檔案(60)

            文章檔案(2)

            我收藏的博客

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

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

            posted @ 2011-04-25 21:54 黃劍父 閱讀(287) | 評論 (0)編輯 收藏
            mysql的中文參考手冊:http://dev.mysql.com/doc/refman/5.1/zh/index.html
            posted @ 2011-04-25 19:54 黃劍父 閱讀(214) | 評論 (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 黃劍父 閱讀(1713) | 評論 (0)編輯 收藏
            http://boxcomputing.baidu.com/
            posted @ 2011-04-13 00:26 黃劍父 閱讀(1148) | 評論 (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 黃劍父 閱讀(1209) | 評論 (0)編輯 收藏
            最近在開設計模式方面的資料。
            設計模式這些東西,要常看看,這樣會給自己在新項目設計的時候或者是老項目重構的時候提供一些思路。

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

            二、里氏替換原則
            重點:

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

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

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

            四、接口隔離原則

            五、迪米特法則

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

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

            WM算法
            posted @ 2010-01-22 14:33 黃劍父 閱讀(132) | 評論 (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 黃劍父 閱讀(272) | 評論 (0)編輯 收藏
            指針與引用看上去完全不同,指針操作符(*和->),引用操作符 (.),但是它們似乎有相同的功能。指針與引用都是讓你可以間接引用其他對象。
            指針與引用的不同點:
            第一:不存在指向空值的引用,指針可以指向空值。
            第二:指針可以被重新賦值,指向另一個不同的對象,但是引用則總是指向在初始化時被指定的對象,以后不能改變。
            什么情況下該使用指針或引用。總體來說,
            posted @ 2009-12-01 11:34 黃劍父 閱讀(88) | 評論 (0)編輯 收藏
            僅列出標題
            共6頁: 1 2 3 4 5 6 
            久久亚洲熟女cc98cm| 久久国产精品一区二区| 欧美亚洲国产精品久久久久| 亚洲国产成人精品91久久久 | 久久久久久精品免费看SSS| 亚洲国产综合久久天堂| 青草国产精品久久久久久| 久久精品国产影库免费看| 国产99久久久国产精品小说| 嫩草影院久久99| 久久久久久夜精品精品免费啦| 久久se精品一区精品二区国产 | 久久人人爽人人爽人人片AV东京热| 久久99国产综合精品免费| 成人综合久久精品色婷婷| 伊人久久大香线蕉精品| 久久国产高潮流白浆免费观看| 伊人色综合久久天天网| 一级做a爱片久久毛片| 国产高潮国产高潮久久久| 国产色综合久久无码有码| 久久久精品久久久久久| 中文精品久久久久国产网址 | 久久精品aⅴ无码中文字字幕重口 久久精品a亚洲国产v高清不卡 | 久久亚洲2019中文字幕| 久久久久国产成人精品亚洲午夜| 久久国产热精品波多野结衣AV| 免费精品久久天干天干| 一本久久免费视频| 久久久中文字幕日本| 精品久久久久久无码国产| 激情久久久久久久久久| 国产精品99久久久久久猫咪| 伊人久久免费视频| 久久精品国产精品亜洲毛片 | 2021最新久久久视精品爱 | 思思久久精品在热线热| 亚洲一区精品伊人久久伊人| 久久久久久久久久久免费精品| 亚洲狠狠综合久久| 老司机午夜网站国内精品久久久久久久久|