Time of Update: 2015-07-02
標籤:直接上程式介面,瞭解整體工作流程是什麼樣子的,求伺服器進行掛機測試,需要固定IP,空間大概需要10G左右(主要是BT種子佔用空間過大),最好有SQLSERVER來做為儲存資料庫,目前採用的是ACCESS資料庫做為測試,怕後期資料過百萬,對網站進行查詢操作很慢。如果程式啟動並執行時間夠長,基本上網路上的種子都會過來,相當於搜片神器了.開源地址:https://github.com/h31h31/H31DHTMgr程式下載:H31DHT下載也提供ASP網站的訪問模式: 正在運行中的狀
Time of Update: 2015-07-02
標籤:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Threading; //線程操作引用的命名空間namespace windowform線程操作{
Time of Update: 2015-07-02
標籤:c++ 智能指標 多線程 說起智能指標,不少人都不陌生,比如auto_ptr、shared_ptr、unique_ptr、weak_ptr。根據shared_ptr的功能,自己仿造也實現了個。對於shared_ptr這種智能指標,有一個共用的引用計數器來控制指標對象的銷毀,當引用計數器變為0時,則銷毀指標指向的對象。對於多安全執行緒問題,我在代碼中使用的Interlocked系列的原子操作
Time of Update: 2015-07-02
標籤://實現一個函數求字串長度(不能建立第三方變數)#include <stdio.h>#include <assert.h>int my_strlen(const char *p){assert(p);if (*p == '\0')return 0;elsereturn 1 + my_strlen(++p);}int main(){char *p = "abcdefg";printf("%d\n",
Time of Update: 2015-07-02
標籤://類比實現庫函數srtcpy函數#include <stdio.h>#include <assert.h>char * my_strcpy(char *dst, const char *src){char *start = dst;assert(dst);assert(src);while (*dst++ = *src++){;}return start;}int main(){char a[20];char *p =
Time of Update: 2015-07-02
標籤://類比實現庫函數strcat函數#include <stdio.h>#include <string.h>#include <assert.h>char * my_strcat(char *dst, const char *src){char *start = dst;int len_dst = strlen(dst);dst+=len_dst;while (*dst++ = *src++){;}return start;}int
Time of Update: 2015-07-02
標籤://類比實現strchr函數.即在一個字串中尋找一個字元第一次出現的位置並返回#include <stdio.h>//#include <string.h>#include <assert.h>char* my_strchr(char *dst, char src){assert(dst);while (*dst != '\0'){if (*dst == src)return dst;dst++;}return 0;}int main()
Time of Update: 2015-07-02
標籤: C++是一個支援多重範型的程式設計語言,一個同時支援過程形式、物件導向形式、函數形式、泛型形式、元編程形式的語言。 視C++為一個語言聯邦,主要有4個次語言。 C。包括區塊、語句、前置處理器、內建資料類型、數組、指標等來自C。 Object-Oriented C++。即C with Classes,包括classes、封裝、繼承、多態、動態綁定。 Template
Time of Update: 2015-07-02
標籤:直接在命令列輸入:# locate lib***顯示出檔案所在路徑,然後在命令列:# ln -s 檔案路徑/檔案名稱 /usr/lib/檔案名稱應該解決了。例如:# gcc first.c -lclntsh/usr/bin/ld: cannot find -lclntshcollect2: ld 返回 1# locate libclntsh/u01/app/oracle/product/11.2.0/dbhome_1/
Time of Update: 2015-07-02
標籤:今天,開啟VC6.0環境編了個小程式,誰知給我報了“cannot open Debug/1.exe for
Time of Update: 2015-07-02
標籤:C語言是面向過程的程式設計語言,而OC則是物件導向的程式設計語言。物件導向:打個比方,就是你做一次菜,讓老婆做個菜,吃飯,這就是物件導向,效率高面向過程,就是每一個細節:比如你要先把或開到合適的位置.然後還要洗菜
Time of Update: 2015-07-02
標籤:C++模板中提供了sort方法,一般有兩種方法:傳遞函數,傳遞一個對象。第一種方法:函數bool compare(const string &strLeft, const string &strRight){ return strLeft<strRight;}int main(){ vector<string> vtstrTest; vtstrTest.push_back(...); std::sort(vtstrTest.begin(),
Time of Update: 2015-07-02
標籤:#include <fstream>#include <vector>#include <iostream>#include <string>using namespace std;bool check_sudoku(const vector<int>& input);int coordtoidx(int row, int col);void extract_row(const vector<int>&
Time of Update: 2015-07-02
標籤:// //$.post(‘/ashx/request.ashx‘, param, function (res) // string strURL = "https://pay.swiftpass.cn/pay/gateway"; // System.Net.HttpWebRequest request; // request =
Time of Update: 2015-07-02
標籤:OK,接著上一篇“Word物件模型”,本文正式開始在VS2010中使用C#語言操作Word2007.不是十分瞭解Word物件模型的朋友,請參考上一篇文章,或者下載:C#操作Word2007.pdf。 ----------------------------------華麗分割--------------------------------------------1.添加Reference,添加命名空間建立一個Winform工程後,首先需要給工程添加Refe
Time of Update: 2015-07-02
標籤:.NET Framework 簡介.NET Framework應用程式工作原理C#概念及其與.NET Framework關係 .NET Framework簡介 Microsoft .NET Framework是用於Windows的新Managed
Time of Update: 2015-07-02
標籤:class Log { public static void Write(string str) { &
Time of Update: 2015-07-02
標籤:C. Cd and pwd commandsTime Limit: 20 SecMemory Limit: 256 MB題目串連http://codeforces.com/problemset/problem/158/CDescriptionVasya is writing an operating system shell, and it should have commands for working with directories. To begin with, he
Time of Update: 2015-07-02
標籤:這個問題從網路包的內容,由於保密問題,我剛才所描述我的業餘的想法。基本的想法:網路請求,我們應該能夠使用基類BaseNetWork, 然後由衍生類別繼承BaseNetWork,並實現一些特殊的方法。 一般標準的流程是傳入block, 當網路請求完成後。通過block回調回來。這裡敘述的關鍵不是怎樣實現一個網路請求和回調block的相關內容,而是怎樣取消請求。 一般基類會實現一個cancelNetWork方法。它依據自己的url進行cancel操作。 舉例:我們使用
Time of Update: 2015-07-01
標籤:c語言 大數乘法 最短程式 #include <stdio.h>char s[99],t[99];int m,n;void r(int i,int c){ int j=0,k=i; while(k)c+=s[j++]*t[k---1]; if(i)r(i-1,c/10); printf("%d",c%10);}void main(){