Time of Update: 2018-12-05
首先要明白的一個概念是dcu檔案*.dcu是*.pas的編譯後單元檔案(Delphi Compiled Unit), 編譯器把它和庫檔案串連起來就構成了可執行檔*.exe
Time of Update: 2018-12-05
定義標準資料庫: 定義資料庫時,資料庫檔案資訊和資料庫結構資訊是必需的,如資料庫檔案的完整路徑,資料庫類型,資料庫的欄位名、類型、長度等。在delphi程式中可以定義三種標準類型的資料庫,DBASE資料庫、Paradox資料庫、ASCII資料庫。使用:TTable 建立。 procedure CreateDB(); var table1:TTable; begin table1:=ttable.create(self); with table1 do
Time of Update: 2018-12-05
在預設情況下,Serv-U開放了一個名為OPTS UTF8的命令,可以在用戶端(命令列或是用戶端工具的命令發送菜單,如LeapFTP)發送“OPTS UTF8 OFF”在當前會話中關閉UTF-8編碼(如果要重新啟用,則用opts utf8
Time of Update: 2018-12-05
\documentclass{beamer}\usepackage{ctex} %注意這個宏包\usepackage{beamerthemesplit}\title{中文~Beamer with ctex package using xeLatex }\author{名字}\date{\today}\begin{document}\frame{\titlepage}\section*{Outline}
Time of Update: 2018-12-05
Apche commons之各種武器Apache Commons是一個非常有用的工具包,解決各種實際的通用問題,你會發現它們正是你冥思苦想所需要的東西。它們不是絕世武功,確是個中隨手可用的擒拿手。Commons一出,問題手到擒來。下面是一個簡述表,詳細資料訪問:http://jakarta.apache.org/commons/index.html組件說明BeanUtilsCommons-BeanUtils 提供對 Java 反射和自省API的封裝BetwixtBetwixt提供將
Time of Update: 2018-12-05
var myDate = new Date();myDate.getYear(); //擷取當前年份(2位)myDate.getFullYear(); //擷取完整的年份(4位,1970-????)myDate.getMonth(); //擷取當前月份(0-11,0代表1月)myDate.getDate(); //擷取當前日(1-31)myDate.getDay(); //擷取當前星期X(0-6,0代表星期天)myDate.getTime();
Time of Update: 2018-12-05
Time of Update: 2018-12-05
改寫TCPMP的介面非常簡單。你可以看到TCPMP目錄下面有一個Sample的目錄,其中的sample_win32.c實現了對Player的調用,Player就是指播放器。它是一個沒有介面的程式,但是它能很正常的播放視頻,操作完全是Player指標。你可以通過這個Player指標來操作上一曲,下一曲,暫停,播放,停止等操作。介面你可以完全自己配。Player和你的介面互動也可以通過設定Notify來實現。這麼說可能還有點迷糊。下面舉個例子看怎麼調用Player指標
Time of Update: 2018-12-05
Bash最常見的啟用模式是互動式和非互動式: 1.互動式啟用 指其標準輸入和輸出都串連在終端上.又分為三種類型:login,非login,posix 以及受限的shell. 確定一個shell是否是互動可以通過檢測$PS1環境變數. (1) 當Bash作為login shell被啟用時,它將依次讀取並執行以下檔案: /etc/profile,~/.bash_profile,~/.bash_login,~/.profile
Time of Update: 2018-12-05
Time of Update: 2018-12-05
private void WorkerGrid_SelectionChanged(object sender, EventArgs e) { this.WorkerGrid.SelectionMode = DataGridViewSelectionMode.FullRowSelect; txtwid.Text = this.WorkerGrid.CurrentRow.Cells[0].Value.ToString();
Time of Update: 2018-12-05
MakeCAB.exe 是 Windows 2000 或更高版本中隨附的工具。要使用 MakeCAB.exe 來建立 .cab 檔案,請執行以下步驟: 為 makecab.exe 建立一個定向檔案,然後以 .ddf 副檔名儲存該檔案。下面的樣本定向檔案(名為 sample.ddf)為一個簡單的 Web 組件庫項目建立了一個 .cab 檔案: ;*** Sample Source Code MakeCAB Directive file example;.OPTION EXPLICIT ; Gen
Time of Update: 2018-12-05
IOmeter是由Intel開發的一款免費軟體,主要用於Windows和Linux平台上對磁碟子系統和網路IO做效能測試。下面筆者簡單介紹一下這款工具。 IOmeter通過Dynamo來產生多種IO測試(可以模仿資料庫伺服器,檔案伺服器,網站伺服器等),每一個Dynamo叫做一個Manager。每一個Manager下又有多個Worker,Worker即是Dynamo的線程,比如Worker1用於測試磁碟IO,Worker2用於測試網路的IO。IOmeter的介面如下:
Time of Update: 2018-12-05
Yahoo的Outlook設定
Time of Update: 2018-12-05
;Full segment definition ;SIMPLIFIED FORMAT ;-------------stack segment--------------------- .MODEL SMALL name1 SEGMENT
Time of Update: 2018-12-05
Raknet 網路程式庫Autopatcher測試 #include <stdio.h>#include <conio.h>#include <string.h>#include <RakClientInterface.h>#include <RakServerInterface.h>#include <RakNetworkFactory.h>#include <PacketEnumerations.h> //
Time of Update: 2018-12-05
<1>簡潔方式,顯示傳輸速率sttyspeed 38400 baud; line = 0;eol = M-^?; eol2 = M-^?; swtch = M-^?;ixany iutf8 <2>顯示全部設定的命令stty -aspeed 38400 baud; rows 24; columns 80; line = 0;intr = ^C; quit = ^/; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2 = M-
Time of Update: 2018-12-05
****************串連池代碼*************************** /** * 實現串連池 * */using System;using System.Collections;using System.Timers;namespace XuLongClass{ /// <summary> /// ObjectPool 的摘要說明。 /// </summary> public abstract class
Time of Update: 2018-12-05
//#include "stdafx.h"#include "點對點通訊.h"#include "UDPdlg.h"#ifdef _DEBUG#define new DEBUG_NEW#undef THIS_FILEstatic char THIS_FILE[] = __FILE__;#endif/////////////////////////////////////////////////////////////////////////////// CUDPdlg
Time of Update: 2018-12-05
#include <iostream.h> int findZeroCountNotContinue(int arr[], int arr_length); void main(){ int arr[8] = {1,1,1,1,1,0,0,0}; int count = 0; //出現不連續的0的個數 count = findZeroCountNotContinue(arr, 8); cout << "count = " <<