
以我的ASUS手機為例, <設定><開發人員選項>中, 有一個USB偵錯: 連接USB時進入偵測模式 請記得勾選, 否則會像下面這張圖一樣, 找不到任何硬體裝置 點選<設定>

1: function mouseMove (object, eventdata)
2: C = floor( get(gca, 'CurrentPoint'));
3: title(gca, ['(X,Y) = (', num2str(C(1,1)), ', ',num2str(C(1,2)), ')']);

1: public static Action A1 = () =>
2: {3: MessageBox.Show("call Action A");
4: };5: // 輸入參數: 1個
6: public static Action<string> A2 = (x) =>
7: { 8: MessageBox.Show(x); 9: };10: // 輸入參數: 2個
11: public static Action<string, string> A3 = (x1, x2) =>
12: { 13: MessageBox.Show( x1 + x2); 14: };15: // 輸入參數: 3個
16: public static Action<int, int, int> A4 = (x1, x2, x3) =>
17: {18: bool check1 = (x1 + x2) > x3;
19: bool check2 = (x2 + x3) > x1;
20: bool check3 = (x1 + x3) > x2;
21: if (check1 & check2 & check3)
22: {23: MessageBox.Show("合法三角形");
24: }25: else
26: {27: MessageBox.Show("不合法三角形");
28: } 29: };30: // 輸入參數: 4個
31: public static Action<int, int, int, string> A5 = (x1, x2, x3, str) =>
32: {33: if( !string.IsNullOrEmpty(str))
34: MessageBox.Show(str);35: bool check1 = (x1 + x2) > x3;
36: bool check2 = (x2 + x3) > x1;
37: bool check3 = (x1 + x3) > x2;
38: if (check1 & check2 & check3)
39: {40: MessageBox.Show("合法三角形");
41: }42: else
43: {44: MessageBox.Show("不合法三角形");
45: } 46: };



