Time of Update: 2014-10-08
標籤:style blog http color 使用 strong sp 2014 c 這裡的登入設計主要是針對ASP.NET
Time of Update: 2014-10-08
標籤:style blog http color io os 使用 sp div 這篇文章介紹了ASP.NET中在一般處理常式中使用session,有需要的朋友可以參考一下 <%
Time of Update: 2014-10-08
一個css和js結合的下拉式功能表,支援主流瀏覽器,cssjs首先聲明: 本人雖然在web前端崗位幹了好多年,但無奈崗位對技術要求不高。html,css用的比較多,JavaScript自己原創的很少,基本都是copy修改,所以自己真正動手寫時,發現基礎很不牢固,邊學習邊實踐,收穫很大。: 不廢話了,貼碼了
Time of Update: 2014-10-08
前端基本知識,基本知識1、前端:通過瀏覽器在使用者端開發電腦軟體2、URL(同一資源定位器):對可以從互連網上得到的資源的位置和存取方法的一種簡潔的表示,是互連網上標準資源的地址。互連網上的每個檔案都有一個唯一的URL,它包含的資訊指出檔案的位置以及瀏覽器應該怎麼處理它。3、HTTP協議(超文字傳輸通訊協定
Time of Update: 2014-10-08
JAVA學習之JSTL與EL,javajstlel一、基礎1、EL(Expression Language):為了使jsp寫起來更加簡單,提供了在Jsp中簡化運算式的方法2、JSTL:(JSP Standard Tag
Time of Update: 2014-10-08
Hibernate持久化對象狀態,hibernate對象在Hibernate中,持久化對象再被操作過程中分為三個時期.這三個時期和session周期相關.分別是瞬時(Transient),持久太(persistent)和游離態(Detached)瞬時狀態由new命令開闢記憶體的java對象.例如:Student stu=
Time of Update: 2014-10-08
Palindromic Subsequence(最長迴文字串 輸出路徑),最長迴文字串初看好簡單 一開始調試著一直re 後來也不知道怎麼就對了 但是還有一些bug存在 ,這道題的列印路徑和light oj An Easy LCS(ps:點擊開啟連結)一樣但是只改一下會Tle 因為(1000*1000*1000)好大但是把儲存的字串改為string 定義的就過了但是還是有一點有點難受(下面會說出)我也是醉了#include
Time of Update: 2014-10-08
Java List 的深拷貝,javalist拷貝老是會遇到深拷貝與淺拷貝的問題,這裡進行了一些測試,代碼如下:</pre><pre name="code" class="java">/* * To change this template, choose Tools | Templates * and open the template in the editor. */import
Time of Update: 2014-10-08
Codeforces 3A-Shortest path of the king(BFS列印路徑),codeforcesbfsA. Shortest path of the kingtime limit per test1 secondmemory limit per test64 megabytesinputstandard inputoutputstandard outputThe king is left alone on the chessboard. In spite of this
Time of Update: 2014-10-08
python中的lambda表達,pythonlambda表達C++中的lambda運算式與C++11加入標準庫,是一個簡短的匿名的可調用對象,編譯器會將其轉化為一個匿名類的對象。lambda運算式的最大特點就是簡短靈活,調用方便。它不需要處理很複雜的邏輯,通常只包含一兩句簡短的代碼。python作為一種優雅簡潔的指令碼語言自然不會錯過這種機制。python中的lambda運算式形式如下:lambda 參數列表 :
Time of Update: 2014-10-08
LeetCode Maximum Product Subarray 解題報告,leetcodesubarrayLeetCode 新題又更新了,最大子數組乘積https://oj.leetcode.com/problems/maximum-product-subarray/題目分析:求一個數組,連續子數組的最大乘積。解題思路:最簡單的思路就是3重迴圈,求解productArray[i][j]的值(productArray[i][j]為A[i]到A[j]的乘積),然後記錄其中最大
Time of Update: 2014-10-08
Codeforces 263 D. Cycle in Graph,codeforcescycleDFS一遍......D. Cycle in Graphtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou've got a undirected graph G, consisting of n nodes.
Time of Update: 2014-10-08
Codeforces Round #271 (Div. 2),A. Keyboardtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOur good friend Mole is trying to code a big message. He is typing on an unusual keyboard with characters
Time of Update: 2014-10-08
Java GUI 基礎 Eight Puzzle (拼圖遊戲),eightpuzzle很簡單使用java GUI 製作一個簡單的拼圖遊戲// main package HW1;import java.io.IOException;import javax.swing.Icon;import javax.swing.ImageIcon;import javax.swing.JFrame;import javax.swing.JLabel;public class HW1 extends
Time of Update: 2014-10-08
隨想錄(代碼最佳化中的兩個問題),隨想錄最佳化【 聲明:著作權,歡迎轉載,請勿用於商業用途。 聯絡信箱:feixiaoxing @163.com】 最近在代碼最佳化的過程中,發現了兩個問題。一個是全域變數的問題,一個是編譯亂序的問題。因為一開始的時候沒有注意到這些問題,所以現在才弄必然要付出更大的精力。為了說明這兩個問題,我們可以寫了例子說明一下。// gcc -O2 -S test.c#include <stdio.h>int a;int b;
Time of Update: 2014-10-08
C++ multimap 的插入,遍曆,刪除,multimap#include <iostream>#include <map>#include <string>using namespace std;int main(){multimap<string, string> authors;// 插入元素, 引入的標頭檔是 mapauthors.insert(make_pair(string("Evin"), // 這個是
Time of Update: 2014-10-08
類似微博判斷使用者關係的sql語句,sql語句類似新浪微博的關注與相互關注 不知道別人是怎麼設計的。反正我是如下設計的 ID USER FRIEND 1 A B 2 B A3 A
Time of Update: 2014-10-08
SICP 習題 (2.7) 解題總結 : 定義區間資料結構,sicp2.7SICP 習題 2.7 開始屬於擴充練習,可以考慮不做,對後面的學習沒什麼影響。不過,如果上面的使用過程表示序對,還有丘奇計數你都可以理解的話,完成這些擴充練習其實沒什麼問題。習題2.7是要求我們協助Allysa完成interval的定義。Allysa定義了下面的過程來建立一個區間(interval),其中a是起點(就是較小的部分),而b是終點(就是較大部分)。(define (make-interval a b)
Time of Update: 2014-10-08
java 線程之間的協作 wait()與notifyAll(),waitnotifyall package org.rui.thread.block;import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;import java.util.concurrent.TimeUnit;//
Time of Update: 2014-10-08
題目三 最大最小數之差,題目最小數題目 - 題目三 最大最小數之差 描述給定三個整數,求這三個數中最大值與最小值之差。關於輸入只有一行,包括待處理的三個整數。關於輸出一共一行,輸出最大數減去最小數的差。例子輸入3 5 9例子輸出6提示三個數中可能出現相等的情況123456789101112131415161718192021222324#include <stdio.h>#include <math.h>int