<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>blue955</title>
	<atom:link href="http://m955.com/wp/feed" rel="self" type="application/rss+xml" />
	<link>http://m955.com/wp</link>
	<description>追風箏的小孩</description>
	<lastBuildDate>Thu, 01 Jul 2010 09:49:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>融資斷頭價位的計算</title>
		<link>http://m955.com/wp/archives/259</link>
		<comments>http://m955.com/wp/archives/259#comments</comments>
		<pubDate>Thu, 01 Jul 2010 09:49:07 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[理財]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/259</guid>
		<description><![CDATA[常在書籍上看到「等待融資斷頭時，就可以慢慢分批買進」，但是到底所謂「融資斷頭」價位是要如何計算呢？
通常我們在融資時，會看到規則上面寫所謂「融資維持率」，只要你低於這個維... ]]></description>
			<content:encoded><![CDATA[<p>常在書籍上看到「等待融資斷頭時，就可以慢慢分批買進」，但是到底所謂「融資斷頭」價位是要如何計算呢？</p>
<p>通常我們在融資時，會看到規則上面寫所謂「融資維持率」，只要你低於這個維持率，券商就會寄催繳單叫你補錢，繳不出錢的，券商就會把你的持股賣出，它才不管你套多少，只想收你利息錢。</p>
<p>不過我看不懂「融資維持率」，我相信很多人看不懂也在使用融資買股，個人建議能不用融資，就盡量別用。</p>
<p> <span id="more-259"></span>
<p>「融資維持率」公式如下：</p>
<p><img src="http://farm5.static.flickr.com/4119/4751714574_b971b57ba8_b.jpg" /> </p>
<p>簡單來說，比如說你融資買進一張100塊的股票，融資成數6成</p>
<p>那你的維持率=100 * 1000 / 60000 = 167%   <br />X / 60000 = 120%，X = 72塊</p>
<p>所以當你的股價低於72塊就需要補擔品金，不補的話，就會被斷頭。</p>
<p>所以，快速的算法是，你融資的股票價錢 * 0.72，就是會被斷頭的價錢</p>
<p>比如說，你融資買50塊的股票，在 50 * 0.72 = 36塊時會被斷頭。</p>
<p>文章參考於：<a href="http://tw.myblog.yahoo.com/jw!oK9tZceCFQNXvuvgM5.r4fgC0css/article?mid=732&amp;sc=1" target="_blank">圓夢</a></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/259/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[寺廟巡禮] 新港鄉大興宮</title>
		<link>http://m955.com/wp/archives/253</link>
		<comments>http://m955.com/wp/archives/253#comments</comments>
		<pubDate>Sun, 27 Jun 2010 17:28:16 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[寺廟巡禮]]></category>
		<category><![CDATA[寺廟]]></category>
		<category><![CDATA[旅遊]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/253</guid>
		<description><![CDATA[
 
「簡介」
新港大興宮初建於清乾隆三十二年(西元1767年)，後在嘉慶年間遭洪水沖毀，信眾們於清嘉慶九年重建新廟，經過多次地震天災與修築，現今為國家三級古蹟，廟宇內的雕刻與彩繪等... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://farm5.static.flickr.com/4134/4738301534_c6ef558df0_b.jpg" target="_blank" rel="lightbox"><img src="http://farm5.static.flickr.com/4134/4738301534_c6ef558df0.jpg" /></a></p>
<p> <span id="more-253"></span>
<p><font color="#004080">「簡介」</font></p>
<p><font color="#004080">新港大興宮初建於清乾隆三十二年(西元1767年)，後在嘉慶年間遭洪水沖毀，信眾們於清嘉慶九年重建新廟，經過多次地震天災與修築，現今為國家三級古蹟，廟宇內的雕刻與彩繪等工藝精湛，在住宅區與商業區之中顯得更有古意。大興宮的主祀神祇為保生大帝，原是由吳氏鄉親自福建漳州攜渡來台的原始神尊，後成為鄰近地區居民的信仰寄託。</font></p>
<p>以上是網路上找的到的簡介，在新港住了幾十年，新港除了奉天宮之外，其實也有很多值得去參觀的廟宇，這是一間位在新港後街的一間廟，在我讀國中時，天天騎腳踏車會經過這裡，在翻修前，說實在你看不出來他的價值何在。</p>
<p>在我剛退伍時，這間廟由「力園」的莊董標得這間古蹟翻修的工程，我們「晶洲陶藝有限公司」承包屋頂的剪黏工程，那時候我才知道這是一間有196年歷史的古蹟，現在國家列為三級古蹟，當然我也很榮幸能夠參與其中。</p>
<p>屋頂的剪黏是採用彩色的「瓷碗」來切割出細料部分，有別於一般直接用成品施工，這種施工方式非常費時費工，工作時間大約是一般的五倍以上，因為所有的人物配件，龍鱗片、鳳與花鳥羽毛、歸帶線路配色…等，都是用手工切割，在搭配研磨機塑型而成，每一塊配件都是獨一無二，沒有一塊是相同，這就是這種工法的價值所在，值得細細品味。</p>
<p>我當時是備料組，負責研磨造型，說實在的，真的苦不堪言，常常磨一整天，從手指、手腕、肩膀都酸麻到不行，背部也貼滿了痠痛藥膏，不過還是從上工第一天麻到工期結束，不只我這樣，備料組的另一個師傅也是如此，非常辛苦，不過現在看起來，能夠呈現這種作品，也非常值得。</p>
<p><a href="http://farm5.static.flickr.com/4136/4737668585_d92fdd79a1_b.jpg" target="_blank" rel="lightbox"><img src="http://farm5.static.flickr.com/4136/4737668585_d92fdd79a1.jpg" /></a> </p>
<p> ISO值開太高，設1600真是瘋了，我拍到一半才發現，原來前一天晚上開M模式，ISO忘記調回來，所以前幾張拍的有點醜，畫面顆粒很大。</p>
<p><a href="http://farm5.static.flickr.com/4123/4737680941_a1c0d2aaef_b.jpg" target="_blank" rel="lightbox"><img src="http://farm5.static.flickr.com/4123/4737680941_a1c0d2aaef.jpg" /></a> </p>
</p>
<p> ISO值調回AUTO，畫面就柔和多了，這一張我們可以很清楚的看到，財子壽衣服上的瓷片一塊一塊的，那都是瓷碗割出來的，當然別懷疑旁邊的龍身上的鱗片也是。</p>
<p><a href="http://farm5.static.flickr.com/4143/4737680323_ca510a2ae4_b.jpg" target="_blank" rel="lightbox"><img src="http://farm5.static.flickr.com/4143/4737680323_ca510a2ae4.jpg" /></a> </p>
<p> 降龍</p>
<p><a href="http://farm5.static.flickr.com/4096/4737673525_13b9eb3044_b.jpg" target="_blank" rel="lightbox"><img src="http://farm5.static.flickr.com/4096/4737673525_13b9eb3044.jpg" /></a> </p>
<p> 伏虎</p>
<p><a href="http://farm5.static.flickr.com/4137/4737671813_1607a8eb8c_b.jpg" target="_blank" rel="lightbox"><img src="http://farm5.static.flickr.com/4137/4737671813_1607a8eb8c.jpg" /></a> </p>
<p> 串角的草仔花</p>
</p>
<p><a href="http://farm5.static.flickr.com/4136/4737674173_87606a09c7_b.jpg" target="_blank" rel="lightbox"><img src="http://farm5.static.flickr.com/4136/4737674173_87606a09c7.jpg" /></a> </p>
<p> 後殿全景</p>
<p><a href="http://farm5.static.flickr.com/4081/4738309692_c4076f4c2e_b.jpg" target="_blank" rel="lightbox"><img src="http://farm5.static.flickr.com/4081/4738309692_c4076f4c2e.jpg" /></a> </p>
<p> 後殿排仔頭人物，都是採仿古手法製作。</p>
<p><a href="http://farm5.static.flickr.com/4074/4738309068_1d7cd4b14e_b.jpg" target="_blank" rel="lightbox"><img src="http://farm5.static.flickr.com/4074/4738309068_1d7cd4b14e.jpg" /></a> </p>
<p> 雙龍拜塔</p>
</p>
<p><a href="http://farm5.static.flickr.com/4116/4737676157_4af1f6db3b_b.jpg" target="_blank" rel="lightbox"><img src="http://farm5.static.flickr.com/4116/4737676157_4af1f6db3b.jpg" /></a> </p>
<p> 後殿排仔頭人物</p>
<p><a href="http://farm5.static.flickr.com/4081/4737670359_a4bf88f6d6_b.jpg" target="_blank" rel="lightbox"><img src="http://farm5.static.flickr.com/4081/4737670359_a4bf88f6d6.jpg" /></a> </p>
<p> 拜亭樑彩繪，樑柱採古法用原木製成</p>
</p>
<p><a href="http://farm5.static.flickr.com/4119/4737672695_8a1e4acf95_b.jpg" target="_blank" rel="lightbox"><img src="http://farm5.static.flickr.com/4119/4737672695_8a1e4acf95.jpg" /></a> </p>
<p> 側亭樑彩繪</p>
<p><a href="http://farm5.static.flickr.com/4140/4738311028_9492074927_b.jpg" target="_blank" rel="lightbox"><img src="http://farm5.static.flickr.com/4140/4738311028_9492074927.jpg" /></a> </p>
<p> 側亭裡所立寺廟沿革石碑</p>
<p><a href="http://farm5.static.flickr.com/4137/4737679647_f182efd108_b.jpg" target="_blank" rel="lightbox"><img src="http://farm5.static.flickr.com/4137/4737679647_f182efd108.jpg" /></a> </p>
<p> 龍柱</p>
<p><a href="http://farm5.static.flickr.com/4097/4737678965_36ec9d9f08_b.jpg" target="_blank" rel="lightbox"><img src="http://farm5.static.flickr.com/4097/4737678965_36ec9d9f08.jpg" /></a> </p>
<p> 虔誠的信徒敬獻，代表著對神明的心意</p>
<p><a href="http://farm5.static.flickr.com/4121/4737669429_e2eb170893_b.jpg" target="_blank" rel="lightbox"><img src="http://farm5.static.flickr.com/4121/4737669429_e2eb170893.jpg" /></a> </p>
<p> 鄉公所立旅遊導覽</p>
</p>
<p><a href="http://farm5.static.flickr.com/4140/4737677559_ca225e507e_b.jpg" target="_blank" rel="lightbox"><img src="http://farm5.static.flickr.com/4140/4737677559_ca225e507e.jpg" /></a> </p>
<p>&#160;</p>
<p><a href="http://farm5.static.flickr.com/4136/4737678355_4823e4d62c_b.jpg" target="_blank" rel="lightbox"><img src="http://farm5.static.flickr.com/4136/4737678355_4823e4d62c.jpg" /></a> </p>
<p>&#160;</p>
<p><a href="http://farm5.static.flickr.com/4123/4738305636_53fec7210c_b.jpg" target="_blank" rel="lightbox"><img src="http://farm5.static.flickr.com/4123/4738305636_53fec7210c.jpg" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/253/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Vista事件簿 01] KMPlayer 或 Media Player Classic 播放影片變黑白</title>
		<link>http://m955.com/wp/archives/249</link>
		<comments>http://m955.com/wp/archives/249#comments</comments>
		<pubDate>Fri, 21 Aug 2009 10:40:20 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[軟體]]></category>
		<category><![CDATA[Vista事件簿]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/249</guid>
		<description><![CDATA[&#160;&#160;&#160;&#160;&#160;&#160;&#160; 話說因為買了一台新筆電，所以必須強迫升級到 Vista，離開了熟悉的 XP，踏入看似燦爛的 Vista 世界，竟開啟了一段奇妙的旅程，我將其遇到的事物，寫成這「Vis... ]]></description>
			<content:encoded><![CDATA[<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 話說因為買了一台新筆電，所以必須強迫升級到 Vista，離開了熟悉的 XP，踏入看似燦爛的 Vista 世界，竟開啟了一段奇妙的旅程，我將其遇到的事物，寫成這「Vista事件簿」，希望可以幫助到跟我一樣在 Vista 迷航的人。</p>
<p>「事件01：KMPlayer 或 Media Player Classic 播放影片變黑白」</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 現在大多數的人都是用 KMPlayer 或 Media Player Classic 搭配 K-Lite Codec Pack 解碼包來播放影片，以上搭配在影音界堪稱「無敵影音播放組」，而小弟我當然也不例外，在 XP 時代我使用「無敵影音播放組」快樂的看著我的毛片，已經有四年之久，於是乎當我踏進 Vista 的世界裡的時候，我感到徬徨無助，於是乎我呼叫「無敵影音播放組」，來慰藉我無助的心靈。</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 當我安裝好 KMPlayer + Media Player Classic + K-Lite Codec Pack ，播放影片一看，竟然變成以下德行：</p>
<p><a href="http://farm4.static.flickr.com/3418/3841620061_7738fac1fc_o.jpg" target="_blank" rel="lightbox"><img src="http://farm4.static.flickr.com/3418/3841620061_133545c25c_m.jpg" /></a>&#160; <br />（現在要在電腦裡找到有穿衣服的護士，真的很難）</p>
<p> <span id="more-249"></span>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 沒錯，都變成黑白的，這叫我情何以堪啊，當下我的人生隨著畫面瞬間變成黑白，於是乎我開始展開「拯救播放器大作戰」，KMPlayer 從免安裝版本，灌到安裝版本，在重安裝版本，換回免安裝版本，還是於事無補。</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 那從 K-Lite Codec Pack 下手好了，一路重 1.46 版灌到最新 5.05 版，幾乎網路上找的到的版本都灌過一次了，結果還是黑白。</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 那來重灌 Vista 好了，天殺的，你知道灌好一次 Vista，還要 Update，安裝程式軟體，還要優化，需要花費多少時間嗎？我灌到晚上 3 點半，隔天還要起來上班的心情，真的生不如死，被整了 2 天，結果呢？還是黑白。</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 開始 Google，之前就有找過，不過沒有找到相關的解答，這次再找也是抱持著姑且試試的心態，如果找不到的話，就換替代的播放器好了，結果！！！讓我在百度上一個小角落裡找到瞭解決方法。當下試試，竟然變彩色了，天！當下真的有感動到。</p>
<p><a href="http://farm4.static.flickr.com/3422/3842413314_e34ff1d0a0_o.jpg" target="_blank" rel="lightbox"><img src="http://farm4.static.flickr.com/3422/3842413314_c101859130_m.jpg" /></a> </p>
<p>&#160;</p>
<p>======================== 來點分隔線吧 ========================</p>
<p><font color="#0000ff" size="5"><strong>[子事件01] 解決 KMPlayer 播放黑白的方法：</strong></font></p>
<p>右鍵 &#8594; 視訊(進階) &#8594; 品質(3GHz)</p>
<p><a href="http://farm4.static.flickr.com/3487/3841620279_f27e9bd17a_o.jpg" target="_blank" rel="lightbox"><img src="http://farm4.static.flickr.com/3487/3841620279_76f0fd1dba_m.jpg" /></a> </p>
<p>沒錯！就是這麼簡單！</p>
<p>&#160;</p>
<p>======================== 來點分隔線吧 ========================</p>
<p><font color="#0000ff" size="5"><strong>[子事件02] 解決 Media Player Classic 播放黑白的方法：</strong></font></p>
<p>選項&#160; 輸出&#160; 點選舊式成像</p>
<p><a href="http://farm3.static.flickr.com/2509/3842413690_2b2179546e_o.jpg" target="_blank" rel="lightbox"><img src="http://farm3.static.flickr.com/2509/3842413690_a0b7f77bdc_m.jpg" /></a> </p>
<p>效果前後對照：</p>
<p><a href="http://farm3.static.flickr.com/2624/3842413482_38d64ac73d_o.jpg" target="_blank" rel="lightbox"><img src="http://farm3.static.flickr.com/2624/3842413482_44b1cf40d7_m.jpg" /></a>&#160;&#160; <a href="http://farm3.static.flickr.com/2623/3841620917_7d6e77e89c_o.jpg" target="_blank" rel="lightbox"><img src="http://farm3.static.flickr.com/2623/3841620917_a171767659_m.jpg" /></a> </p>
<p>&#160;</p>
<p>以上獻給無助的兄弟們吧！</p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/249/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>今天考丙級軟體設計...</title>
		<link>http://m955.com/wp/archives/248</link>
		<comments>http://m955.com/wp/archives/248#comments</comments>
		<pubDate>Wed, 12 Aug 2009 13:00:40 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[亂講]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/248</guid>
		<description><![CDATA[好吧！我承認我槓龜了，今天算白跑一趟，已經是小心再小心了，搜尋以前考過的經驗談，考試前寫下每個題組的重點，不過還是徒勞無功。
原因是：「我根本就買錯書了」，同樣是 CC123 出版... ]]></description>
			<content:encoded><![CDATA[<p>好吧！我承認我槓龜了，今天算白跑一趟，已經是小心再小心了，搜尋以前考過的經驗談，考試前寫下每個題組的重點，不過還是徒勞無功。</p>
<p>原因是：「我根本就買錯書了」，同樣是 CC123 出版的，不過有分 2006 版，及 2008 版，新版本有修正以前出現的 BUG，不過我沒買，所以我不知道。</p>
<p>舉例來說，舊版在題庫方面有是非、選擇兩種，不過今天我到考場才知道，原來軟設的學科已經去掉是非，改成選擇題 80 題，幸好學科還有過，不然真是欲哭無淚，白白浪費這麼多時間。</p>
<p>再買本 2008 版，重新來過吧！</p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/248/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Windows Installer CleanUp 公用程式，解決軟體無法安裝的問題</title>
		<link>http://m955.com/wp/archives/246</link>
		<comments>http://m955.com/wp/archives/246#comments</comments>
		<pubDate>Sun, 02 Aug 2009 11:00:13 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[軟體]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/246</guid>
		<description><![CDATA[最近遇到了 MSN 無法安裝的問題，出現如下訊息：
1.您的電腦已經有較新 Windows Live Messenger 版本&#8230;.
 
2.Windows Live Messenger 安裝失敗，錯誤碼是: &#8216;1603&#8242;。
找了很久都找不出原因，而新增... ]]></description>
			<content:encoded><![CDATA[<p>最近遇到了 MSN 無法安裝的問題，出現如下訊息：</p>
<p><strong><font color="#0000ff">1.您的電腦已經有較新 Windows Live Messenger 版本&#8230;.</font></strong></p>
<p><img src="http://farm4.static.flickr.com/3485/3780046565_b36e7f2dfd_o.png" /> </p>
<p><strong><font color="#0000ff">2.Windows Live Messenger 安裝失敗，錯誤碼是: &#8216;1603&#8242;。</font></strong></p>
<p>找了很久都找不出原因，而新增移除內，也沒有新版的 MSN，所以就這樣一直無法安裝 MSN，後來突然想到，我之前有抓過 MSN9 免安裝版，但是無法執行所以我就刪除它了，應該是這個問題，造成我無法安裝 MSN。</p>
<p>但是我也沒沒辦法移除 MSN9 的安裝訊息，因為在 新增/移除 內沒有選項可供移除，後來 Google 了一下，發現微軟有出 <a href="http://support.microsoft.com/kb/290301/zh-tw" target="_blank">Windows Installer CleanUp</a> 公用程式，可以移除系統內的幽靈程式，使用方法很簡單，選擇您要移除的項目，按下 Remove 按鈕即可。</p>
<p>系統執行畫面如下：</p>
<p><img src="http://farm3.static.flickr.com/2424/3780871474_131ee701c3_o.png" /></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/246/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用 ZedGraph 製作統計圖</title>
		<link>http://m955.com/wp/archives/237</link>
		<comments>http://m955.com/wp/archives/237#comments</comments>
		<pubDate>Wed, 22 Jul 2009 08:23:30 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[圖表]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/237</guid>
		<description><![CDATA[這幾天研究了 ZedGraph，發現它是一套很好用的畫圖表工具，練習做了一個統計圖，大家參考看看！

PLAIN TEXT
C#:




//記得要加入參考


using ZedGraph;


&#160;


//資料來源&#160; &#160; &#160; &#160; 


privat... ]]></description>
			<content:encoded><![CDATA[<p>這幾天研究了 ZedGraph，發現它是一套很好用的畫圖表工具，練習做了一個統計圖，大家參考看看！</p>
<p><a href="http://farm4.static.flickr.com/3529/3744942595_3e8b5a6bcb_o.png" target="_blank" rel="lightbox"><img src="http://farm4.static.flickr.com/3529/3744942595_226b42dbe7.jpg"></a></p>
<div class="igBar"><span id="lcsharp-2"><a href="#" onclick="javascript:showPlainTxt('csharp-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C#:</span>
<div id="csharp-2">
<div class="csharp">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #008080; font-style: italic;">//記得要加入參考</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">using</span> ZedGraph;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #008080; font-style: italic;">//資料來源&nbsp; &nbsp; &nbsp; &nbsp; </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">private</span> DataTable getDT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; DataTable dt = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> DataTable<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; dt.<span style="color: #0000FF;">Columns</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"學號"</span>, <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Type</span>.<span style="color: #0000FF;">GetType</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"System.String"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; dt.<span style="color: #0000FF;">Columns</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"姓名"</span>, <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Type</span>.<span style="color: #0000FF;">GetType</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"System.String"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; dt.<span style="color: #0000FF;">Columns</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"國文"</span>, <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Type</span>.<span style="color: #0000FF;">GetType</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"System.Int32"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; dt.<span style="color: #0000FF;">Columns</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"英文"</span>, <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Type</span>.<span style="color: #0000FF;">GetType</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"System.Int32"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; dt.<span style="color: #0000FF;">Columns</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"數學"</span>, <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Type</span>.<span style="color: #0000FF;">GetType</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"System.Int32"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; dt.<span style="color: #0000FF;">Rows</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"B9510001"</span>, <span style="color: #808080;">"崔昱翰"</span>, <span style="color: #FF0000;color:#800000;">85</span>, <span style="color: #FF0000;color:#800000;">66</span>, <span style="color: #FF0000;color:#800000;">71</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; dt.<span style="color: #0000FF;">Rows</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"B9510002"</span>, <span style="color: #808080;">"王詩光"</span>, <span style="color: #FF0000;color:#800000;">65</span>, <span style="color: #FF0000;color:#800000;">92</span>, <span style="color: #FF0000;color:#800000;">88</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; dt.<span style="color: #0000FF;">Rows</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"B9510003"</span>, <span style="color: #808080;">"劉育白"</span>, <span style="color: #FF0000;color:#800000;">52</span>, <span style="color: #FF0000;color:#800000;">66</span>, <span style="color: #FF0000;color:#800000;">63</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; dt.<span style="color: #0000FF;">Rows</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"B9510004"</span>, <span style="color: #808080;">"許威宇"</span>, <span style="color: #FF0000;color:#800000;">98</span>, <span style="color: #FF0000;color:#800000;">70</span>, <span style="color: #FF0000;color:#800000;">61</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; dt.<span style="color: #0000FF;">Rows</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"B9510005"</span>, <span style="color: #808080;">"李佩珊"</span>, <span style="color: #FF0000;color:#800000;">81</span>, <span style="color: #FF0000;color:#800000;">63</span>, <span style="color: #FF0000;color:#800000;">76</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; dt.<span style="color: #0000FF;">Rows</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"B9510006"</span>, <span style="color: #808080;">"潘紹興"</span>, <span style="color: #FF0000;color:#800000;">91</span>, <span style="color: #FF0000;color:#800000;">77</span>, <span style="color: #FF0000;color:#800000;">76</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0600FF;">return</span> dt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #008080; font-style: italic;">//學生成績</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">public</span> <span style="color: #0600FF;">void</span> StudentChart1<span style="color: #000000;">&#40;</span>ZedGraphControl zgc<span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Google網域搜尋：Fill site:http://zedgraph.sourceforge.net/documentation</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; GraphPane myPane = zgc.<span style="color: #0000FF;">GraphPane</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; DataTable dt = getDT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Set the title and axis labels</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; myPane.<span style="color: #0000FF;">Title</span>.<span style="color: #0000FF;">Text</span> = <span style="color: #808080;">"學生成績量化表"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; myPane.<span style="color: #0000FF;">XAxis</span>.<span style="color: #0000FF;">Title</span>.<span style="color: #0000FF;">Text</span> = <span style="color: #808080;">"學生姓名"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; myPane.<span style="color: #0000FF;">YAxis</span>.<span style="color: #0000FF;">Title</span>.<span style="color: #0000FF;">Text</span> = <span style="color: #808080;">"分數"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; PointPairList list1 = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> PointPairList<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; PointPairList list2 = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> PointPairList<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; PointPairList list3 = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> PointPairList<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; Random rand = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> Random<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Generate random data for three curves</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0600FF;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> i = <span style="color: #FF0000;color:#800000;">0</span>; i &lt;dt.<span style="color: #0000FF;">Rows</span>.<span style="color: #0000FF;">Count</span>; i++<span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #FF0000;">double</span> x = <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">double</span><span style="color: #000000;">&#41;</span>i;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #FF0000;">double</span> y1_chian = Convert.<span style="color: #0000FF;">ToDouble</span><span style="color: #000000;">&#40;</span>dt.<span style="color: #0000FF;">Rows</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #808080;">"國文"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #FF0000;">double</span> y2_eng = Convert.<span style="color: #0000FF;">ToDouble</span><span style="color: #000000;">&#40;</span>dt.<span style="color: #0000FF;">Rows</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #808080;">"英文"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #FF0000;">double</span> y3_math = Convert.<span style="color: #0000FF;">ToDouble</span><span style="color: #000000;">&#40;</span>dt.<span style="color: #0000FF;">Rows</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #808080;">"數學"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; list1.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span>x, y1_chian<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; list2.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span>x, y2_eng<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; list3.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span>x, y3_math<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// create the curves</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// BarItem.Bar.Fill(Color) 填入單一顏色</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// BarItem.Bar.Fill(Color, Color, Color, 90) 填入漸層顏色，第4參數是旋轉角度</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; BarItem myCurve1 = myPane.<span style="color: #0000FF;">AddBar</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"國文"</span>, list1, Color.<span style="color: #0000FF;">Red</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; myCurve1.<span style="color: #0000FF;">Bar</span>.<span style="color: #0000FF;">Fill</span> = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> Fill<span style="color: #000000;">&#40;</span>Color.<span style="color: #0000FF;">FromArgb</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;color:#800000;">255</span>, <span style="color: #FF0000;color:#800000;">238</span>, <span style="color: #FF0000;color:#800000;">221</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; BarItem myCurve2 = myPane.<span style="color: #0000FF;">AddBar</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"英文"</span>, list2, Color.<span style="color: #0000FF;">Blue</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; myCurve2.<span style="color: #0000FF;">Bar</span>.<span style="color: #0000FF;">Fill</span> = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> Fill<span style="color: #000000;">&#40;</span>Color.<span style="color: #0000FF;">FromArgb</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;color:#800000;">221</span>, <span style="color: #FF0000;color:#800000;">255</span>, <span style="color: #FF0000;color:#800000;">238</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; BarItem myCurve3 = myPane.<span style="color: #0000FF;">AddBar</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"數學"</span>, list3, Color.<span style="color: #0000FF;">Green</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; myCurve3.<span style="color: #0000FF;">Bar</span>.<span style="color: #0000FF;">Fill</span> = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> Fill<span style="color: #000000;">&#40;</span>Color.<span style="color: #0000FF;">FromArgb</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;color:#800000;">238</span>, <span style="color: #FF0000;color:#800000;">221</span>, <span style="color: #FF0000;color:#800000;">255</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Fill the axis background with a color gradient</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// 背景色</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// myPane.Chart.Fill = new Fill(Color.White, Color.FromArgb(255, 255, 166), 45.0F);</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; myPane.<span style="color: #0000FF;">XAxis</span>.<span style="color: #0000FF;">MajorTic</span>.<span style="color: #0000FF;">IsBetweenLabels</span> = <span style="color: #0600FF;">true</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//加入X LabelText</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #FF0000;">string</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> labels = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> <span style="color: #FF0000;">string</span><span style="color: #000000;">&#91;</span><span style="color: #FF0000;color:#800000;">6</span><span style="color: #000000;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0600FF;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> i = <span style="color: #FF0000;color:#800000;">0</span>; i &lt;dt.<span style="color: #0000FF;">Rows</span>.<span style="color: #0000FF;">Count</span>; i++<span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; labels<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> = Convert.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span>dt.<span style="color: #0000FF;">Rows</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #808080;">"姓名"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; myPane.<span style="color: #0000FF;">XAxis</span>.<span style="color: #0000FF;">Scale</span>.<span style="color: #0000FF;">TextLabels</span> = labels; <span style="color: #008080; font-style: italic;">//X軸的說明文字</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; myPane.<span style="color: #0000FF;">XAxis</span>.<span style="color: #0000FF;">Type</span> = AxisType.<span style="color: #0000FF;">Text</span>;&nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//X軸類型</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//重新計算目前數據範圍</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; zgc.<span style="color: #0000FF;">AxisChange</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// expand the range of the Y axis slightly to accommodate the labels</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// myPane.YAxis.Scale.Max += myPane.YAxis.Scale.MajorStep;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// YAxis最大值</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; myPane.<span style="color: #0000FF;">YAxis</span>.<span style="color: #0000FF;">Scale</span>.<span style="color: #0000FF;">Max</span> = <span style="color: #FF0000;color:#800000;">110</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Create TextObj's to provide labels for each bar</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// 在bar上顯示數值</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; BarItem.<span style="color: #0000FF;">CreateBarLabels</span><span style="color: #000000;">&#40;</span>myPane, <span style="color: #0600FF;">false</span>, <span style="color: #808080;">"f0"</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//顯示格點</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; myPane.<span style="color: #0000FF;">YAxis</span>.<span style="color: #0000FF;">MajorGrid</span>.<span style="color: #0000FF;">IsVisible</span> = <span style="color: #0600FF;">true</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; myPane.<span style="color: #0000FF;">XAxis</span>.<span style="color: #0000FF;">MajorGrid</span>.<span style="color: #0000FF;">IsVisible</span> = <span style="color: #0600FF;">true</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/237/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.Net 第三方繪圖控件 dotnetCharting 和 ZedGraph 比較，</title>
		<link>http://m955.com/wp/archives/235</link>
		<comments>http://m955.com/wp/archives/235#comments</comments>
		<pubDate>Tue, 21 Jul 2009 09:10:50 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[圖表]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/235</guid>
		<description><![CDATA[&#160;&#160;&#160;&#160;&#160;&#160;&#160; 最近參考了幾個統計圖表控件包，OpenSource 的有 ZedGraph，Nplot 等，但是相比之下還是 ZedGraph 強大，方便一些，其他的感覺還是半成品。

&#160;&#160;&#160;&#160;&#160;&#... ]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 最近參考了幾個統計圖表控件包，OpenSource 的有 <a href="http://zedgraph.org/" target="_blank">ZedGraph</a>，<a href="http://netcontrols.org/nplot/" target="_blank">Nplot</a> 等，但是相比之下還是 ZedGraph 強大，方便一些，其他的感覺還是半成品。
<p><img src="http://farm3.static.flickr.com/2630/3742414956_6a73bc31b8_o.png">
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 收費的套件就多了，只要是商業的報表開發工具都有統計圖表的功能，水晶報表，ActiveReport，Reporting Service，不過要方便，功能單一的還是 <a href="http://www.dotnetcharting.com/" target="_blank">dotnetCharting</a>。下面主要從 winform 使用上說說 ZedGraph 和 dotnetCharting。
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 從效果上說 dotnetCharting 確實沒的說，水晶式效果很是炫目，這應該是其最大的賣點。為了便於開發者學習，帶了各種效果的示例代碼。DotnetCharting 在產生統計圖的時候需要設置一個臨時目錄，用來保存產生的統計圖的圖片，dotnetCharting 的圖表效果好，很大程度上是因為它生成了圖片，然後將其顯示在界面上。當然，作為代價，它犧牲了性能。同時，它不支持縮放，雖然你可以通過更改坐標軸的刻度來實現這個功能，但是性能上就差了很多。
<p>如果你對性能要求不高，<a href="http://www.dotnetcharting.com/" target="_blank">dotnetCharting</a> 是非常好的選擇。
<p><img src="http://farm3.static.flickr.com/2601/3742415058_e51fc0c355.jpg">
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ZedGraph 最大的賣點在哪裡？應該是OpenSource，你可以修改代碼以適應自己的需求，例如：ZedGraph 在畫線型圖的時候，線條沒有使用抗鋸齒，你只要修改 Line類的 Default 結構中的預設設置就可以了。和 dotnetCharting 相比，ZedGraph 的效果要差一些，不過，要是自己調整的好，也還不錯，但是 ZedGraph 的優勢不在這裡。
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 由於 ZedGraph 是使用 GDI+ 直接在 Canvas 上進行描畫，所以，性能得到了保證，如果你改變坐標軸的刻度，和 dotnetCharing 相比，ZedGraph 的反應速度是很快的。基於此，ZedGraph 提供了很重要的縮放和拖動功能，你可以通過鼠標滾輪進行方法，縮小圖表，可以通過鼠標中鍵來拖動，非常方便。
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 對於類似股市的實時走勢，CPU 使用率等實時變化的數據，使用 ZedGraph 也可以很方便地作到。ZedGraph 在基於 PointPairList 作畫，所以你只要在 PointPairList 這個集合中添加新的數據，然後進行重畫就可以實現了，對於性能，上面說了，由於是直接使用 GDI+，性能是比較好的，我測過 400 個點是沒問題的。所以，ZedGraph 對於實時要求比較強的需求也是可以應對的。
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 總結的來說，dotnetCHARTING 產出的圖表效果好，但是性能方面較差，對實時要求強的需求不適應。ZedGraph 開放原始碼，效果比起 dotnetCHARTING 差，但是性能好，能適應有實時要求的數據。
<p>本文章轉貼於：<a title="http://blog.csai.cn/user1/17072/archives/2009/37706.html" href="http://blog.csai.cn/user1/17072/archives/2009/37706.html" target="_blank">http://blog.csai.cn/user1/17072/archives/2009/37706.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/235/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CrystalDiskInfo 快速瞭解硬碟的情形</title>
		<link>http://m955.com/wp/archives/232</link>
		<comments>http://m955.com/wp/archives/232#comments</comments>
		<pubDate>Mon, 20 Jul 2009 16:38:20 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[軟體]]></category>
		<category><![CDATA[綠色軟體]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/232</guid>
		<description><![CDATA[ 
這是一套綠色軟體，開放原始碼，免安裝，支援中文系統，CrystalDiskInfo 有助於我們瞭解目前電腦中工作的硬碟，健康情形如何，其實最主要我還是看「使用時間」的多少，來判定硬碟的狀況... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://farm4.static.flickr.com/3464/3738913845_7e0aa1a27b_o.png" target="_blank" rel="lightbox"><img src="http://farm4.static.flickr.com/3464/3738913845_230fb196b7.jpg"></a> </p>
<p>這是一套綠色軟體，開放原始碼，免安裝，支援中文系統，CrystalDiskInfo 有助於我們瞭解目前電腦中工作的硬碟，健康情形如何，其實最主要我還是看「使用時間」的多少，來判定硬碟的狀況如何！</p>
<p>下載：<a href="http://doiop.com/lhn95f" target="_blank">CrystalDiskInfo 2.1.0</a></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/232/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Locate32 超強本地端檔案搜尋軟體</title>
		<link>http://m955.com/wp/archives/230</link>
		<comments>http://m955.com/wp/archives/230#comments</comments>
		<pubDate>Thu, 16 Jul 2009 13:47:29 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[軟體]]></category>
		<category><![CDATA[綠色軟體]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/230</guid>
		<description><![CDATA[如果你有使用過 Linux 上的 Locate 搜尋功能，一定對此超快的檔案搜尋感到記憶深刻，Locate 的運作原理是在本機上建立一個索引檔，在找檔案的時候，參考此索引檔，所以才會很快，不過也有一... ]]></description>
			<content:encoded><![CDATA[<p>如果你有使用過 Linux 上的 <a href="http://linux.vbird.org/linux_basic/0220filemanager.php#locate" target="_blank">Locate</a> 搜尋功能，一定對此超快的檔案搜尋感到記憶深刻，Locate 的運作原理是在本機上建立一個索引檔，在找檔案的時候，參考此索引檔，所以才會很快，不過也有一個缺點，索引檔必須常更新，已確保找出來的檔案是正確的，在 Linux 上我們必須藉助 Script 、或排程來達成自動更新的效果。</p>
<p>現在Win32上也有類似的搜尋軟體，Locate32 它的原理，也是建立索引檔來搜尋，內見排程功能，可以設定自動更新。建議每天至少更新一次。</p>
<p>我們可以丟掉 Windows 內建的搜尋了。</p>
<p>官方下載：<a title="http://locate32.net/index.php" href="http://locate32.net/index.php" target="_blank">http://locate32.net/index.php</a></p>
<p>中文化下載：<a title="http://portable.easylife.tw/397" href="http://portable.easylife.tw/397" target="_blank">http://portable.easylife.tw/397</a></p>
<p><img src="http://farm3.static.flickr.com/2634/3725996961_84bdc9e6a1_o.png"></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/230/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Virtual Floppy Drive（虛擬軟碟機）</title>
		<link>http://m955.com/wp/archives/221</link>
		<comments>http://m955.com/wp/archives/221#comments</comments>
		<pubDate>Thu, 16 Jul 2009 08:39:36 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[軟體]]></category>
		<category><![CDATA[綠色軟體]]></category>

		<guid isPermaLink="false">http://m955.com/wp/?p=221</guid>
		<description><![CDATA[雖然軟碟機已經逐漸在PC上消失，但是在某些場合還是必須要用到，例如我最近遇到的問題，我報名丙級軟體設計，簡章附的資料必須在軟碟機中執行，搞的我一個頭兩個大，去買一個也不是，... ]]></description>
			<content:encoded><![CDATA[<p>雖然軟碟機已經逐漸在PC上消失，但是在某些場合還是必須要用到，例如我最近遇到的問題，我報名丙級軟體設計，簡章附的資料必須在軟碟機中執行，搞的我一個頭兩個大，去買一個也不是，不用軟碟練習也不是。</p>
<p>幸好找到這一個 Virtual Floppy Drive（VFD虛擬軟碟機），可以在電腦上模擬一個A：磁碟機，可讀可寫，方便的很。</p>
<p>官方下載：<a title="http://chitchat.at.infoseek.co.jp/vmware/vfd.html" href="http://chitchat.at.infoseek.co.jp/vmware/vfd.html" target="_blank">http://chitchat.at.infoseek.co.jp/vmware/vfd.html</a></p>
<p>一、解開壓縮後執行，先切換到 Driver 頁面，在 Driver File 選擇目錄下的 vfd.sys，然後選擇 Install 安裝，接著點選 Start，虛擬裝置就開始運行了。</p>
<p align="left">&nbsp;<a href="http://farm3.static.flickr.com/2454/3726390726_e223714f98_o.png" target="_blank" rel="lightbox"><img src="http://farm3.static.flickr.com/2454/3726390726_4901e61c5b_m.jpg"></a></p>
<p>&nbsp;</p>
<p>二、接著切換到 Driver0 頁面，點選上方的 Driver Letter 的 Change 按鈕，選擇裝置的代號，一般預設為 A 槽，按下 OK 選擇完成後，就可以在「我的電腦」裡，看見 3.5軟碟機(A:) 出現了。</p>
<p align="left"><img src="http://farm3.static.flickr.com/2537/3726391132_997e3062ff_o.png">&nbsp;&nbsp; <img src="http://farm4.static.flickr.com/3467/3725585323_524709f24f_o.png"> </p>
<p>&nbsp;</p>
<p>三、建立磁碟機的映像檔，同樣在 Driver0 頁面，點選下方 Open/Create 按鈕，在開啟的新視窗中，點選 Create 按鈕，建立映像檔，這時候進入「3.5軟碟機(A:)」中，就可以存取檔案了。</p>
<p align="left"><a href="http://farm3.static.flickr.com/2628/3725585123_2eb82c10b9_o.png" target="_blank" rel="lightbox"><img src="http://farm3.static.flickr.com/2628/3725585123_5770ee5242_m.jpg"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/221/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>連結資料庫四大步驟（以 ASP.NET 為例）</title>
		<link>http://m955.com/wp/archives/219</link>
		<comments>http://m955.com/wp/archives/219#comments</comments>
		<pubDate>Mon, 22 Jun 2009 13:54:33 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[ADO.NET]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://m955.com/wp/?p=219</guid>
		<description><![CDATA[其實 WinForm 跟 WebForm 在連結資料庫方面其實差不了太多。
PLAIN TEXT
C#:




protected void Page_Load&#40;object sender, EventArgs e&#41;


&#123;


&#160; &#160; //第一：連結SQL資料庫


&#160; &#160; string connstr = @"Data Sou... ]]></description>
			<content:encoded><![CDATA[<p>其實 WinForm 跟 WebForm 在連結資料庫方面其實差不了太多。</p>
<div class="igBar"><span id="lcsharp-4"><a href="#" onclick="javascript:showPlainTxt('csharp-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C#:</span>
<div id="csharp-4">
<div class="csharp">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">protected</span> <span style="color: #0600FF;">void</span> Page_Load<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, EventArgs e<span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//第一：連結SQL資料庫</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #FF0000;">string</span> connstr = <span style="color: #808080;">@"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\test_Data.MDF;Integrated Security=True;Connect Timeout=30;User Instance=True"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; SqlConnection conn = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> SqlConnection<span style="color: #000000;">&#40;</span>connstr<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; conn.<span style="color: #0000FF;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//第二：執行SQL指令</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #FF0000;">string</span> sqlstr = <span style="color: #808080;">"select * from test"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; SqlCommand cmd = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> SqlCommand<span style="color: #000000;">&#40;</span>sqlstr,conn<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; SqlDataReader dr = cmd.<span style="color: #0000FF;">ExecuteReader</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//第三：印出資料</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0600FF;">while</span> <span style="color: #000000;">&#40;</span>dr.<span style="color: #0000FF;">Read</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Response.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"文章編號："</span> + dr<span style="color: #000000;">&#91;</span><span style="color: #808080;">"id"</span><span style="color: #000000;">&#93;</span> + <span style="color: #808080;">"&lt;br&gt;"</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Response.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"日　　期："</span> + dr<span style="color: #000000;">&#91;</span><span style="color: #808080;">"test_time"</span><span style="color: #000000;">&#93;</span> + <span style="color: #808080;">"&lt;br&gt;"</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Response.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"文章標題："</span> + dr<span style="color: #000000;">&#91;</span><span style="color: #808080;">"title"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Response.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"&lt;hr&gt;"</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//第四：關閉連線</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; cmd.<span style="color: #0000FF;">Cancel</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; dr.<span style="color: #0000FF;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; conn.<span style="color: #0000FF;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; conn.<span style="color: #0000FF;">Dispose</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>文章參考於：<a href="http://findbook.tw/book/9789862042380/basic" target="_blank">ASP.NET專題實務-適用C# 作者：周棟祥</a></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/219/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>驗證 ASP.NET Web 網頁中的使用者輸入</title>
		<link>http://m955.com/wp/archives/210</link>
		<comments>http://m955.com/wp/archives/210#comments</comments>
		<pubDate>Sun, 21 Jun 2009 16:04:58 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[ADO.NET]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://m955.com/wp/?p=210</guid>
		<description><![CDATA[工具：RequiredFieldValidator
驗證：必要輸入項
說明：確保使用者不會略過輸入項目。如需詳細資訊，請參閱 HOW TO：驗證 ASP.NET 伺服器控制項的必要項目。
工具：CompareValidator
驗證：與某個值的比... ]]></description>
			<content:encoded><![CDATA[<p>工具：<a href="http://msdn.microsoft.com/zh-tw/library/system.web.ui.webcontrols.requiredfieldvalidator.aspx" target="_blank">RequiredFieldValidator</a><br />
驗證：必要輸入項<br />
說明：確保使用者不會略過輸入項目。<a href="http://msdn.microsoft.com/zh-tw/library/e78xxk8k.aspx" target="_blank">如需詳細資訊，請參閱 HOW TO：驗證 ASP.NET 伺服器控制項的必要項目。</a></p>
<p>工具：<a href="http://msdn.microsoft.com/zh-tw/library/system.web.ui.webcontrols.comparevalidator.aspx" target="_blank">CompareValidator</a><br />
驗證：與某個值的比較<br />
說明：使用比較運算子 (例如小於、等於、大於)，將使用者輸入的值與常數值、另一個控制項的值，或特定資料型別做比較。<a href="http://msdn.microsoft.com/zh-tw/library/ad548tzy.aspx" target="_blank">如需詳細資訊，請參閱 HOW TO：比對特定值驗證 ASP.NET 伺服器控制項和 HOW TO：比對資料型別驗證 ASP.NET 伺服器控制項。</a></p>
<p>工具：<a href="http://msdn.microsoft.com/zh-tw/library/system.web.ui.webcontrols.rangevalidator.aspx" target="_blank">RangeValidator</a><br />
驗證：範圍檢查<br />
說明：檢查使用者的輸入是否介於指定的上下限之間。您可以檢查成對的數字、英文字母字元和日期內的範圍。如需詳細資訊，<a href="http://msdn.microsoft.com/zh-tw/library/bk58fdzx.aspx" target="_blank">請參閱 HOW TO：比對範圍值驗證 ASP.NET 伺服器控制項。</a></p>
<p>工具：<a href="http://msdn.microsoft.com/zh-tw/library/system.web.ui.webcontrols.regularexpressionvalidator.aspx" target="_blank">RegularExpressionValidator</a><br />
驗證：樣式比對<br />
說明：檢查輸入是否符合規則運算式 (Regular Expression) 所定義的樣式。這類的驗證可讓您檢查字元 (例如電子郵件地址、電話號碼、郵遞區號等項目中的字元) 的預期順序。<a href="http://msdn.microsoft.com/zh-tw/library/6xh899wy.aspx" target="_blank">如需詳細資訊，請參閱 HOW TO：比對模式驗證 ASP.NET 伺服器控制項。</a></p>
<p>工具：<a href="http://msdn.microsoft.com/zh-tw/library/system.web.ui.webcontrols.customvalidator.aspx" target="_blank">CustomValidator</a><br />
驗證：使用者定義<br />
說明：使用您自己撰寫的邏輯驗證使用者的輸入。這類驗證可讓您檢查執行階段時衍生的值。如需詳細資訊，<a href="http://msdn.microsoft.com/zh-tw/library/f5db6z8k.aspx" target="_blank">請參閱 HOW TO：使用 ASP.NET 伺服器控制項的自訂函式驗證</a>和 <a href="http://msdn.microsoft.com/zh-tw/library/s5z00s5e.aspx" target="_blank">HOW TO：比對資料庫值驗證 ASP.NET 伺服器控制項。</a></p>
<p><a href="http://msdn.microsoft.com/zh-tw/library/bwd43d0x.aspx" target="_blank"><br />
MSDN</a></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/210/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在 VS2005 工具列中增加 AJAX 擴充功能</title>
		<link>http://m955.com/wp/archives/203</link>
		<comments>http://m955.com/wp/archives/203#comments</comments>
		<pubDate>Sat, 20 Jun 2009 17:17:20 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://m955.com/wp/?p=203</guid>
		<description><![CDATA[
　　在 VS20085 工具列中，AJAX 擴充功能這個選項是內建的，不過在 VS2005 中並沒有，現在坊間的書籍大多以 VS2008 為主，會常用到 AJAX 功能，不過如果不更換版本，在 VS2005 中也可以安裝 AJAX 擴... ]]></description>
			<content:encoded><![CDATA[<p><img alt="" src="http://farm3.static.flickr.com/2244/3644497936_c8bb9ba096_o.png" class="alignnone" width="165" height="138" /></p>
<p>　　在 VS20085 工具列中，AJAX 擴充功能這個選項是內建的，不過在 VS2005 中並沒有，現在坊間的書籍大多以 VS2008 為主，會常用到 AJAX 功能，不過如果不更換版本，在 VS2005 中也可以安裝 AJAX 擴充功能。你必須下載以下檔案（約1MB多）安裝完成後，AJAX 擴充功能就會出現了。</p>
<p>下載檔案：<a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&#038;displaylang=en" target="_blank"><br />
ASP.NET AJAX 1.0</a></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/203/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[寫程式] 藝術？還是快速開發？</title>
		<link>http://m955.com/wp/archives/201</link>
		<comments>http://m955.com/wp/archives/201#comments</comments>
		<pubDate>Sat, 20 Jun 2009 09:19:22 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://m955.com/wp/?p=201</guid>
		<description><![CDATA[　　用 Visual Studio 久了會發現一個問題，就是會越來越依賴這個開發工具，因為它什麼都幫你處理好了，程式指令永遠只記得前面三個字母，因為VS有指令自動補齊，連接資料庫有精靈幫忙，管... ]]></description>
			<content:encoded><![CDATA[<p>　　用 Visual Studio 久了會發現一個問題，就是會越來越依賴這個開發工具，因為它什麼都幫你處理好了，程式指令永遠只記得前面三個字母，因為VS有指令自動補齊，連接資料庫有精靈幫忙，管你是 MSSQL 還是 Access，全部按一按搞定，還順便幫你把 Insert、Update、Select、Delete…等 SQL 四大溝通指令寫好了，程式就這麼在拖拉、設定之間開發完成，有的甚至不用寫任何一行指令。</p>
<p>　　以前我很排斥用精靈方式來寫程式，堅持一字一句 Key 出來，不過我發現這會花費很多時間，舉個例子來說好了，寫一個簡單的通訊錄，不包括建資料庫的時間，用傳統手 Key 方式，我大概要花上半天的時間，因為我要拉控制項、設定控制項名稱、寫資料庫連接、資料繫結、資料配接器的 Insert、Update、Select、Delete 四個屬性質、設定 BindSource 導覽列…等，寫完天都黑了。</p>
<p>　　不過如果換成精靈模式寫，大概只要30分鐘就可以搞定，在產出力方面，精靈模式大勝，不過在程式靈活度、和可讀性來說，還是傳統手 Key 方式略勝一籌。</p>
<p>　　站在公司的立場，當然希望程式設計師的產出力越多越好，有些小地方還是用拖拉的就好，藝術這種東西不能當飯吃，VS是一個很邪惡的東西，因為他讓新手認為寫程式是一件很簡單的東西，讓老手離不開它。</p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/201/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>C# string.Format輸出格式</title>
		<link>http://m955.com/wp/archives/176</link>
		<comments>http://m955.com/wp/archives/176#comments</comments>
		<pubDate>Fri, 19 Jun 2009 03:46:49 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://m955.com/wp/?p=176</guid>
		<description><![CDATA[PLAIN TEXT
C#:




前面補0的數字字串


String.Format&#40;"{0:0000}", 157&#41;; // 輸出 0157


&#160;


前後都補0的數字字串


String.Format&#40;"{0:0000.0000}", 157.42&#41;; // 輸出 0157.4200


&#160;


每3位數&#40;千&#41;加逗... ]]></description>
			<content:encoded><![CDATA[<div class="igBar"><span id="lcsharp-7"><a href="#" onclick="javascript:showPlainTxt('csharp-7'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C#:</span>
<div id="csharp-7">
<div class="csharp">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">前面補<span style="color: #FF0000;color:#800000;">0</span>的數字字串</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #FF0000;">String</span>.<span style="color: #0000FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"{0:0000}"</span>, <span style="color: #FF0000;color:#800000;">157</span><span style="color: #000000;">&#41;</span>; <span style="color: #008080; font-style: italic;">// 輸出 0157</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">前後都補<span style="color: #FF0000;color:#800000;">0</span>的數字字串</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #FF0000;">String</span>.<span style="color: #0000FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"{0:0000.0000}"</span>, <span style="color: #FF0000;color:#800000;">157</span>.<span style="color: #FF0000;color:#800000;">42</span><span style="color: #000000;">&#41;</span>; <span style="color: #008080; font-style: italic;">// 輸出 0157.4200</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">每<span style="color: #FF0000;color:#800000;">3</span>位數<span style="color: #000000;">&#40;</span>千<span style="color: #000000;">&#41;</span>加逗號</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">String</span>.<span style="color: #0000FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"{0:0,0}"</span>, <span style="color: #FF0000;color:#800000;">38560</span><span style="color: #000000;">&#41;</span>; <span style="color: #008080; font-style: italic;">// 輸出 38,560</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">格式化電話號碼</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">String</span>.<span style="color: #0000FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"{0:(###) ###-####}"</span>, <span style="color: #FF0000;color:#800000;">8005551212</span><span style="color: #000000;">&#41;</span>; <span style="color: #008080; font-style: italic;">// 輸出 (800) 555-1212</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">金額的表示</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">String</span>.<span style="color: #0000FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"{0:$#,##0.00;($#,##0.00);Zero}"</span>, <span style="color: #FF0000;color:#800000;">0</span><span style="color: #000000;">&#41;</span>; <span style="color: #008080; font-style: italic;">// 這個會顯示 Zero</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">String</span>.<span style="color: #0000FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"{0:$#,##0.00;($#,##0.00);Zero}"</span>, <span style="color: #FF0000;color:#800000;">1243</span>.<span style="color: #FF0000;color:#800000;">50</span><span style="color: #000000;">&#41;</span>; <span style="color: #008080; font-style: italic;">// 這個會顯示 $1,243.50 </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>依照上面格式範例 ~ 套用到我的報表要呈現的欄位 ~ 如以下 ~</p>
<div class="igBar"><span id="lcsharp-8"><a href="#" onclick="javascript:showPlainTxt('csharp-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C#:</span>
<div id="csharp-8">
<div class="csharp">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">private</span> <span style="color: #0600FF;">void</span> DataGrid_ItemDataBound<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Web</span>.<span style="color: #0000FF;">UI</span>.<span style="color: #0000FF;">WebControls</span>.<span style="color: #0000FF;">DataGridItemEventArgs</span> e<span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>e.<span style="color: #0000FF;">Item</span>.<span style="color: #0000FF;">ItemIndex</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> != <span style="color: #808080;">"-1"</span><span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; e.<span style="color: #0000FF;">Item</span>.<span style="color: #0000FF;">Cells</span><span style="color: #000000;">&#91;</span><span style="color: #FF0000;color:#800000;">0</span><span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">Text</span> = <span style="color: #FF0000;">string</span>.<span style="color: #0000FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"{0:#,0.0}"</span>,<span style="color: #FF0000;">double</span>.<span style="color: #0000FF;">Parse</span><span style="color: #000000;">&#40;</span>e.<span style="color: #0000FF;">Item</span>.<span style="color: #0000FF;">Cells</span><span style="color: #000000;">&#91;</span><span style="color: #FF0000;color:#800000;">3</span><span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">Text</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000000;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>參考資料來源：<br />
http://blog.stevex.net/index.php/string-formatting-in-csharp/</p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/176/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET 出現訊息「伺服器應用程式無法使用」解決方法</title>
		<link>http://m955.com/wp/archives/190</link>
		<comments>http://m955.com/wp/archives/190#comments</comments>
		<pubDate>Thu, 18 Jun 2009 15:14:10 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[ASP.NET]]></category>

		<guid isPermaLink="false">http://m955.com/wp/?p=190</guid>
		<description><![CDATA[伺服器應用程式無法使用
您嘗試在此 Web 伺服器上存取的 Web 應用程式目前無法使用。
請按 Web 瀏覽器中的 [重新整理] 按鈕，再試一次。
系統管理員注意:
Web 伺服器的應用程式事件記錄檔中的
... ]]></description>
			<content:encoded><![CDATA[<p>伺服器應用程式無法使用<br />
您嘗試在此 Web 伺服器上存取的 Web 應用程式目前無法使用。<br />
請按 Web 瀏覽器中的 [重新整理] 按鈕，再試一次。</p>
<p>系統管理員注意:<br />
Web 伺服器的應用程式事件記錄檔中的<br />
錯誤訊息詳細說明了這項特定要求失敗原因。<br />
請檢閱這個記錄項目，查看造成錯誤的原因為何。</p>
<p>終於找到<br />
方法解決了~"~</p>
<p>http://blog.xuite.net/giin/blog/13640747</p>
<p>請直接到<br />
[開始]→[執行]→輸入<br />
[　C:\WINDOWS\Microsoft.Net\Framework\v2.0.50727\aspnet_regiis.exe -i　] 就行了</p>
<p>最後確認一下預設的IIS執行環境</p>
<p>IIS→預設網站→內容→ASP.NET→確認　版本2.0.50727</p>
<p>應該就OK了!! </p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/190/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>強制關閉處理程序的工具(NTSD)</title>
		<link>http://m955.com/wp/archives/189</link>
		<comments>http://m955.com/wp/archives/189#comments</comments>
		<pubDate>Mon, 06 Apr 2009 14:29:53 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[軟體]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/189</guid>
		<description><![CDATA[如果發現有執行程式關不掉   木馬、病毒、當掉的程式皆可使用
按開始-&#62;執行-&#62;輸入 cmd -&#62; 按enter
c:&#62;ntsd -c q -p &#60;&#60;程序識別碼&#62;&#62;
Q.程序識別碼那裡來??

按開始-&#62;執行-&#62;... ]]></description>
			<content:encoded><![CDATA[<p>如果發現有執行程式關不掉   <br />木馬、病毒、當掉的程式皆可使用</p>
<p>按開始-&gt;執行-&gt;輸入 cmd -&gt; 按enter</p>
<p>c:&gt;ntsd -c q -p &lt;&lt;程序識別碼&gt;&gt;</p>
<p>Q.程序識別碼那裡來??</p>
<ol>
<li>按開始-&gt;執行-&gt;輸入taskmgr.exe -&gt; 按enter</li>
<li>檢視-&gt;選擇欄位-&gt; 勾選PID(程序識別碼)-&gt;按確定</li>
<li>然後就能看見PID。</li>
</ol>
<p>適用系統：   <br />windows 2000、window xp(NT系列的應該都可以用)。</p>
<p>windows xp 有其他類似的工具 tasklist和tskill   <br />tasklist：列出所有程序名稱及其他資訊。    <br />tskill：終止程序, tskill &lt;&lt;程序名稱&gt;&gt;。</p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/189/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>聽趨勢說話(1)</title>
		<link>http://m955.com/wp/archives/188</link>
		<comments>http://m955.com/wp/archives/188#comments</comments>
		<pubDate>Sun, 05 Apr 2009 17:28:31 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[理財]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/188</guid>
		<description><![CDATA[錢的個性

錢喜歡物以類聚。
錢很害羞。
錢喜歡跟同類在一起，才有安全感。
錢不喜歡獨處。
錢很勢利，喜歡富人，不喜歡窮人。
愛聚集，且喜歡招朋引伴，安全或危險不重要。
聚的越多，... ]]></description>
			<content:encoded><![CDATA[<p>錢的個性</p>
<ol>
<li>錢喜歡物以類聚。</li>
<li>錢很害羞。</li>
<li>錢喜歡跟同類在一起，才有安全感。</li>
<li>錢不喜歡獨處。</li>
<li>錢很勢利，喜歡富人，不喜歡窮人。</li>
<li>愛聚集，且喜歡招朋引伴，安全或危險不重要。</li>
<li>聚的越多，聲勢越大，吸引力越大。</li>
</ol>
<p>操作心法</p>
<ol>
<li>股票沒有量，不會漲，也不會跌。</li>
<li>量一定要大於6日均量，才算大量。</li>
<li>量大三日，必有蹊蹺。</li>
<li>底部量大三日（越大越好），配合價揚，可買。</li>
<li>高價不漲（含跌價），放大量，宜出。</li>
<li>底部放量後，量縮小，價不破可買進。</li>
<li>高價放量，價不創新高，量收小，出股票。</li>
<li>價盤，量走弱，不玩。</li>
<li>以一年的 K 線圖，和成交量來判斷。</li>
<li>大盤的勢，大於個股的勢，不可逆大盤的勢。</li>
</ol>
<p>停損</p>
<ol>
<li>三天不賺砍股票。</li>
<li>損失10％砍股票。</li>
<li>已經損失了10％，不必等3天就砍。</li>
<li>不可手軟。</li>
<li>設停損，不設停利。</li>
<li>股價上揚，到達滿足點，回檔賣出，也是停損的形式，永遠要賣在已經走弱的價之後，唯有這樣才能知道，股價能把你帶到什麼價位去，而不是賣在後悔的股價裡。</li>
<li>寧願停損十次，不願套牢一次。</li>
<li>停損有時後是大勢所迫，而不是個股的失誤。</li>
<li>不要怕錯，能改才能生存。</li>
<li>商人無祖國，投資無忠誠。</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/188/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# 如何取得兩個 DateTime 日期之間相差的天數</title>
		<link>http://m955.com/wp/archives/186</link>
		<comments>http://m955.com/wp/archives/186#comments</comments>
		<pubDate>Wed, 04 Feb 2009 14:09:48 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://m955.com/wp/?p=186</guid>
		<description><![CDATA[PLAIN TEXT
C#:




DateTime dt1 = new DateTime&#40;2008, 12, 31&#41;;


DateTime dt2 = new DateTime&#40;2009, 2, 13&#41;;


TimeSpan s = new TimeSpan&#40;dt2.Ticks - dt1.Ticks&#41;;


MessageBox.Show&#40;Convert.ToString&#40;s.Days&#41;&#41;;


&#160;


... ]]></description>
			<content:encoded><![CDATA[<div class="igBar"><span id="lcsharp-10"><a href="#" onclick="javascript:showPlainTxt('csharp-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C#:</span>
<div id="csharp-10">
<div class="csharp">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">DateTime dt1 = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> DateTime<span style="color: #000000;">&#40;</span><span style="color: #FF0000;color:#800000;">2008</span>, <span style="color: #FF0000;color:#800000;">12</span>, <span style="color: #FF0000;color:#800000;">31</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">DateTime dt2 = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> DateTime<span style="color: #000000;">&#40;</span><span style="color: #FF0000;color:#800000;">2009</span>, <span style="color: #FF0000;color:#800000;">2</span>, <span style="color: #FF0000;color:#800000;">13</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">TimeSpan s = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> TimeSpan<span style="color: #000000;">&#40;</span>dt2.<span style="color: #0000FF;">Ticks</span> - dt1.<span style="color: #0000FF;">Ticks</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">MessageBox.<span style="color: #0000FF;">Show</span><span style="color: #000000;">&#40;</span>Convert.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span>s.<span style="color: #0000FF;">Days</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #008080; font-style: italic;">//回傳44天，相反則為負值 </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>　</p>
<p>參考網址：<br />
<a href="http://blog.miniasp.com/post/2008/01/Find-the-difference-between-two-DateTime.aspx" target="_blank">C# 如何取得兩個 DateTime 日期之間的天數</a><br />
<a href="http://msdn.microsoft.com/zh-tw/library/system.timespan.aspx" target="_blank">TimeSpan MSDN</a></p>
<p>　</p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/186/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>列舉 (enum) 資料型別</title>
		<link>http://m955.com/wp/archives/184</link>
		<comments>http://m955.com/wp/archives/184#comments</comments>
		<pubDate>Mon, 02 Feb 2009 14:55:16 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://m955.com/wp/?p=184</guid>
		<description><![CDATA[　　enum 是一種用來宣告列舉型別 (Enumeration Type) 的關鍵字，是一組列舉清單項目的具名常數所構成的特殊型別，emun 主要目的在提高程式的可讀性，及易維護性，使用 enum 有以下幾點需要注意... ]]></description>
			<content:encoded><![CDATA[<p>　　enum 是一種用來宣告列舉型別 (Enumeration Type) 的關鍵字，是一組列舉清單項目的具名常數所構成的特殊型別，emun 主要目的在提高程式的可讀性，及易維護性，使用 enum 有以下幾點需要注意：</p>
<ol>
<li>enum 不能使用於方法 (Method) 內宣告。</li>
<li>資料型別必須是 byte,sbyte,short,ushort,int,uint,long 或 ulong。</li>
<li>預設資料型別為 int。</li>
<li>float 與 double 不可為 enum 的資料型別。</li>
</ol>
<p>關於列舉的宣告方式如下：</p>
<table id="table_code" border="1">
<tr>
<td>
[存取修飾詞] enum [列舉名稱] : [資料型別]<br />
{<br />
　　[成員1],<br />
　　[成員2],<br />
　　...<br />
　　[成員n]<br />
}
  </td>
</tr>
</table>
<p>　</p>
<p>關列舉範例程式如下：</p>
<div class="igBar"><span id="lcsharp-12"><a href="#" onclick="javascript:showPlainTxt('csharp-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C#:</span>
<div id="csharp-12">
<div class="csharp">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">public</span> <span style="color: #FF0000;">enum</span> student : <span style="color: #FF0000;">short</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 周杰倫 = <span style="color: #FF0000;color:#800000;">1</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 方文山 = <span style="color: #FF0000;color:#800000;">2</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 蔡依林 = <span style="color: #FF0000;color:#800000;">3</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 王立宏 = <span style="color: #FF0000;color:#800000;">4</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">private</span> <span style="color: #0600FF;">void</span> button1_Click<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, EventArgs e<span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//將combox的文字數字轉換成短整數</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #FF0000;">short</span> num = <span style="color: #FF0000;color:#800000;">0</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>cbox.<span style="color: #0000FF;">Text</span> != <span style="color: #808080;">""</span><span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; num = <span style="color: #FF0000;">short</span>.<span style="color: #0000FF;">Parse</span><span style="color: #000000;">&#40;</span>cbox.<span style="color: #0000FF;">Text</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">switch</span> <span style="color: #000000;">&#40;</span>num<span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">case</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">short</span><span style="color: #000000;">&#41;</span> student.周杰倫:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.<span style="color: #0000FF;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"周杰倫"</span>, <span style="color: #808080;">"明星"</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">break</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">case</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">short</span><span style="color: #000000;">&#41;</span> student.蔡依林:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.<span style="color: #0000FF;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"蔡依林"</span>, <span style="color: #808080;">"明星"</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">break</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">case</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">short</span><span style="color: #000000;">&#41;</span> student.方文山:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.<span style="color: #0000FF;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"方文山"</span>, <span style="color: #808080;">"明星"</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">break</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">case</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">short</span><span style="color: #000000;">&#41;</span> student.王立宏:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.<span style="color: #0000FF;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"王立宏"</span>, <span style="color: #808080;">"明星"</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">break</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">default</span>:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.<span style="color: #0000FF;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"所選取數值不在範圍中"</span>,<span style="color: #808080;">"注意"</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">break</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><img src="http://farm4.static.flickr.com/3457/3246977289_e5f24e103a_o.png"></img></p>
<p><img src="http://farm4.static.flickr.com/3103/3246977333_71ce6b1b13_o.png"></img></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/184/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>結構 (struct) 資料型別</title>
		<link>http://m955.com/wp/archives/183</link>
		<comments>http://m955.com/wp/archives/183#comments</comments>
		<pubDate>Sat, 31 Jan 2009 17:38:46 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://m955.com/wp/?p=183</guid>
		<description><![CDATA[struct 是一種用來宣告結構的關鍵字，在結構中包含相關變數，可以將結構視為變數群組，以學生資料 (student) 來說，若要設計其結構，應該包含幾個相關變數，如：學號(num)，姓名(name)、電話(te... ]]></description>
			<content:encoded><![CDATA[<p>struct 是一種用來宣告結構的關鍵字，在結構中包含相關變數，可以將結構視為變數群組，以學生資料 (student) 來說，若要設計其結構，應該包含幾個相關變數，如：學號(num)，姓名(name)、電話(tel)、手機(mobile)、地址(address)等，底下介紹結構的宣告及叫用方式：</p>
<p>結構 (struct) 宣告方式：</p>
<table id="table_code" border="1">
<tr>
<td>
[存取修飾詞] struct [結構名稱]<br />
{<br />
　　[存取修飾詞] [資料型別] [變數名稱];<br />
　　[存取修飾詞] [資料型別] [變數名稱];<br />
　　...<br />
}
  </td>
</tr>
</table>
<p>　</p>
<p>結構 (struct) 叫用方式：</p>
<table id="table_code" border="1">
<tr>
<td>
[結構名稱] [變數名稱];
  </td>
</tr>
</table>
<p>　</p>
<p>語法範例：</p>
<div class="igBar"><span id="lcsharp-14"><a href="#" onclick="javascript:showPlainTxt('csharp-14'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C#:</span>
<div id="csharp-14">
<div class="csharp">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">public</span> <span style="color: #FF0000;">struct</span> Student</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">public</span> <span style="color: #FF0000;">string</span> Num;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">public</span> <span style="color: #FF0000;">string</span> Name;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">public</span> <span style="color: #FF0000;">string</span> Tel;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">public</span> <span style="color: #FF0000;">string</span> Mobile;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">public</span> <span style="color: #FF0000;">string</span> Address;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">private</span> <span style="color: #0600FF;">void</span> btnAdd_Click<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, EventArgs e<span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//宣告結構</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Student std;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//指定成員變數</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; std.<span style="color: #0000FF;">Num</span> = txtNum.<span style="color: #0000FF;">Text</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; std.<span style="color: #0000FF;">Name</span> = txtName.<span style="color: #0000FF;">Text</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; std.<span style="color: #0000FF;">Tel</span> = txtTel.<span style="color: #0000FF;">Text</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; std.<span style="color: #0000FF;">Mobile</span> = txtMobile.<span style="color: #0000FF;">Text</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; std.<span style="color: #0000FF;">Address</span> = txtAddress.<span style="color: #0000FF;">Text</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #FF0000;">String</span> msg = <span style="color: #808080;">""</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; msg = msg + <span style="color: #808080;">"學號："</span> + std.<span style="color: #0000FF;">Num</span> + <span style="color: #808080;">"<span style="color: #008080; font-weight: bold;">\n</span>"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; msg = msg + <span style="color: #808080;">"姓名："</span> + std.<span style="color: #0000FF;">Name</span> + <span style="color: #808080;">"<span style="color: #008080; font-weight: bold;">\n</span>"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; msg = msg + <span style="color: #808080;">"電話："</span> + std.<span style="color: #0000FF;">Tel</span> + <span style="color: #808080;">"<span style="color: #008080; font-weight: bold;">\n</span>"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; msg = msg + <span style="color: #808080;">"手機："</span> + std.<span style="color: #0000FF;">Mobile</span> + <span style="color: #808080;">"<span style="color: #008080; font-weight: bold;">\n</span>"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; msg = msg + <span style="color: #808080;">"地址："</span> + std.<span style="color: #0000FF;">Address</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.<span style="color: #0000FF;">Show</span><span style="color: #000000;">&#40;</span>msg, <span style="color: #808080;">"學生基本資料"</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><img src="http://farm4.static.flickr.com/3257/3241098181_89a0bfb401_o.png" alt="" /> </p>
<p><img src="http://farm4.static.flickr.com/3079/3241943046_c7b3fbe888_o.png" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/183/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>列舉、結構、類別的比較表</title>
		<link>http://m955.com/wp/archives/182</link>
		<comments>http://m955.com/wp/archives/182#comments</comments>
		<pubDate>Sat, 31 Jan 2009 16:12:57 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://m955.com/wp/?p=182</guid>
		<description><![CDATA[


enum
struct
class


中文意義
列舉
結構
類別


成員資料型別
受限制、而且只能為整數型別
不受限制
不受限制


叫用方法
直接輸入列舉名稱
宣告結構變數
宣告類別變數


使用 static 修飾詞
否
... ]]></description>
			<content:encoded><![CDATA[<table id="table_style" border="1">
<tr>
<td bgcolor="#dddddd"></td>
<td bgcolor="#dddddd">enum</td>
<td bgcolor="#dddddd">struct</td>
<td bgcolor="#dddddd">class</td>
</tr>
<tr>
<td bgcolor="#dddddd">中文意義</td>
<td>列舉</td>
<td>結構</td>
<td>類別</td>
</tr>
<tr>
<td bgcolor="#dddddd">成員資料型別</td>
<td>受限制、而且只能為整數型別</td>
<td>不受限制</td>
<td>不受限制</td>
</tr>
<tr>
<td bgcolor="#dddddd">叫用方法</td>
<td>直接輸入列舉名稱</td>
<td>宣告結構變數</td>
<td>宣告類別變數</td>
</tr>
<tr>
<td bgcolor="#dddddd">使用 static 修飾詞</td>
<td>否</td>
<td>否</td>
<td>可</td>
</tr>
<tr>
<td bgcolor="#dddddd">包含事件及方法</td>
<td>否</td>
<td>可</td>
<td>可</td>
</tr>
<tr>
<td bgcolor="#dddddd">介面實作</td>
<td>否</td>
<td>可</td>
<td>可</td>
</tr>
<tr>
<td bgcolor="#dddddd">結構函式</td>
<td>否</td>
<td>可</td>
<td>可</td>
</tr>
<tr>
<td bgcolor="#dddddd">型別系統</td>
<td>Value Type</td>
<td>Value Type</td>
<td>Reference Type</td>
</tr>
<tr>
<td bgcolor="#dddddd">預設傳遞參數方式</td>
<td>Call by Value</td>
<td>Call by Value</td>
<td>Call by Reference</td>
</tr>
<tr>
<td bgcolor="#dddddd">實體存放記憶體在Stack或Heap</td>
<td>Stack</td>
<td>Stack</td>
<td>Heap</td>
</tr>
<tr>
<td bgcolor="#dddddd">欄位初始設定式</td>
<td>否</td>
<td>否</td>
<td>可</td>
</tr>
<tr>
<td bgcolor="#dddddd">指派成員內容值</td>
<td>可以，只能整數</td>
<td>否</td>
<td>可</td>
</tr>
<tr>
<td bgcolor="#dddddd">功能</td>
<td>簡單</td>
<td>普通</td>
<td>較強</td>
</tr>
</table>
<p>　</p>
<p>結構 (struct) 宣告方式：</p>
<table id="table_code" border="1">
<tr>
<td>
[存取修飾詞] struct [結構名稱]<br />
{<br />
　　[存取修飾詞] [資料型別] [變數名稱];<br />
　　[存取修飾詞] [資料型別] [變數名稱];<br />
　　...<br />
}
  </td>
</tr>
</table>
<p>　</p>
<p>列舉 (enum) 宣告方式：</p>
<table id="table_code" border="1">
<tr>
<td>
[存取修飾詞] enum [列舉名稱] : [資料型別]<br />
{<br />
　　[成員1],<br />
　　[成員2],<br />
　　...<br />
　　[成員n]<br />
}
  </td>
</tr>
</table>
<p>　</p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/182/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[價量關係] 9種常見模式</title>
		<link>http://m955.com/wp/archives/181</link>
		<comments>http://m955.com/wp/archives/181#comments</comments>
		<pubDate>Sun, 28 Dec 2008 13:52:18 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[理財]]></category>
		<category><![CDATA[價量關係]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/181</guid>
		<description><![CDATA[
量增價揚：成交量增加，股價上揚，代表該股買氣很強，後勢仍有上漲空間。
量縮價揚：成交量減少，股價仍繼續上漲，表示買氣不足，後勢有下跌壓力。
量平價揚：成交量持平，股價仍繼... ]]></description>
			<content:encoded><![CDATA[<ol>
<li>量增價揚：成交量增加，股價上揚，代表該股買氣很強，後勢仍有上漲空間。</li>
<li>量縮價揚：成交量減少，股價仍繼續上漲，表示買氣不足，後勢有下跌壓力。</li>
<li>量平價揚：成交量持平，股價仍繼續上漲，表示買氣出現停滯，趨勢可能出現反轉向下。</li>
<li>量增價平：成交量放大，股價卻維持不動，若在低檔區表示主力正在進貨，若已下跌一段時間可能止跌回穩。</li>
<li>量縮價平：成交量萎縮，股價為持不動，若股價已經上漲一段時間，代表高點可能出現，若下跌一段時間，代表底部逐漸成形。</li>
<li>量評價平：成交量與股價維持平行，此時觀望為宜。</li>
<li>量增價跌：成交量增加，股價卻下跌，若在跌，初期可能持續再跌，若已經下跌一段時間，表示可能主力開始進貨。</li>
<li>量縮價跌：成交量減少，股價卻下跌，若股價剛跌可能續跌，若再跌一段時間，則觀察底部可能即將出現。</li>
<li>量平價跌：成交量持平，股價仍下跌，後勢可能出現盤整或盤跌。</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/181/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[三點突破法] 1301台塑，40大關是否挺得住？</title>
		<link>http://m955.com/wp/archives/180</link>
		<comments>http://m955.com/wp/archives/180#comments</comments>
		<pubDate>Thu, 25 Dec 2008 09:55:39 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[理財]]></category>
		<category><![CDATA[三點突破]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/180</guid>
		<description><![CDATA[&#160;&#160;&#160;&#160;&#160;&#160;&#160; 如果你正準備大筆資金，等待台塑破40元買入，我勸你應該還是等等，為什麼？根據三點突破法來看， 41.75 是目前第 6 個低點，所以說明天收週線，價格必須高... ]]></description>
			<content:encoded><![CDATA[<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 如果你正準備大筆資金，等待台塑破40元買入，我勸你應該還是等等，為什麼？根據三點突破法來看， 41.75 是目前第 6 個低點，所以說明天收週線，價格必須高於第 3 個低點 47.9，才能打破下跌的趨勢。就實質面來看，真的很難，所以還是為維持下跌趨勢繼續進行。破 40 的機會很高。</p>
<p><span id="more-180"></span></p>
<p><img src="http://farm4.static.flickr.com/3243/3135229580_80db749e14_o.png" /> </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 至於會跌到哪裡？我不喜歡預測價位，明天的事只有神才知道，順勢而為，是三點突破工具的精神，如果第 7 個低點出現，我會考慮進場放空。</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 原油從 140 狂跌到 40 左右，讓台塑的生意很難做，這也是這一波下跌的主因，從營收面來看，不難看出一些端倪。</p>
<p><a href="http://farm4.static.flickr.com/3108/3134407859_2453d57137_o.png" target="_blank" rel="lightbox"><img src="http://farm4.static.flickr.com/3108/3134407859_1ab1ac39e3.jpg" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/180/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[客戶管理程式開發] 雛形</title>
		<link>http://m955.com/wp/archives/179</link>
		<comments>http://m955.com/wp/archives/179#comments</comments>
		<pubDate>Wed, 24 Dec 2008 17:08:26 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/179</guid>
		<description><![CDATA[ 
前些日子有做到到客戶關係管理的簡報，突然有的開發的動機，本程式採用 C# 撰寫，目前正在開發階段，未來不排除朝開放原始碼方向，大家集思廣益，功能方面目前還在思考當中，基本上... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://farm4.static.flickr.com/3127/3133682180_3e5ea71a6c_o.png" target="_blank" rel="lightbox"><img src="http://farm4.static.flickr.com/3127/3133682180_01d1be6731.jpg" /></a> </p>
<p>前些日子有做到到客戶關係管理的簡報，突然有的開發的動機，本程式採用 C# 撰寫，目前正在開發階段，未來不排除朝開放原始碼方向，大家集思廣益，功能方面目前還在思考當中，基本上該有的功能應該都會有。</p>
<p>今天完成了基本的介面，以及資料繫結的項目，放個照片上來，讓大家有個印象。</p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/179/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Access 常用時間日期函數</title>
		<link>http://m955.com/wp/archives/178</link>
		<comments>http://m955.com/wp/archives/178#comments</comments>
		<pubDate>Wed, 24 Dec 2008 16:47:41 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[Access]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/178</guid>
		<description><![CDATA[以下是日期函數用法，提供你方式，你自己可以做到的： 
Year()函數：取得日期資料內的年份值   Year(#2003/03/01#)，顯示結果2003

Month()函數：取得日期資料內的月份值   Month(#2003/03/01#)，顯示結果0... ]]></description>
			<content:encoded><![CDATA[<p>以下是日期函數用法，提供你方式，你自己可以做到的： </p>
<p>Year()函數：取得日期資料內的年份值   <br />Year(#2003/03/01#)，顯示結果2003</p>
<p><span id="more-178"></span></p>
<p>Month()函數：取得日期資料內的月份值   <br />Month(#2003/03/01#)，顯示結果03 </p>
<p>Day()函數：取得日期資料內的日期值   <br />Day(#2003/03/01#)，顯示結果01 </p>
<p>Format()函數：顯示今天的日期為今年的第幾週   <br />Format(Now().ww)，其中ww為1~53週期數值 </p>
<p>DatePart()函數：取得日期資料內的西元年份值   <br />DatePart('yyyy',[訂貨日期])，顯示訂貨日期欄位的西元年份 </p>
<p>DatePart()函數：取得日期資料內的月份值   <br />DatePart('m',[訂貨日期])，顯示訂貨日期欄位的月份(個位數月份顯示一位數)    <br />Format(DatePart('m',[訂貨日期]),'00')，顯示訂貨日期欄位的月份(月份顯示兩位數) </p>
<p>DateAdd()函數：取得日期資料內的年份值   <br />DateAdd('y',-5.[訂貨日期])，顯示訂貨日期欄位往前5天的資料記錄 </p>
<p>DateDiff()函數：取得日期資料內的日期值   <br />DateDiff('d',[訂貨日期].[出貨日期])，顯示訂貨日期與出貨日期兩欄位之間的相差天數 </p>
<p>設定查詢的日期為上星期一及上星期六之間的函數   <br />between DateAdd('d', 0 - (Weekday(Date) + 5), Date) and DateAdd('d', 0 - Weekday(Date), Date) </p>
<p>其他參考：<a href="http://support.microsoft.com/kb/210604/zh-tw" target="_blank">http://support.microsoft.com/kb/210604/zh-tw</a></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/178/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>爭取反向連結的 110 個方法(美商GDI MAC團隊)</title>
		<link>http://m955.com/wp/archives/177</link>
		<comments>http://m955.com/wp/archives/177#comments</comments>
		<pubDate>Tue, 16 Dec 2008 03:40:06 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[架站]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/177</guid>
		<description><![CDATA[1. 搞一個 XXX 的110 種方法的網頁，並且做成圖片而無法抄去文字照貼。這種文章常會被引用，成為權威。人們無法擺著不對你連結。2. 寫一篇，成功 XXX 的10個步驟，這類的文章，很容易得到連... ]]></description>
			<content:encoded><![CDATA[<p>1. 搞一個 XXX 的110 種方法的網頁，並且做成圖片而無法抄去文字照貼。這種文章常會被引用，成為權威。人們無法擺著不對你連結。<br />2. 寫一篇，成功 XXX 的10個步驟，這類的文章，很容易得到連結。<br />3. 針對某些話題，總結一個完整的索引資料列表(或稱為懶人包)。<br />4. 總結某行為的十大迷思。<br />5. 針對某一議題或同類產品列表比較，寫出有見地的比較分析。這樣有機會得到連結。</p>
<p><span id="more-177"></span></p>
<p>6. 介紹某專業的達人，專家列表。被你列出的人也會把你這個表做為連結對象。<br />7. 簡單易懂，條列的內容。這樣人家容易對你設連結。<br />8. 每天發表一幅漫畫，只要有內涵，一定引來連結。<br />9. 拍攝精美的攝影作品，陳列在自己的網站上。<br />10. 要減少錯別字。語法不順。才能建立權威文章的地位。<br />11. 建立一個專業網站的資料庫，接受自由登入。並建立一個競價排名曝光的系統。這樣，個別登入的網站並已取得競價排席的網站，會把你列為連結對象。<br />12. 搞個網站在專業領域的關鍵字都能排在搜尋引擎結果頁的第一頁。<br />13. 報導某一家有名產品的使用評價。寫的好時，該產品公司也許會來主動對你連結。<br />14. 個人網站上頭要設立 : 隱私權政策，關於我 ...... 的網頁。這樣看起來才具有權威。提高使用者的信賴度。擺張自己的照片，也不誇張。<br />15. 在專業的網站上頭髮表文章，介紹自己的網站。同時寫下連結。</p>
<p>目錄應用
<p>16. 將你的網站登錄到 DMOZ 開放目錄。<br />17. YAM、Hinet、Yahoo! Kimo 的目錄也要登錄。<br />18. 可能的話參加擔任 DMOZ 的編輯員，profile 中指向自己的網頁，在 Google 中的 PR就能得到 4 以上了。<br />19. 收費的目錄網站，品質若不差也可考慮。<br />20. 建立一個自己網站相關行業的垂直目錄。指向自己的網站中重要的頁面。目錄的本身也會吸收到連結。<br />21. 向政府資源網站登錄你的網站。雖然通常不會被採用。<br />22. 向教育單位的網站登錄你的網站。<br />23. 找到質量好的網路黃頁網站，登錄。<br />24. 品質好的轉址網站，也可登錄。
<p>商業關係
<p>25. 向同業公會登錄你的網站。<br />26. 找你的上下游協力廠商，交換連結。<br />27. 找同領域但非競爭性廠商交換連結。
<p>免費連結
<p>28. 在 維基百科 中針對自己網路名稱寫一篇文章，並指向自己網站。<br />29. 在 Yahoo 知識中回答問題，同時指向自己網頁。<br />30. 在 Google Groups 中回答問題，同時指向自己網頁。<br />31. 網頁要提供 RSS feed，若發表文章有內涵，自然也會吸引一些連結。<br />32. 絕大部份的論壇都可使用簽名設立連結. 指向自己網頁。<br />33. 參加免費連結交換聯盟。可別遇到了連結工廠，以致於被掛入搜尋引擎的黑名單。<br />34. 在 Alexa 評論中評論自己與別人的網站。也能吸引到一些連結。<br />35. 在 clipclip.com 中 clip 自己的網頁。
<p>Blog 部落格
<p>36. 寫 Blog，只要有內容，會吸收到連結.<br />37. Blog 指向相關的其他 Blog 。有些 Blog 站長會注意推薦網站的來源，自然就會反向連結。<br />38. 在有價值的 Blog 寫回應。只要有內涵，吸引別人的注意。也會來讀你的 Blog。進而設立連結。<br />39. 在 Blog 中建立 Technorati 標籤。<br />40. 向 Blog 目錄登錄你的網站。<br />41. 參加 Blogroll。<br />42. 參加 Blog look。<br />43. 參加 Bloglines。<br />44. 找幾個免費的 Blog 聯盟。很簡單的寫幾個 Blog 連向自己的主要 Blog。<br />45. 建立 Add My Yahoo 標籤. 也許有人會取用並連結。<br />46. 建立 Add to Google 標籤。<br />47. 參加 Feedburner。<br />48. 參加各種共享書籤(Social Bookmark)如 HEMiDEMi、Furl、Delcious。<br />49. 使用 Google 的 Adwords 指定低價的 cpm 廣告連向自己。<br />50. 驗證網頁的編寫格式 W3C XHTML 與 CSS。<br />51. 這年頭的草莓族很懶得讀長篇大論，可能的話，網頁內容若是全文字，最好做成條列式. 全圖面雖不利於引擎的蜘蛛來爬，可創作的漫畫最容易吸收連結. 就算是生活鎖事，也要寫的像畢業論文圖文並茂，引經據典。像這個在陽台種小麥草的文章。<br />52. 善用 CSS 表現網頁。<br />53. 在任何你出版的印刷品上印製你的網址，名片、信件、卡片甚至於汽車保險桿上頭。<br />54. 提供 [郵寄此文章] 的按鈕，讓你網頁的讀者幫你宣傳。
<p>交換連結
<p>55. 小規模的交換連結，千萬避開大型的連結工廠或聯盟。<br />56. 選擇交換連結的對象，即始行業不同，也最好使用者要有相同的目標對象。
<p>買連結及僱用人手建立連結
<p>57. 花錢僱用人手來進行公關. 找相關的網站，連向你。<br />58. 找專業的連結中介商，買些品質好的連結。<br />59. 有些網站可直接租到品質好的連結. 至少 PR 值要高過于于你的才值得租用。<br />60. 做慈善機構的贊助人，對方會給你連結。<br />61. 時間是搜索引擎排序的一個重要因素。若有老網站能租用連結，值得考慮.
<p>評論或製造新聞事件
<p>62. 告 Google 或 Hinet 侵權，小心告不成自己反要賠了許多。<br />63. 學卡神，利用信用卡公司贈點的誤區， 賺些差價，鬧上新聞。<br />64. 發表虐貓者的追蹤網頁。成為新聞事件。<br />65. 以系列的方式，發表對同一列產品的比較報告，有褒有貶。但所言要有憑有據，免得引起訴訟。
<p>免費贈送
<p>66. 製作 Templates 標明作者網址。提供別人使用時，自己連結就隨之出現了。<br />67. 提供一個工具程式頁面，譬如貸款償款額計算器，或統一發票對獎工具。或台灣字輸入法工具程式。會吸引一些連結。<br />68. 舉辦一個提供贈品的競賽，有可能吸引到一些連結。<br />69. 提供免費試用產品，也許能得到意見回饋與連結。<br />70. 為使用率高的免費開放軟體寫正體中文的翻譯檔. 其中標示翻譯者的網站連結，取得檔案使用者所開立的網站，自然就對你有了連結。若是寫在 page_footer 檔上，那還更是每一頁都對你連結了。<br />71. 為 Firefox 寫Plug-In程式。並做好下載與支持頁，人家才好連結向該頁.<br />72. 提供工具程式給人家下載。並做好下載與支持頁。<br />73. 製作手機相關的語音檔或畫面，提共下載。<br />74. 收集一堆免費或共享軟體，分門別類擺放，提供下載。一定吸引連結。<br />75. 翻譯重要的工具書，如 php5手冊，MySQL 使用手冊。免費提供閱讀。
<p>事件與活動
<p>76. 善用你的手機附帶的相機，重要的活動或事件，拍下照片或短影片貼在自己網頁上。<br />77. 寫下自己與名人對談的實錄。發表在自己的網站。<br />78. 與名人合照也可拿來吸引些連結吧 ? 也許?<br />79. 編寫建立連結的說明網頁，提供連結碼。不然人家想對你設連結時也懶得打字。
<p>幾個建立連結的錯誤示範
<p>80. 繳費給一次代登幾百個收費目錄登錄網站。<br />81. 在公開的論壇簽名中， 一貼列上上百個自己的網站連結。<br />82. 論壇開放讓你簽名中擺連結，才肯參與發言。<br />83. 沒注意論壇文章或部落格的回應中所寫的連結，是否會被加上 nofollow 的標示，就拚命的貼連結。<br />84. 為了提高文章數，儘寫一些 『我也同意...』、『贊成 ...』 無關痛癢的短句，同時配合了帶有連結的文章.<br />85. 老王賣瓜自賣自誇，用同一個 IP 發出文章稱讚自己的產品的文章。<br />86. 在幾十個論壇或留言版中，同一天內發出數十個內容相同的文章。推銷自己或問同一問題。<br />87. 跟隨一個幾年沒有動靜的文章後回應，只為了貼上自己連結的簽名。<br />88. 為了建立會員資料頁而去參加論壇註冊，卻從來不發言。<br />89. 在論壇或 Blog 不使用自己本名或慣用 ID，卻故意搞個 Keyword。<br />90. 在每一個 Blog 都留下相同的自我推銷的言論。<br />91. 在可公開留言的版面上，不寫些有意義的內容，讓人覺得又是一堆垃圾。<br />92. 更過份的是，每個文章中，儘是大量的自己連結，讓人家看了就想把你刪除掉的。<br />93. 發出請求連結的大量 email。只能提自己的 Pagerank 有多高。其他則是言之無物。<br />94. 發出請求連結的 email，讓人一看就知是自動程式發出的，內容固定。連收件人的名字也不填。<br />95. 向 Google、Yahoo 發出請求交換連結。<br />96. 與一頁就有超過上百個連結的頁面要求交換連結。<br />97. 向每一個在你站上發文章的站長都要求交換連結。<br />98. 每天向同一站長發信要求交換連結。<br />99. 用不同的 email address 發出推薦自己網站的信給同一個站長。<br />100. 如果以上的作法不能成功，對方還不同意。那就主動每天加價 100元，請求對方，直到對方同意為止。<br />101. 向高階的頁面要求交換連結，對方將你連結設在對等 Pagerank 的頁面，還怪對方不能與你對等首頁連結。
<p>做個混球也能引來連結 ?
<p>102. 抄襲別人的網頁內容，刪掉原作者名稱. 建立自己也是權威的假象引來連結。大概完全不知 Google 去年中才申請到了一個有關網頁重覆與 spam 的判讀程式的新型專利。專來對付這種抄襲的重覆內容的網頁了。<br />103. 批評某種宗教或政治理念，造成爭端引來連結。大概是不怕賓拉登明天派架自殺飛機轟你的網站了。也不怕泛藍泛綠支持者貼爆你的網站。<br />104. 把網名印在 T-shirt 上，開車時邊打手機，或邊走路邊看書，撞了人之後，向對方說 : 『我原諒你 !!』<br />105. 在捷運車站散發印有網址的名片，請求人家對你連結。<br />106. 在十字路口舉廣告牌上寫你的網址。真能求得連結嗎 ?<br />107. 經由手機網路隨機播放電話簡訊。要求收訊者對你設立連結。<br />108. 把咖啡灑到別人身上，或者打噴涕噴向別人，惹怒了別人，然後騙取他對你設立連結。<br />109. 怪別的站長對你的深層內頁設立連結。求之不可得的事，你還怪人家，可真是混球。<br />110. 搞幾個網站，內容完全相同。深不知內容相同可能造成搜尋引擎誤判此為 spam 互相抄襲，而把幾個站都列入黑名單似的。</p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/177/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>央行降息三碼，26年最大降福</title>
		<link>http://m955.com/wp/archives/175</link>
		<comments>http://m955.com/wp/archives/175#comments</comments>
		<pubDate>Thu, 11 Dec 2008 16:20:07 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[理財]]></category>
		<category><![CDATA[降息]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/175</guid>
		<description><![CDATA[&#160;&#160;&#160;&#160;&#160;&#160;&#160; 參考新聞：央行降息三碼！26年來最大降幅
&#160;&#160;&#160;&#160;&#160;&#160;&#160; 今年97年下半年度，半年裡密集降息了5次，重貼現率由 3.625 降至今天 2，共計 6.5 碼... ]]></description>
			<content:encoded><![CDATA[<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 參考新聞：<a href="http://tw.news.yahoo.com/article/url/d/a/081211/1/1b0nm.html" target="_blank">央行降息三碼！26年來最大降幅</a></p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 今年97年下半年度，半年裡密集降息了5次，重貼現率由 3.625 降至今天 2，共計 6.5 碼，幅度其實跟<a href="http://www.udn.com/2008/12/5/NEWS/WORLD/WORS3/4630612.shtml" target="_blank">瑞典一次降 7 碼</a>，感覺上好像沒啥不同，只是央行的政策比較傾向溫和，只是歐洲一次降足，以免以後被批辦事不力。</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 跌破眾人眼鏡的是一次降 3 碼，算是最大的一次降福，央行有意識到台灣社會，現在貨幣流通性不足的問題，人人緊縮消費，大幅降息為了釋放更多貨幣到市場上，所必須採取的手段之一。</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 通貨緊縮在過去幾年間一直是我們較為陌生的名詞，油價從 146 元天價，狂降至 42 元，短短半年之間跌掉了 71％ ，相對飆漲的原物料也跟著一落千丈，表面上看起來好像似物價的問題稍稍獲得舒緩，但是暴跌伴隨而來的是，貨幣流通性不足，人們緊縮銀根，抱持觀望態度，期待未來可能降價的空間。</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 忽然間，客人不再一窩蜂的囤積原物料，工廠半年前進的高價原物料，期待大撈一筆老闆們，開始出現資金周轉問題，造成工廠倒閉，工廠倒了，人們也就沒有工作，更加緊縮銀根。惡性循環下，通貨緊縮的黑影正悄悄籠罩。</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 根據歷史告訴我們，通貨緊縮會有以下的現象：</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 通貨緊縮是指當市場上的貨幣減少，購買能力下降，影響物價之下跌所造成的。長期的貨幣緊縮會抑制投資與生產，導致失業率升高與經濟衰退。</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 所以說，央行大降 3 碼。正也意味著台灣未來期間，經濟的輪廓。</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 就股市面來說，可以預期，高消費的類股，房產、汽車...等的委靡不振，人們不再紙醉金迷，博奕股也別碰了，原物料概念股只有慘，消費性電子更慘，鴻海首當其衝，華碩跌到 30 幾塊也算還好，大盤方面如果國安基金，和禁止放空等條款不開放，只是更加延長大盤落底時間罷了。</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 明年第二季在看看好了，大盤落底前一定會出現一次<strong><font color="#ff0000">非經濟衝擊</font></strong>的大事件，促成加速趕底，例如：禽流感之發現鳥大便，319槍擊、SARS、紅衫軍、911攻擊、台海飛彈危機，兩國論...等。</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 現在我們能做的事只能等待，順便可以學習一下放空技巧，以便不時之需。</p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/175/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# 比較字串</title>
		<link>http://m955.com/wp/archives/174</link>
		<comments>http://m955.com/wp/archives/174#comments</comments>
		<pubDate>Mon, 08 Dec 2008 15:53:40 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/174</guid>
		<description><![CDATA[C# 屬於強型別的資料型態，所以在型別方面，編譯器檢查的很嚴格，所以一些在 VB.NET 中習慣的用法，拿到 C# 中就會出現錯誤。
舉例來說 C# 不能使用 0 或 1 來替代布林值，而字串也不能直接比... ]]></description>
			<content:encoded><![CDATA[<p>C# 屬於強型別的資料型態，所以在型別方面，編譯器檢查的很嚴格，所以一些在 VB.NET 中習慣的用法，拿到 C# 中就會出現錯誤。</p>
<p>舉例來說 C# 不能使用 0 或 1 來替代布林值，而字串也不能直接比較，這對我們剛開始會造成一些困擾！下面 VB.NET 的用法如果拿到 C# 中使用就會出錯</p>
<div class="igBar"><span id="lvbnet-17"><a href="#" onclick="javascript:showPlainTxt('vbnet-17'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">VB.NET:</span>
<div id="vbnet-17">
<div class="vbnet">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">Dim</span> a <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span> = <span style="color: #808080;">"111"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">Dim</span> b <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span> = <span style="color: #808080;">"111"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">IF</span> a = b <span style="color: #FF8000;">THEN</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">...</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">END</span> <span style="color: #0600FF;">IF</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>  </p>
<p>C# 針對比較字串有兩個比較常用的函數：</p>
<p>String.Compare&#160; 比較兩個字串的值。傳回整數值   <br />String.Equals 比較兩個字串的值。傳回布林值</p>
<p>C#中改用比較字串的函數</p>
<div class="igBar"><span id="lcsharp-18"><a href="#" onclick="javascript:showPlainTxt('csharp-18'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C#:</span>
<div id="csharp-18">
<div class="csharp">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #FF0000;">String</span> a = <span style="color: #808080;">"111"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #FF0000;">String</span> b = <span style="color: #808080;">"222"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">if</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">String</span>.<span style="color: #0000FF;">Equals</span><span style="color: #000000;">&#40;</span>a,b<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ....</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">else</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ....</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>參考資料：<a href="http://msdn.microsoft.com/zh-tw/library/fbh501kz(VS.80).aspx" target="_blank">C#比較字串(MSDN)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/174/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>SQL Server 中易混淆的數據類型</title>
		<link>http://m955.com/wp/archives/173</link>
		<comments>http://m955.com/wp/archives/173#comments</comments>
		<pubDate>Mon, 08 Dec 2008 15:27:39 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[ADO.NET]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/173</guid>
		<description><![CDATA[本文摘自「藍色理想」http://www.blueidea.com/tech/program/2004/1724.asp。
(1)char、varchar、text和nchar、nvarchar、ntext   char 和varchar的長度都在1到8000之間，它們的區別在於char是定長字符數據，而varchar是變長... ]]></description>
			<content:encoded><![CDATA[<p>本文摘自「藍色理想」<a href="http://www.blueidea.com/tech/program/2004/1724.asp。" target="_blank">http://www.blueidea.com/tech/program/2004/1724.asp。</a></p>
<p>(1)char、varchar、text和nchar、nvarchar、ntext   <br />char 和varchar的長度都在1到8000之間，它們的區別在於char是定長字符數據，而varchar是變長字符數據。所謂定長就是長度固定的，當輸入的數據長度沒有達到指定的長度時將自動以英文空格在其後面填充，使長度達到相應的長度；而變長字符數據則不會以空格填充。text存儲可變長度的非 Unicode數據，最大長度為2^31-1(2,147,483,647)個字符。 </p>
<p>後面三種數據類型和前面的相比，從名稱上看只是多了個字母&quot;n&quot;，它表示存儲的是Unicode數據類型的字符。寫過程序的朋友對Unicode應該很瞭解。字符中，英文字符只需要一個字節存儲就足夠了，但漢字眾多，需要兩個字節存儲，英文與漢字同時存在時容易造成混亂，Unicode字符集就是為瞭解決字符集這種不兼容的問題而產生的，它所有的字符都用兩個字節表示，即英文字符也是用兩個字節表示。nchar、nvarchar的長度是在1到4000之間。和char、varchar比較：nchar、nvarchar則最多存儲4000個字符，不論是英文還是漢字；而char、varchar最多能存儲8000個英文，4000個漢字。可以看出使用nchar、nvarchar數據類型時不用擔心輸入的字符是英文還是漢字，較為方便，但在存儲英文時數量上有些損失。 </p>
<p>(2)datetime和smalldatetime   <br />datetime：從1753年1月1日到9999年12月31日的日期和時間數據，精確到百分之三秒。    <br />smalldatetime：從1900年1月1日到2079年6月6日的日期和時間數據，精確到分鍾。 </p>
<p>(3)bitint、int、smallint、tinyint和bit   <br />bigint：從-2^63(-9223372036854775808)到2^63-1(9223372036854775807)的整型數據。    <br />int：從-2^31(-2,147,483,648)到2^31-1(2,147,483,647)的整型數據。    <br />smallint：從-2^15(-32,768)到2^15-1(32,767)的整數數據。    <br />tinyint：從0到255的整數數據。    <br />bit：1或0的整數數據。 </p>
<p>(4)decimal和numeric   <br />這兩種數據類型是等效的。都有兩個參數：p（精度）和s（小數位數）。p指定小數點左邊和右邊可以存儲的十進制數字的最大個數，p必須是從 1到38之間的值。s指定小數點右邊可以存儲的十進制數字的最大個數，s必須是從0到p之間的值，默認小數位數是0。 </p>
<p>(5)float和real   <br />float：從-1.79^308到1.79^308之間的浮點數字數據。    <br />real：從-3.40^38到3.40^38之間的浮點數字數據。在SQL Server中，real的同義詞為float(24)。</p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/173/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
