Time of Update: 2015-03-15
jQuery學習筆記,jquery 一. 一些廢話 一直做的是後台編碼,前端設計還停留在JavaScript的post、get階段。之前不止一次想系統的看一下jQuery,結果不是因為工作打斷,就是因為沒找到合適的教程而無心看下去。倒不是說沒有好教材,只怪自己看到太過詳細或者篇幅太多的教材,就有點發怵。玻璃心啊,玻璃心。。
Time of Update: 2015-03-16
快速乘法,手指速算今天做了BC第三十三場,http://bestcoder.hdu.edu.cn/contests/contest_show.php?cid=571 B題是一道快速冪的題目 比賽時沒有細想 直接上了 結果被hack了,才發現取摸的數是小於10^18,中間的結果可能會爆long long,於是學習了新姿勢 —— 快速乘法。其實這東西和快速冪簡直一樣 好處就是中間過程可以取摸了。a*b相當於有b個a想加&
Time of Update: 2015-03-16
C#網路編程系列文章(三)之TcpListener實現非同步TCP伺服器,原創性聲明本文作者:小竹zz 本文地址http://blog.csdn.net/zhujunxxxxx/article/details/44258719 轉載請註明出處本文介紹TcpListener 類提供一些簡單方法,用於在阻止同步模式下偵聽和接受傳入串連請求。 可使用 TcpClient 或 Socket 來串連 TcpListener。 可使用 IPEndPoint、本地 IP 位址及連接埠號碼或者僅使用連接埠號碼,
Time of Update: 2015-03-16
LeetCode 2 Add Two Numbers,leetcodenumbersYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.
Time of Update: 2015-03-16
Target runtime Apache Tomcat v6.0 is not defined.,tomcatdefined 從SVN上檢出的MAVEN項目,卻出現目標運行時環境Tomcat v6.0未定義的錯誤,這個錯誤出現的原因是提交項目的人使用的是Tomcat v6.0,而我使用是Tomcat v7.0,這裡就講一下解決的步驟。在出錯的項目上單擊滑鼠右鍵》Build Path》Configure Build Path。 這裡顯示的Tomcat
Time of Update: 2015-03-16
【LeetCode】two num 利用comparable介面 對對象進行排序,leetcodecomparable題目two
Time of Update: 2015-03-16
JDK8的隨筆(05)_Method References的種類繼續囉嗦一下,jdk8_method Method References的種類我覺得國內的盜鏈以及隨意的盜文的確很嚴重。。。 有必要以後每次都寫一下文章來源:blog.csdn.net/forevervip這幾天本想把Method Reference趕緊收尾然後寫下一個Aggregate的說明,因為Aggregate是Lambda和Method
Time of Update: 2015-03-16
函數的增長,函數增長1:漸進記號我們主要用漸進記號來描述演算法的已耗用時間Θ記號:如Θ(g(n)) 是函數的一個漸進緊確界O記號:如O(g(n)) 是函數的一個漸進緊確上界o記號:如o(g(n)) 是函數的一個漸進緊確上界Ω記號:如Ω(g(n)) 是函數的一個漸進緊確下界w記號:如w(g(n)) 是函數的一個漸進緊確下界漸進函數性質:傳遞性:f(n)=Ω(g(n))且g(n)=Θ(h(n)) 蘊含f(n)=Θ(h(n))f(n)=O(g(n)) 且g(n)=O(h(n)) 蘊含f(n)=O(h(
Time of Update: 2015-03-16
HDU 5187 zhx's contest(防爆__int64 ),hdu__int64Problem DescriptionAs one of the most powerful brushes, zhx is required to give his juniorsn problems.zhx thinks the ith problem's difficulty is i. He wants to arrange these problems in a beautiful
Time of Update: 2015-03-16
C++中public、protected及private用法(From MSDN),protectedmsdnpublic(C# 參考): https://msdn.microsoft.com/zh-cn/library/yzh058ae.aspxprotected(C# 參考):https://msdn.microsoft.com/zh-cn/library/bcd5672a.aspxprivate(C#
Time of Update: 2015-03-16
Golang基礎學習總結,golang基礎總結1、不支援繼承 重載 ,比如C++Java的介面,介面的修改會影響整個實現改介面的類行為的修改,Go 設計者認為這一特點或許根本沒用.2、必任何函數定義必須花括弧跟在函式宣告後面而不能換行 如 func funca(a int){},在Go語言中 函數也是一種類型 可以被推導 使用支援匿名函數 和閉包。 函數的返回值支援多重返回類似Python , 如果不賦值
Time of Update: 2015-03-16
C++的class的例子,class例子私人就是只能夠通過內部調用,在類外面是不可以使用私人成員的簡單的寫一個 Class A{ public: //你可以通過公有的函數去訪問私人成員 Demo() //可以在這使用私人成員 { m_buff = 0; } private: //私人成員 int m_buff;}void
Time of Update: 2015-03-16
s3c6410外部中斷號與引腳問題,s3c6410中斷引腳在編寫Linux驅動程式時,我想用某一個引腳做外部中斷。但是在調用int request_irq(unsigned int irq, void (*handler)(int irq, void *dev_id, struct pt_regs *regs ),unsigned long irqflags, const char * devname, void
Time of Update: 2015-03-16
演算法 binary
Time of Update: 2015-03-16
LeetCode,leetcodeoj題目連結:Merge IntervalsGiven a collection of intervals, merge all overlapping intervals.For example,Given [1,3],[2,6],[8,10],[15,18], return [1,6],[8,10],[15,18].
Time of Update: 2015-03-16
C++類和對象的一個簡單的執行個體,對象執行個體#include<iostream> usingnamespace std; classArray_max{ private://聲明在類的外部不可訪問的隱私成員 intarray[10];
Time of Update: 2015-03-16
python程式的執行過程,python程式執行1. Python是一門解釋型語言?我初學Python時,聽到的關於Python的第一句話就是,Python是一門解釋性語言,我就這樣一直相信下去,直到發現了*.pyc檔案的存在。如果是解釋型語言,那麼產生的*.pyc檔案是什麼呢?c應該是compiled的縮寫才對啊!為了防止其他學習Python的人也被這句話誤解,那麼我們就在文中來澄清下這個問題,並且把一些基礎概念給理清。2.
Time of Update: 2015-03-15
hdu 1286 找新朋友,hdu1286題意:求一個數約數為1的個數。思路:裸裸的歐拉函數。#include<cstdio>#include<cstring>#include<algorithm>using namespace std;int eular(int n){ int ans=n; for(int i=2;i*i<=n;i++) { if(n%i==0) {
Time of Update: 2015-03-15
struct 和 class 不同點,structclass在 C++ 裡面 struct 和 class 沒有本質的區別只是成員和繼承方式的預設不同struct 是 publicclass 是 private我的個人建議是只要需要實現成員函數的就用 class至於效率問題,那得看什麼特性好多都是編譯時間就處理掉的事情,比如普通的函數重載(非 virtual 成員函數),比如模板,只是增加編譯時間而已,對運行效率沒影響
Time of Update: 2015-03-15
Linux&&Mac