Time of Update: 2015-04-01
標籤:在一個大學的編程選修課班裡,我們得到了一組參加該班級的學生資料,分別是姓名、性別、年齡和年級,接下來呢,我們要利用JavaScript的知識挑出其中所有是大一的女生的的名字哦。學生資訊如下: (‘小A‘,‘女‘,21,‘大一‘),
Time of Update: 2015-04-01
關於(textarea)斷行符號分行符號在提交請求(URL)時消失的處理,textarea斷行符號換行關於(textarea)斷行符號分行符號在提交請求(URL)時消失的處理,有時候,我們在頁面輸入查詢時,想多個同時查詢,然後,斷行符號隔開每個查詢的內容。後台只能收到字串,沒有斷行符號分行符號。如下面的一個請求window.location =
Time of Update: 2015-04-01
table中 點擊某一行變色,table點擊某一變色:<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>無標題文檔</title> <script language="javascript"
Time of Update: 2015-04-01
angularjs學習之五(angularjs中一般函數參數的傳遞),之五angularjs1.模型參數直接使用變數名,不要加引號<!doctype html><html ng-app="passAter"><head><meta charset="utf-8"/></head><body><div ng-controller="passCtrl">
Time of Update: 2015-04-01
javascript之BOM,javascriptbom BOM(BrowserObjectModel)也叫瀏覽器物件模型,描述與瀏覽器進行互動的方法和介面。BOM由多個對象組成,其中代表瀏覽器視窗的Window對象是BOM的頂層對象,其他對象都是該對象的子物件。
Time of Update: 2015-04-01
3D效果-HTML+CSS,3d-htmlcss本文使用圖片均為500px*500px代碼如下:<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Time of Update: 2015-04-02
NOJ 網路賽 L題 送花,noj題目:送花時間限制(普通/Java) : 1000 MS/ 3000 MS 運行記憶體限制 : 65536 KByte總提交 : 116 測試通過 :
Time of Update: 2015-04-02
tomcat建立串連池及helpDB類串連方法的書寫,tomcathelpdb1、tomcat中sever配置 <Resource auth="Container"
Time of Update: 2015-04-02
十個最常見的Java字串問題,十個java字串 翻譯自:Top 10 questions of Java Strings 1.怎樣比較字串?用”==”還是用equals()?簡單地說,”==”測試兩個字串的引用是否相同,equals()測試兩個字串的值是否相同。除非你希望檢查兩個字串是否是同一個對象,否則最好用equals()。
Time of Update: 2015-04-02
項目1-三角形類的建構函式(2),1-建構函式【項目1-三角形類的建構函式】 設計三角形類,通過增加建構函式,使對象在定義時能夠進行初始化,可以由下面的類聲明開始,需要自己實現相關的成員函數,以及增加要求的建構函式class Triangle{public: double perimeter();//計算三角形的周長 double area();//計算並返回三角形的面積 void showMessage();private: double a,b,c;
Time of Update: 2015-04-02
POJ1743---Musical Theme(尾碼數組+二分),尾碼數組 Description A musical melody is represented as a sequence of N (1<=N<=20000)notes that are integers in the range 1..88, each representing a key on the piano. It is unfortunate but true that this
Time of Update: 2015-04-02
HDU 1495 非常可樂(BFS 倒水問題),hdubfs題意 將體積為s的可樂 利用容積分別為n和m的兩個杯子平均分為兩份 至少需要倒多少次可樂可以把容器s,n,m中裝的可樂量看成一種狀態 容器都是沒有刻度的 所以每次倒可樂要麼把自己倒完 要麼把對方倒滿 每種狀態可以通過一次倒水到達哪些狀態 於是可以通過bfs判斷到達每種狀態需要倒多少次 3個容器中有一個裝的可樂為s/2的狀態就是答案了
Time of Update: 2015-04-02
uva 1401 Remember the Word ( Trie + DP ),1401trie題意:給出n(n<=4000)個單詞和一個字串(len<=300000),求把這個字串分解成若干個單詞的拼接,有多少種方法思路:Trie,先把單詞建成Trie,然後進行dp,dp[i]表示以字串中第i個字母為開頭的情況,然後每個狀態只要在Trie樹上找到相應的字母開頭的單詞,然後dp[i] = sum{dp[i + len(x)]}進行狀態轉移即可
Time of Update: 2015-04-02
Sublime Text3打造隨身碟便攜Lua IDE,sublimelua下載Sublime Text 連結http://www.sublimetext.com/3我下載的是win32 portable 版 便於放入隨身碟攜帶解壓註冊: 可以複製以下部分直接貼入註冊欄----- BEGIN LICENSE -----K-20Single User LicenseEA7E-9401293A099EC1 C0B5C7C5 33EBF0CF BE82FE3BEAC2164A
Time of Update: 2015-04-02
【SICP練習】149 練習4.5,sicp練習1494.5 練習4-5原文Exercise 4.5. Scheme allows an additional syntax for cond clauses, ( => ). If evaluates to a true value, then is evaluated. Its value must be a procedure of one argument; this procedure is then
Time of Update: 2015-04-02
【SICP練習】150 練習4.6,sicp練習1504.6 練習4-6原文Exercise 4.6. Let expressions are derived expressions, because (let (( ) … ( )) ) is equivalent to ((lambda ( … ) ) ) Implement a syntactic transformation let->combination that reduces evaluating
Time of Update: 2015-04-02
Compiler showing 'pi' symbol on error,compilershowingQuestion:I was testing some code on Coliru, and I got a strange output. I went down the code and could reproduce it with this simplepiece of code:int main(){ π}The output on g+
Time of Update: 2015-04-01
【cdq分治】cdq分治與整體二分學習筆記Part2.cdq分治,cdqpart2.cdq 上午的學習學會了整體二分,下午學了cdq分治 發現了二者的區別: 整體二分的主體是在不斷地二分答案(把所有詢問二分),而cdq分治則是在不斷地二分操作。 當然同樣的,cdq分治的複雜度也是與區間長度正相關. 我們定義函數Solve(l,r)可以得到操作l,r的結果 cdq分治的實現過程:主要過程:Step1.將所有操作按照某個關鍵字排序.(不一定是讀入順序.)
Time of Update: 2015-04-01
資料結構之棧的實現(JAVA)(一),資料結構實現java //棧頂元素public class StackElement<T>{ private StackElement<T>nextElement; private T data;public StackElement(T data){this.data=data;}public StackElement<T> getNextElement(){return
Time of Update: 2015-04-01
資料結構之中序遍曆轉後續遍曆(JAVA實現)(二),資料結構java 演算法流程: 主要分為四步: 1.當前字元為數字或者字母,則直接輸出 2.當前字元為),則在棧中匹配輸出,一直匹配到),則停止輸出(就是將)及其頂上的元素全部彈出來輸出)