untitled

Similar documents
untitled

untitled

untitled

untitled

1

中華人民共和國殘疾人保障法(2008年修訂)

微處理機實習期末專題

untitled

untitled

移民資料

第五章 鄉鎮圖書館閱讀推廣活動之分析

廢證相關作業

專 題 論 述

了 立 連 立 量 領 來 例 蘭 便 不 數 不 論 更 更 更 力 更 參 例 來 例 見 量 度 量 量 參 論 量 行 量 量 瑩 理 來 錄 量 量 不 力 省 力 立 力 量 量 量 了 量 便 錄 錄 錄 料 說 省 6

untitled

untitled

untitled

untitled

第三章 我國非營業特種基金制度及運作現況

依據教育部八十九年 月 日臺(八九)技(二)字第 號函

嘉義市都市計畫保護區農業區土地使用審查要點(草案)

untitled

地方公共服務績效比較評量之探討—標竿學習策略的觀點

臺灣地區的警察教育現況與展望

國立陽明大學輻射防護計畫書

untitled

I/O Files讀寫檔案:

untitled

untitled

4-04 論文封面(樣式)

untitled

untitled

untitled

九十三年第三期檔案管理工作研習營學員建議事項答覆情形彙整表

個人教室 / 網路硬碟

untitled

untitled

untitled

untitled

「UPENN牙醫學院見習及費城文藝之旅」成果報告書

untitled

untitled

龍華科技大學

untitled

untitled

untitled

行政院國科會九十一年度專題研究

untitled

untitled

untitled

廉 樂 不 廉 倫 理 廉 倫 理 領 不 參 領 不 若 不 不 不 不 利 聯 行 李 聯 例 律

untitled

untitled

說 列 流 不 不 理 料 理 路 數 錄 路 料 料 錄 路 列 來 料 便 利 行 狀 路 II

untitled

untitled

untitled

untitled

untitled

untitled

untitled

untitled

untitled

untitled

untitled

國立政治大學新研所碩士在職專班

性別主流化簡介

台灣經濟新報資料庫

untitled

大陸黨報集團化發展之研究

1-2岁宝宝的游戏和活动指南

untitled

2004/9/30

untitled

第五章 實例個案

untitled

untitled

untitled

/ 律 錄 例 契 契 了 益 不 了 契 了 契 益 契 契 益 契 參 契 契 立 六 不 來 利 契 立 說 見 了 精 神 說 契 契 利 益

untitled

吃寒天真的能減肥嗎

untitled

untitled

個人提供土地與建設公司合建分屋並出售合建分得之房屋,核屬營業稅法規定應課徵營業稅之範圍,自本函發布日起,經建築主管機關核發建造執照之合建分屋案件,附符合說明二之規定者外,均應辦理營業登記,課徵營業稅及營利事業所得稅

untitled

經濟部標準檢驗局台南分局

人身保險業務員資格測驗方案

untitled

untitled

untitled

untitled

四湖鄉志纂修

untitled

untitled

untitled

untitled

公立學校教職員成績考核辦法修正草案總說明

untitled

untitled

untitled

Transcription:

1

Outline 料 類 說

Tang, Shih-Hsuan 2006/07/26 ~ 2006/09/02 六 PM 7:00 ~ 9:30 聯 ives.net@gmail.com www.csie.ntu.edu.tw/~r93057/aspnet134

度 C# 力 度

C# Web SQL 料 DataGrid DataList

參 ASP.NET 1.0 C# 例 ASP.NET 立 例精 呂 林

20% 不 30% 六 度落 練 50% 行 參

Outline 料 類 說

Outline 料 類 說

理 路 見 Internet Information Services (IIS) Apache

不論 連 料

(1) 類 (JavaScript VBScript ) 令 令

(2) 類 (PHP ASP ASP.NET )

Outline 料 類 說

若 不 不

IIS (1) 行 ASP.NET Web IIS [ ] [ ] [/ Windows ]

IIS (2) [/ Windows ] [Windows 精靈 ] IIS 行

IIS (3) IIS 連 http://localhost/ 若 IIS 利

(1)

(2)

(3)

(4)

(5)

(6)

(7)

行 (1)

行 (2)

Outline 料 類 說 C#

串數 數 串 利 ToString() 來 例 int a = 321; string b = a.tostring(); 串 數 利 數 Parse() 來 例 string b = "321"; int a = int.parse(b);

流 ( ) 利 來 行流 if () { 立 行 ; } else { 不 立 行 ; }

流 利 if else if else if else 來 if (1) { 1; } else if (2) { 2; } else if (3) { 3; } else { 4; }

來 if else 流 更 數 =? 數 1 : 數 2 string a = 7>4? "7 4 " : "7 4 "; 7 4 string b = 1>4? "1 4 " : "1 4 "; 1 4

流 ( ) (1) 若 了 if else if else 流 switch switch () { case 1: 1 break; case 2: 2 break; default: break; }

流 ( ) (2) switch 流 不 更易 switch 數 數 串 料 料 若 1 便 行 1 break 離 switch 若 不 便 行 default

流 ( ) (1) 行 利 流 來 for ( ; ; ) { ; } for (int i=0; i<10; i++) { Console.Write (i + " "); } // 0 1 2 3 4 5 6 7 8 9

流 ( ) (2) 行 若 行 行 行 不 離 行 省略 for (int i=0, j=0; i*j <10; i++, j++) 量 若 省略 for ( ; ; )

數 數 數 來 數 例 數 便 數

Break Continue break for 行 若 break 句 立 離 continue for 行 若 continue 句 立

流 ( ) (1) for 行 數 while 行 不 行 while () { } int i = 0; while (i < 10) { i++; Console.Write(i + " "); } // 1 2 3 4 5 6 7 8 9 10

流 ( ) (2) while 行 立 立 行 while break continue false 句 while 不 行 while (Console.ReadLine()!= "yes");

流 ( ) (1) while 行 立 行 do while 行 不 行 行 do { } while ( );

流 ( ) (2) do { Console.WriteLine("1"); }while (false); // 1 do while break continue

列 列 列 料 數 列 料 串 數來 若 列來 列

列 度 (1) 列 0 1 2 3 4 列 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

列 料 [ ] 列 = new 料 [ 列 ]; 列 int[] myarray = new int[10]; string[] studentname = new string[100]; int[] a = new int[5] {0,1,2,3,4}; 列 int[,] b = new int[2,3]; int[,] c = new int[2,3] {{1,2,3},{4,5,6}};

流 ( ) 讀 () 列 利 foreach 來 foreach( 列 料 數 in 列 數 ) { ; } int[] arraya = new int[5] {10,1,2,3,4}; foreach(int a in arraya) { Console.WriteLine(a); }

(1) 類 類 狀 更 易 類 理 若 類 利 來 利 using 來 namespace { 類 ; }

(2) namespace IBM { class Notebook { } } namespace Compaq { class Notebook { } }

類别 類 來 類 列 欄 (field) (property) (method) (event)

類 車 車 來 車 類 類 new 來 類 = new 類 (); car mycar = new car(); car mycar; mycar = new car();

(1) 來 類 "." 來 () 來說 參數 ( 參數 ) { ; }

(2) public void hello() { Console.WriteLine(""); } 說 void () 不 參數

參數 (1) 類 參數 參數 ( 參數 1 參數 1, 參數 2 參數 2, ) { ; }

參數 (2) public int add(int a, int b) { return a + b; } 說 利 return 來

(1) 類 不 static 行 類 利 "." 連 Main

(2) static ( 參數 ) { ; } static void Main(string[] args) 說 Main 串 列 private

參數不 數 不 不 數 數

Object object 參 類 都 object 參 object Boxing 參 boxing ex object o = (int) 1; UnBoxing UnBoxing ex int i = (int) o;

ArrayList 類 (1) 列 列 不 便 ArrayList 料量 列 行 度 列不 不

ArrayList 類 (2) System.Collections; Count 數 Add Insert Remove Clear Sort Reverse