Time of Update: 2015-04-04
AJAX初識小結,ajax初識1:什麼是AJAX AJAX = Asynchronous JavaScript and XML(非同步JavaScript和
Time of Update: 2015-04-04
Ajax本地跨域問題 Cross origin requests are only supported for HTTP,ajaxrequests問題:開啟本地html檔案時,報錯如下Cross origin requests are only supported for protocol schemes: http, data,chrome-extension, https,
Time of Update: 2015-04-04
QT中給各控制項增加背景圖片的幾種方法,qt背景圖片1. 給QPushButton 增加背景圖片:背景圖片可根據Button大小自由縮放。void setButtonBackImage(QPushButton *button,QString image,int sizeW, int sizeH){ //163,163為原生解析度,這裡稍做了調整。 QPixmap pixmap(image); QPixmap
Time of Update: 2015-04-04
servlet基礎,如何?一個servlet,servletConfig,HTTPServlet,ServletContext,servletcontext 1.什麼是servlet?*servlet 伺服器端的小程式.*幹什麼用的?處理用戶端請求的小程式*JavaEE三大組件之一 *Servlet *Filter 過濾器 *listener
Time of Update: 2015-04-05
超實用的python日期處理筆記,python日期從一個字串開始>>>time_str='2008-08-08 08:08:08' 1.1.轉換為struct_time形式的時間 >>struct = ime.strptime(time_str,'%Y-%m-%d %H:%M:%S') time.struct_time(tm_year=2008, tm_mon=8, tm_mday=8
Time of Update: 2015-04-05
Mybatis快速學習(一),Mybatis快速學習( 這兩天學習mybatis,寫一下主要的知識點和流程吧,懶得再分類了,暫且把它放在ssh類裡面吧。首先,它是一個ORM架構,效能介於原生JDBC和hibernate之間,需要自己寫sql語句,開發效率比hibernate慢一些,比jdbc快一些,但是對於運行效率比hibernate快一些,比jdbc慢一些,反正也差不多。 mybatis快速入門步驟:
Time of Update: 2015-04-05
POJ 3414 Pots(BFS 倒水),pojbfs題意 你有兩個容積分別為a,b杯子 你每次可以將某個杯子中的水倒滿或者倒掉或者倒到另一個杯子 問能否通過這兩個杯子量出c容量的水和上一個倒可樂問題類似 只是這個操作更多了點 將兩個杯子中各含有的水作為狀態 每出隊列一個狀態 將所有可能到達的狀態入隊 直到有一個杯子裡面水的體積為c
Time of Update: 2015-04-05
leetCode 101-Symmetric Tree,leetcodesametree連結:https://leetcode.com/problems/symmetric-tree/此題就是判斷一棵二叉樹是否為對稱二叉樹,剛開始以為中序遍曆輸出,然後看是否是為迴文字串,但是這種思路是錯了,如[1,2,3,#,3,#,2].代碼如下:通過判斷左孩子的左子樹與右孩子的右子樹 及 左孩子的右子樹與右孩子的左子樹class Solution {public: bool
Time of Update: 2015-04-05
Codeforces Round #169 (Div. 2)---C. Little Girl and Maximum Sum(簡單貪心), The little girl loves the problems on array queries very much.One day she came across a rather well-known problem: you’ve got an array of n elements (the elements of the
Time of Update: 2015-04-05
C++primer(第四版)複習筆記—第一篇:基礎語言,primer第四版 再次閱讀primer一方面是為了查漏補缺,另一方面也是更加深入的理解C++的思想精髓。在此記錄複習中記錄的各知識細節及理解,以便後續溫故之用。第一張:快速入門 1. for語句: for(初始化語句;條件測試語句;條件修改運算式){ 語句體 }
Time of Update: 2015-04-05
hdu 1023 Train Problem II 這題運用到大數相乘+大數相除+卡特蘭數,hdu1023Train Problem IITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6454 Accepted Submission(s): 351
Time of Update: 2015-04-05
Java中容易混淆的區別,Java混淆區別 Java中HashMap和HashTable的區別① 曆史原因: Hashtable是給予陳舊的Dictonary類的, HashMap是Java1.2引進的Map介面的一個實現② HashMap允許空的索引值對, 而HashTable不允許③ HashTable同步,而HashMap非同步,效率上比HashTable要高請簡述在異常當中,throw和throws有什麼區別①
Time of Update: 2015-04-05
[程式員面試題精選100題]58.八皇后問題,程式員58
Time of Update: 2015-04-05
python7:字串,python7字串在Python中,字串對應對象str,字串是使用Unicode編碼的不可變序列。構造字串字串可以使用下面幾種文法: 1)單引號:'allows embedded "double" quotes' 2)雙引號:"allows embedded 'single' quotes" 3)三引號:'''Three
Time of Update: 2015-04-05
[LeetCode] Search Insert Position,leetcodeinsert題意: 給出一個target找出他在有序數組中的位置思路1: 直接遍曆 複雜度O(N)代碼1: public int searchInsert1(int[] A, int target) {//直接遍曆 演算法O(N) int i = 0; if(target < A[0]) return 0; if(target > A[A.length
Time of Update: 2015-04-05
Sublime Text 3比較好用的外掛程式記錄,sublimetext最近在忙前端的事情,用的是sublime text
Time of Update: 2015-04-05
Android JNI局部參考資料表溢出:local reference table overflow (max=512),androidjni
Time of Update: 2015-04-05
C++學習之建構函式、拷貝建構函式,學習拷貝建構函式引申問題一:拷貝建構函式中參數是否加const對拷貝建構函式的影響。網上大多數人對於這個問題的解釋只能達到"當你不想對參數進行修改時,就需要加上const關鍵字"的程度,但是並沒有仔細區分這兩種情況到底有什麼區別。以下面的程式為例:Dog.h#ifndef __test_header__Dog__#define __test_header__Dog__#include <stdio.h>class
Time of Update: 2015-04-05
poj 3881 區間交判斷,poj3881區間判斷水題,直接貼代碼。//poj 3881//sep9#include <iostream>using namespace std;const int maxN=10024;int n,m;int a[maxN],b[maxN];bool judge(int x,int y,int i){if(b[i]<=x||y<=a[i])return false;return true;}int main(){while(scanf(
Time of Update: 2015-04-05
Java線程,java多線程線程、進程概念:進程: