原创 《C++ Primer》讀書筆記(5.11,6.1,6.2,6.3)

關於類模板    類模板的定義以關鍵字template 開始,後面是用尖括號括起來的參數表,類型參數由typename 或class 加上一個標識符構成 例如  template<class elemType>

原创 《C++ Primer》讀書筆記(4.2,4.4,4.5,4.6)

關於% 取模[modulus]或求餘[remainder]操作符  21 % -5; // 機器相關 : 結果爲 -1 或 1 如果有一個 或兩個 操作數爲負 餘數的符號則取決於機器 因此 移植性無法保證 elem_cnt = e

原创 《C++ Primer》讀書筆記(6.5,6.8,6.11)

迭代器    迭代器[iterator]提供了一種一般化的方法,對順序或關聯容器類型中的每個元素進行連續訪問。例如,假設iter 爲任意容器類型的一個iterator ,則  ++iter;     向前移動迭代器 使其

原创 讀書筆記(17)

  Using  Link  Events in TextField tf = new TextField(); tf.selectable = false; tf.defaul

原创 《C++ Primer》讀書筆記(7.8,7.9)

main()處理命令行選項   通常 在執行程序時 我們會傳遞命令行選項 例如 我們可能寫如下命令行  prog -d -o ofile data0     如果用戶已在命令行中指定了選項的話 那麼我們可以通過main(

原创 關於多媒體流

HLS DASH HDS HSS的不同 http://www.internetvideoarchive.com/documentation/video-api/progressive-download-vs-adaptive-bitrat

原创 [Core Java. Volume I. Fundamentals, 8th Edition]-7,8

Swing與AWT From now on, we say “Swing” when we mean the “painted” user interface classes, and we say“AWT”(Abstract Windo

原创 [Core Java. Volume I. Fundamentals, 8th Edition]-11

關於方法頭異常的拋出  As with Java methods that are part of the supplied classes, you declare that your  method may throw an exce

原创 android的listview中setselection()不起作用的解決方案

遇到一個很詭異的問題,ListView數據沒有更改之前,setselection()方法調用效果一切正常;而填充數據更改之後,同樣的代碼片段卻莫名其妙無效了。 先列出搜索到網上的解決方法: 來源:http://stackoverflow

原创 android開發:EditText中android:capitalize屬性的作用

設置英文字母大寫類型。設置如下值: sentences僅第一個字母大寫; words每一個單詞首字母大小,用空格區分單詞; characters每一個英文字母都大寫。 在模擬器上用PC鍵盤直接輸入可以出效果,但是用軟鍵盤無效果。 

原创 [Oreilly.Developing.Android.Applications.with.Adobe.AIR.Apr]

萬惡的破地,將近一個月斷網...補筆記ing -------------------第一章---------------------- The following desktop functionalities arenot suppo

原创 [Core Java. Volume I. Fundamentals, 8th Edition]-4

C++類方法的定義位置    C++ NOTE: In C++, you generally define methods outside the class:  void Empl

原创 [Core Java. Volume I. Fundamentals, 8th Edition]-6

模板類型接口 NOTE: As of Java SE 5.0, the Comparable interface has been enhanced to be a generic type. 

原创 [Professional.Flash.Mobile.Development]

----------------第三章---------------------- 手勢爲多點觸控的默認 MultitouchInputMode.GESTURE (thedefault, by the way) s

原创 有用的知識點鏈接集合

比較—————Drawable與Bitmap佔用內存大小,BitmapFactory類的decodeResource方法與decodeStream方法的效率 android中ImageView的ScaleType屬性 Android中使用