原创 html中強調文本的標籤:,和

1. <em>和<strong>標籤是爲了強調一段話中的關鍵字時使用,它們的語義是強調。       <em>:斜體      <strong>:加

原创 html中表示引用文本的標籤:,

1,<q>: 表示引用一小段文字,如一句話,一句詩等短文本;               瀏覽器解析爲:雙引號 2,<blockquote>:表示引用一段長文本,如:一段話,一首詩等長文本;               瀏覽器解析爲:縮進

原创 使用單例類進行背景音樂播放

1,單例類的實現: ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21

原创 android 之 SurfaceView使用(桌面彈球)

整個項目一共3個類:MyConstant,MainActivity,MySurfaceView 效果如下: 注意; 由於手機屏幕分辨的差異,在運行程序時應把AndroidManifest.xml中的 ?

原创 android之sqlite簡單使用

1,創建SqLitDBHelper類,繼承android.database.sqlite.SQLiteOpenHelper,重載onCreate() ? 1 2 3 4 5 6 7 8

原创 android使用SoundPool 播放短音效

播放短音效 1,準備資源文件(短音效文件)       在eclipse中,將準備好的聲音文件放到res下的raw目錄下(在res下新建一個文件名爲raw的即可) 2,新建一個activity(包括兩個Button),在a

原创 3種讀取數據的方法

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

原创 android service 之startService(...)

1,創建一個MusicPlayService繼承Service,並重寫onCreat()方法和onStartCommand(...)方法 ? 1 2 3 4 5 6 7 8 9 10 11 12 13

原创 android service 之 Binder

1,創建MusicPlayService繼承Service ? 1 2 3 public class MusicPlayService extends Service{      }

原创 c#之線性表

1,線性表接口 using System; using System.Collections.Generic; using System.Linq;

原创 c#中this的作用

1,代表當前類的實例化對象 2,能顯示的調用當前類的構造方法 public class Student{ public string name; public int age; public string gender; pub

原创 c#之鏈棧

1,創建鏈棧的節點  LinkNode using System; using System.Collections.Generic; using System.Linq; using System.Text; using System

原创 C#之順序棧

1,定義順序棧接口 ISeqStack using System; using System.Collections.Generic; using System.Linq; using System.Text; using Syst

原创 HTML,CSS,JavaScript

1,HTML是網頁內容的載體。網頁內容指:網頁製作者想讓用戶在瀏覽器上瀏覽的信息,其包括文字,圖片,聲音,視頻等。 2,CSS樣式是表現。即,可以理解爲網頁的外表,如:標題字體,顏色變化,邊框,標題的圖片背景等。所有被用來改變網頁內容的

原创 c#之語音功能的實現

代碼示例: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.