使用說明: 雙擊Demo.bat文件便可以執行 (需要配置好jre||JDK環境) 請輸入sql語法關鍵字來測試改程序謝謝 目前支持的語法關鍵字如下設置: text.getSettings().setCase_Insensitive(false) // 不區分大小寫 text.getSettings().addKeyWord1("select") text.getSettings().addKeyWord1("commit") text.getSettings().addKeyWord1("from") text.getSettings().addKeyWord1("AND") text.getSettings().addKeyWord1("WHERE") text.getSettings().addKeyWord1("with ur") text.getSettings().addKeyWord1("VARCHAR") text.getSettings().addKeyWord2("inSert") text.getSettings().addKeyWord2("DECLARE") text.getSettings().addKeyWord2("distinct") text.getSettings().addKeyWord2("SET") text.getSettings().addFunctionKeyWord("int") text.getSettings().addFunctionKeyWord("COUNT") text.getSettings().setComment("--") //設置行注釋 當前版本主要改進塊注釋的算法 塊注釋示例: /* 12312334 "測試字符串" select count(*) from where with ur */
上傳時間: 2016-01-10
上傳用戶:l254587896
for the TI dm6446 platformBackground subtraction moduleMaintain a background model, which can distinguish background, foreground and theft/left pixelsShadow removal moduleDetect shadow regions in monochrome videosCamera shift detection and suppression moduleDetect of small camera shift, and suppress the false alarms due to themBlob extraction moduleExtract connected foreground and theft/left pixels as blobsTheft/left baggage distinguish moduleDistinguish theft blobs and left baggage blobs
標簽: platformBackground moduleMaintain subtraction background
上傳時間: 2013-12-17
上傳用戶:xinzhch
編寫具有如下函數原型的遞歸與非遞歸兩種函數equ,負責判斷數組a與b的前n個元素值是否按下標對應完全相同,是則返回true,否則返回false。并編制主函數對它們進行調用,以驗證其正確性。 bool equ(int a[], int b[], int n) 提示:遞歸函數中可按如下方式來分解并處理問題,先判斷最后一個元素是否相同,不同則返false;相同則看n是否等于1,是則返回true,否則進行遞歸調用(傳去實參a、b與 n-1,去判斷前n-1個元素的相等性),并返回遞歸調用的結果(與前n-1個元素的是否相等性相同)。
上傳時間: 2013-12-03
上傳用戶:梧桐
1)創建任意字符型有序(遞增排序)單循環鏈表(即鏈表的字符元素隨機在鍵盤上輸入),長度限定在15之內; 2)打印(遍歷)該鏈表(依次打印出表中元素值); 3)在鏈表中查找第i個元素,i合法返回元素值,否則,返回false; 4)在鏈表中查找與一已知字符相同的第一個結點,有則返回TRUE,否則,返回false; 5)在鏈表中按照有序方式插入一已知字符元素; 6)在線性表中刪除第i個結點; 7)計算鏈表的長度
上傳時間: 2013-12-25
上傳用戶:lo25643
個人早期編寫的支持wavecom modem的串口短信控件,當控件屬性islocal設置為false時,控件將主動對wavecom的AT命令進行相應,并提取短信內容及收取電話號碼進行回調。短信方式實現了收發異步。
上傳時間: 2016-04-01
上傳用戶:bruce5996
simulates coin tossing. Let the program toss a coin each time the user chooses the “Toss Coin” menu option. Count the number of times each side of the coin appears. Display the results. The program should call a separate method flip that takes no arguments and returns false for tails and true for heads. [ Note: If the program realistically simulates coin tossing, each side of the coin should appear approximately half the time.]
標簽: the coin simulates chooses
上傳時間: 2014-08-30
上傳用戶:pompey
主要是修改了一些2.3.0版本的Bug,特別是當autoCommit=false的情況下以及多線程添加Document,有些字段打開了term-vector有些沒有打都會對索引數據造成破壞 autoCommit 選項是從2.2.0版本就添加了,默認是true,我對這個參數還不是很理解,都是用的默認值true。所以沒有碰到問題。 2.3.1版本沒有包含任何新的功能,索引文件的格式也沒有變化,完全兼容2.3.0版本。 官方鼓勵所有使用2.3.0版本的應用盡快升級到2.3.1版本。
上傳時間: 2013-12-16
上傳用戶:wkchong
貪吃蛇*要點分析: *1)數據結構:matrix[][]用來存儲地圖上面的信息,如果什么也沒有設置為false, * 如果有食物或蛇,設置為true;nodeArray,一個LinkedList,用來保存蛇的每 * 一節;food用來保存食物的位置;而Node類是保存每個位置的信息。 *2)重要函數: * changeDirection(int newDirection) ,用來改變蛇前進的方向,而且只是 * 保存頭部的前進方向,因為其他的前進方向已經用位置來指明了。 其中newDirection * 必須和原來的direction不是相反方向,所以相反方向的值用了同樣的奇偶性。在測試 * 的時候使用了direction%2!=newDirection%2 進行判斷。 * moveOn(),用來更新蛇的位置,對于當前方向,把頭部位置進行相應改變。如果越界, * 結束;否則,檢測是否遇到食物(加頭部)或身體(結束);如果什么都沒有,加上頭部, * 去掉尾部。由于用了LinkedList數據結構,省去了相當多的麻煩。
上傳時間: 2014-06-14
上傳用戶:cjf0304
In this paper, we present LOADED, an algorithm for outlier detection in evolving data sets containing both continuous and categorical attributes. LOADED is a tunable algorithm, wherein one can trade off computation for accuracy so that domain-specific response times are achieved. Experimental results show that LOADED provides very good detection and false positive rates, which are several times better than those of existing distance-based schemes.
標簽: algorithm detection containi evolving
上傳時間: 2014-01-08
上傳用戶:aeiouetla
MediaPlayer代碼,部分代碼,合適請用: import java.awt.* import java.awt.event.* import javax.swing.* import javax.media.* import java.io.* import java.util.* //為了導入Vector //import com.sun.java.swing.plaf.windows.* public class MediaPlayer extends JFrame implements ActionListener,Runnable { private JMenuBar bar //菜單條 private JMenu fileMenu,choiceMenu,aboutMenu private JMenuItem openItem,openDirItem,closeItem,about,infor private JCheckBoxMenuItem onTop private boolean top=false,loop //設定窗口是否在最前面 private Player player //Play是個實現Controller的接口 private File file,listFile //利用File類結合JFileChooser進行文件打開操作,后則與list.ini有關
標簽: MediaPlayer 代碼
上傳時間: 2016-07-08
上傳用戶:爺的氣質