原创 錯誤信息提示宏 MTVERIFY頭文件 MTVERIFY.H 源代碼

Code: /**    * MtVerify.h    *    * Error handling for applications in    * "Multitheading Applications in Win32"  

原创 最短路徑Dijkstra c實現

Code: int Pnum;    int P[MAX_PC] = {0};    int S[MAX_PC];    float D[MAX_PC];       void ShortPath(float C[][MAX_PC]

原创 opencv-Win32下HBITMAP格式圖像 Convert to爲opencv下 IplImage

Code: // hbitmap convert to IplImage    IplImage* hBitmapToIpl(HBITMAP hBmp)    {        BITMAP bmp;         GetObje

原创 用6次判斷找到5個元素中的中位數

Code: #include <stdio.h>    void swap(float *x, float *y)    {        float temp;        if (*x > *y)        {      

原创 win32文件搜索

Code: #include <windows.h>       void SeachFile(TCHAR *lpDirectory, TCHAR *lpFileName);    void FindFile(TCHAR *lpDi

原创 遺傳算法解決網絡佈線問題 tsp

Code: // File: CgaTsp.h the head of class    #ifndef GATSP_H    #define GATSP_H       #include <vector>    #include 

原创 通過進程名獲取進程的工作目錄

Code: #include <stdio.h>    #include <windows.h>    #include "PSAPI.H"    #pragma comment( lib, "PSAPI.LIB" )    int

原创 win32圖像的寫操作

Code: // 圖像的寫操作把DIB寫入lpszPathName中    // lpDib是指向信息頭的圖像指針    BOOL WriteImageNew(LPCTSTR lpszPathName,LPBYTE lpDib)  

原创 opencv-根據顏色進行目標檢測

Code: #include <cv.h>    #include <highgui.h>       // 該接口來至   冰風2009手勢識別     // 進行膚色檢測    void SkinDetect(IplImage*

原创 js刪除一行下面的文字往上移動

 document.getElementById(str).style.display="none";<html> <head> <title></

原创 n個數的排列

  1求n個數的排列遞歸算法不重複。 Code: /*      可以使用遞迴將問題切割為較小的單元進行排列組合,      例如1 2 3 4的排列可以分為1 [2 3 4]、2 [1 3 4]、      3 [1 2 4]、4

原创 c語言中的一些細節

  2011 國信藍點的軟件大賽就要開始了,所以這幾天都是用標準c語言規則去寫一些代碼。 以前都是用.cpp編譯的。由於大賽嚴格使用的是c語言,所以編譯的時候都是用.c文件。 想不到用.c寫的一個對文件內容進行歸類的程序,竟然錯誤百出。這

原创 用戶註冊頁面--ajax.php.js.css

<html> <head> <meta charset="utf-8"/> <title>新用戶註冊</title> <link rel="stylesheet" href="Common/css/reg.css"/>

原创 php引入lucene搜索引擎方法.

 1、lucene包的下載地址:http://apache.etoak.com/lucene/java/3.3.0/ 2、下載jdk環境 3、下載JavaBridge URL:http://sourceforge.net/projects

原创 c語言細節中的文件歸類代碼

 題目:把a.txt文件中的內容,同一個地點的姓名歸爲一類。輸出的時候按類輸出。並且計算每類地址中姓名的總數。 Code: #include <stdio.h>   #include <stdlib.h>   #include <s