<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4990097047525167837</id><updated>2020-02-28T02:57:31.254-08:00</updated><category term="C#"/><category term="Syntax"/><category term="IDE"/><category term="DataType"/><category term="Operators"/><category term="Variables"/><category term="จุดประสงค์และเจตจำนง"/><title type='text'>Gkeng C# beginner</title><subtitle type='html'>Blog นี้ ใครจบวิทย์คอม หรือ เซียนโปรแกรม C# ไม่ต้องเข้ามาอ่านก็ได้ครับ ผมอายที่จะแสดงความไม่รู้ให้ท่านๆเห็น เพราะ ผมเริ่มศึกษาเอง ทำเอง ผิดพลาดประการใด ขออภัยด้วย</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gkengcsharp.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990097047525167837/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://gkengcsharp.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>G_keng</name><uri>http://www.blogger.com/profile/16298145824063870199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/-5YANhpC6AzQ/VOWOGi1fhwI/AAAAAAAACb0/hDYOa3gPstA/s1600/*'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4990097047525167837.post-6646126557170078074</id><published>2010-04-13T23:57:00.000-07:00</published><updated>2010-04-14T00:31:15.005-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IDE"/><title type='text'>วิธี Download Mircosoft Visual C# Express 2010</title><content type='html'>Mircosoft Visual C# Express 2010 ออกมาแล้วนะครับ ซึ่งเหมือนเดิม เราสามารถไป load เพื่อมาเป็น IDE เขียนภาษา C# ตาม link ด้านล่างเลยครับ &lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;a href=&quot;http://www.microsoft.com/express/Downloads/#2010-Visual-CS&quot;&gt;http://www.microsoft.com/express/Downloads/#2010-Visual-CS&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;แล้วมาตามขั้นตอนเลยครับ มาถึงเลือก ที่ C#&lt;/div&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5459891418903600978&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 171px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://4.bp.blogspot.com/_6SVlsqWb7m8/S8VuUVfz31I/AAAAAAAAAus/u84bsl9Mcdg/s320/14-4-2553+14-07-03.png&quot; border=&quot;0&quot; /&gt; &lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;แล้วกด Download โดยจะ Save หรือ จะ Run ก็ได้ แต่ผมจะเซฟนะครับ&lt;/div&gt;&lt;br /&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5459891405252008178&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 239px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://3.bp.blogspot.com/_6SVlsqWb7m8/S8VuTipBGPI/AAAAAAAAAuc/V9nmv0udVN4/s320/14-4-2553+14-13-54.png&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;&lt;div&gt;จากนั้น กด Run ครับ&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5459891411511624290&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 233px; CURSOR: hand; HEIGHT: 60px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://2.bp.blogspot.com/_6SVlsqWb7m8/S8VuT59bQmI/AAAAAAAAAuk/IqS1oAbXkSc/s320/14-4-2553+14-13-25.png&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;&lt;div&gt;แต่บังเอิญเนื่องจากบ้านผมยังเป้นของโบราณ XP sp2 เลยยังลงไมได้ 55&lt;/div&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5459891402167260242&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 269px; CURSOR: hand; HEIGHT: 100px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://4.bp.blogspot.com/_6SVlsqWb7m8/S8VuTXJjlFI/AAAAAAAAAuU/UOMHC5fZCAA/s320/14-4-2553+14-14-17.png&quot; border=&quot;0&quot; /&gt; &lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;สรุปไว้ก่อน ว่า XP service 2 ใช้ไม่ได้แล้ว&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;เดียวผมลง window ใหม่แล้วจะมาเขียนต่อนะครับ&lt;/div&gt;&lt;div&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5459891396382307218&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 273px; CURSOR: hand; HEIGHT: 320px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://4.bp.blogspot.com/_6SVlsqWb7m8/S8VuTBmUM5I/AAAAAAAAAuM/fb_Rjpxb9YM/s320/14-4-2553+14-17-55.png&quot; border=&quot;0&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gkengcsharp.blogspot.com/feeds/6646126557170078074/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://gkengcsharp.blogspot.com/2010/04/download-mircosoft-visual-c-express.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990097047525167837/posts/default/6646126557170078074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990097047525167837/posts/default/6646126557170078074'/><link rel='alternate' type='text/html' href='http://gkengcsharp.blogspot.com/2010/04/download-mircosoft-visual-c-express.html' title='วิธี Download Mircosoft Visual C# Express 2010'/><author><name>G_keng</name><uri>http://www.blogger.com/profile/16298145824063870199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/-5YANhpC6AzQ/VOWOGi1fhwI/AAAAAAAACb0/hDYOa3gPstA/s1600/*'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_6SVlsqWb7m8/S8VuUVfz31I/AAAAAAAAAus/u84bsl9Mcdg/s72-c/14-4-2553+14-07-03.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990097047525167837.post-6934356562221295764</id><published>2009-11-07T20:35:00.000-08:00</published><updated>2009-11-07T21:19:27.972-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Syntax"/><title type='text'>สร้างการเลือกของ code</title><content type='html'>decision making หรือ  Flow Control เป็นคำที่ใช้ในบทเหล่านี้ คือการใช้ Code เพื่อการตัดสินใจในการเขียนโปรแกรม โดยส่วนใหญ่ต้องใช้ค่า Ture False ในการสร้างเงื่อนไขต่างๆ โดยวิธีการสร้างก็ใช้เครื่องหมายหล่านี้เป็นพื้นฐาน&lt;br /&gt;&lt;br /&gt;==&lt;br /&gt;!=&lt;br /&gt;&lt;&lt;br /&gt;&lt;=&lt;br /&gt;&gt;=&lt;br /&gt;&gt;&lt;br /&gt;&lt;br /&gt;เช่น (xx==10) ถ้า xxมีค่าเท่ากับ10 จะเป้น Ture และถ้า xx ไม่เท่ากับ 10 ค่าจะเป็น False&lt;br /&gt;&lt;br /&gt;ถ้าในกรณีที่มีต้องการให้มีเงื่อนไขที่มากกว่าหนึ่งอย่าง ก็ใช้เครื่องหมาย logic มาใช้  ได้แก่&lt;br /&gt;&amp;amp;&amp;amp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;เช่น&lt;br /&gt;(xx&lt;=10)&amp;amp;&amp;amp;(XX&gt;=0)&lt;br /&gt;อันนี้ต้องเป็นไปตามเงือนไขทั้ง 2 ประการ (xx&lt;=10)และ(XX&gt;=0)&lt;br /&gt;จะหมายถึง ว่าค่า xx ต้องอยู่ในชอบเชตของ 0 ถึง 10 เท่านั้น ถึงจะเป็น Ture&lt;br /&gt; ถ้าน้อยกว่า0หรือมากกว่า10 จะเป็น Flase ทัน&lt;br /&gt;&lt;br /&gt;(xx&gt;10)(XX&lt;0)&lt;br /&gt;จะหมายถึง ว่าค่า xx ต้องไม่อยู่ในชอบเชตของ 0 ถึง 10 เท่านั้น ถึงจะเป็น Ture&lt;br /&gt;ถ้ามากกว่า 10 จะตรงกับ (xx&gt;10) ซึ่งทำให้เป็น Ture&lt;br /&gt;ถ้าค่า xx น้อยกว่า 0 จะตรงกับ (XX&lt;0)  ซึ่งทำให้เป็น Ture&lt;br /&gt;แต่ถ้าไม่ตรงกับเงือ่นไขใดเลย จะเป็น False&lt;br /&gt; ถ้าน้อยกว่า0หรือมากกว่า10 จะเป็น Flase ทัน&lt;br /&gt;&lt;br /&gt;ซึ่งพวกนี้ใช้รวมกับ If, if else,  switch เป็นต้น ซึ่งจะเขียนวิธีใช้ในครั้งต่อไป</content><link rel='replies' type='application/atom+xml' href='http://gkengcsharp.blogspot.com/feeds/6934356562221295764/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://gkengcsharp.blogspot.com/2009/11/code.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990097047525167837/posts/default/6934356562221295764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990097047525167837/posts/default/6934356562221295764'/><link rel='alternate' type='text/html' href='http://gkengcsharp.blogspot.com/2009/11/code.html' title='สร้างการเลือกของ code'/><author><name>G_keng</name><uri>http://www.blogger.com/profile/16298145824063870199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/-5YANhpC6AzQ/VOWOGi1fhwI/AAAAAAAACb0/hDYOa3gPstA/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990097047525167837.post-2925178590096619215</id><published>2009-10-29T03:32:00.000-07:00</published><updated>2009-10-29T08:33:34.357-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Syntax"/><title type='text'>การใช้ input เข้า console</title><content type='html'>การทำโปรแกรมแบบ Console ส่วนใหญ่จะเป็นการทำโปรแกรม พื้นฐานที่ หนังสือหลายเล่มเค้าใช้หัดสอนกัน ซึ่งช่วงนี้ผมก็จะเขียนใน Console ไปก่อนนะครับ&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;โดยคราวนี้จะพูดถึงวิธีการใส่ Input ใน Console โดยผมลองเขียนตัวอย่างโปรแกรมดังนี้ โดยลองเปิดProject จาก Visualstudio หรือ Visual C# แล้วเลือก Console App แล้วทดสอบเขียน Code ดังนี้&lt;br /&gt;&lt;br /&gt;static void Main(string[] args)&lt;br /&gt;{&lt;br /&gt;string uName;&lt;br /&gt;Console.WriteLine(&quot;Tell your name&quot;);&lt;br /&gt;uName = Console.ReadLine();&lt;br /&gt;Console.WriteLine(&quot;Welcome {0}&quot;,uName);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;-----------&lt;br /&gt;โดยเริ่มจากประกาศค่าก่อน คือ&lt;br /&gt;string uName;&lt;br /&gt;เป็นการประกาศค่าให้ uName นั้น เป็นค่าตัวอักษรหรือ string นั้นเอง&lt;br /&gt;----------------------------------------------------&lt;br /&gt;คำสั่งแรก Console.WriteLine(&quot;Tell your name&quot;);  คือเมื่อโปรแกรมเปิดมาให้แสดงว่า Tell your name นั้นเอง&lt;br /&gt;-----------------------------------------------------&lt;br /&gt;จากนั้น กำหนดค่า ให้ unName นั้นมารับค่า จากคำสั่ง Console.ReadLine();&lt;br /&gt;&lt;br /&gt;โดย Console.ReadLine();  คำสั่งนี้คือ การให้พิมพ์ค่าจาก Console&lt;br /&gt;--------------------------------------------------&lt;br /&gt;บรรทัดสุดท้าย คือ Console.WriteLine(&quot;Welcome {0}&quot;,uName);  ซึ่งเป็น ตำสั่งให้ Console ให้แสดงคำว่า Welcome .....&lt;br /&gt;&lt;br /&gt;&quot;Welcome {0}&quot;,uName&lt;br /&gt;โดย {0} เป็นตัวแทนค่าของ uName ซึ่งเมื่อรับค่าจาก Console.ReadLine(); แล้ว ได้ค่า String มาทำงาน&lt;br /&gt;--------------------------------------------------&lt;br /&gt;&lt;br /&gt;ซึ่งทั้งหมดก็เป็นการทำงานของ Code ที่ทำให้เข้าใจคำสั่ง Console.ReadLine(); เป็นคำสั่งที่ต้องใช้เพื่อเรียนพื้นฐานเบื้องต้นของ C#</content><link rel='replies' type='application/atom+xml' href='http://gkengcsharp.blogspot.com/feeds/2925178590096619215/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://gkengcsharp.blogspot.com/2009/10/input-console.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990097047525167837/posts/default/2925178590096619215'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990097047525167837/posts/default/2925178590096619215'/><link rel='alternate' type='text/html' href='http://gkengcsharp.blogspot.com/2009/10/input-console.html' title='การใช้ input เข้า console'/><author><name>G_keng</name><uri>http://www.blogger.com/profile/16298145824063870199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/-5YANhpC6AzQ/VOWOGi1fhwI/AAAAAAAACb0/hDYOa3gPstA/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990097047525167837.post-5582394177366346101</id><published>2009-10-22T08:33:00.000-07:00</published><updated>2009-11-07T20:57:18.284-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Operators"/><category scheme="http://www.blogger.com/atom/ns#" term="Syntax"/><title type='text'>เครื่องหมายแบบต่างๆ</title><content type='html'>เป็นพวกเครื่องหมายทางคณิตศาสตร์ ทั้งหลาย เช่น&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Arithmetic Operators &amp;amp; Mathematical Operators ใช้เพื่อทำการทางคณิตศาสตร์ต่างๆ ใช้กับตัวเลข&lt;br /&gt;+ บวก&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;- ลบ&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;* คูณ&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/ หาร&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;% หารได้เศษ&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Logical Operator ใช้เพื่อสร้างเงื่อนไขในการเขียนโปรแกรม&lt;br /&gt;&lt;br /&gt;! ไม่&lt;br /&gt;&lt;br /&gt;&amp;amp;&amp;amp; และ&lt;br /&gt;&lt;br /&gt;หรือ&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Comparison Operator พวกนี้ใช้เพื่อเทียบค่าต่างๆ ของข้อมูลในการเขียนโปรแกรม&lt;br /&gt;&lt;br /&gt;== เท่ากัน&lt;br /&gt;&lt;br /&gt;!= ไม่เท่ากัน&lt;br /&gt;&lt;br /&gt;&gt; มากกว่า&lt;br /&gt;&lt;br /&gt;&lt; น้อยกว่า &gt;= มากกว่าและเท่ากัน&lt;br /&gt;&lt;br /&gt;&lt;= น้อยกว่าและเท่ากัน</content><link rel='replies' type='application/atom+xml' href='http://gkengcsharp.blogspot.com/feeds/5582394177366346101/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://gkengcsharp.blogspot.com/2009/10/blog-post.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990097047525167837/posts/default/5582394177366346101'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990097047525167837/posts/default/5582394177366346101'/><link rel='alternate' type='text/html' href='http://gkengcsharp.blogspot.com/2009/10/blog-post.html' title='เครื่องหมายแบบต่างๆ'/><author><name>G_keng</name><uri>http://www.blogger.com/profile/16298145824063870199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/-5YANhpC6AzQ/VOWOGi1fhwI/AAAAAAAACb0/hDYOa3gPstA/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990097047525167837.post-3853298409210681028</id><published>2009-10-19T22:25:00.000-07:00</published><updated>2009-10-19T23:04:18.242-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Syntax"/><category scheme="http://www.blogger.com/atom/ns#" term="Variables"/><title type='text'>คำสงวนในการตั้งชื่อตัวแปร (Keywords in C#)</title><content type='html'>คำสงวนหรือคำต้องห้าม คือ คำที่ไม่สามารถนำมาใช้ในการประกาศค่าตัวแปรใน ภาษา C# ได้ โดยคำเหล่านั้นส่วนใหญ่เป็นคำที่นำไปทำหน้าทีอย่างอื่นอยู่แล้ว จึงไม่อนุญาติให้ใช้ซ้ำกันได้ ดังนี้&lt;br /&gt;&lt;br /&gt;abstract&lt;br /&gt;as&lt;br /&gt;base&lt;br /&gt;bool&lt;br /&gt;break&lt;br /&gt;byte&lt;br /&gt;catch&lt;br /&gt;case&lt;br /&gt;char&lt;br /&gt;checked&lt;br /&gt;class&lt;br /&gt;const&lt;br /&gt;continue&lt;br /&gt;decimal&lt;br /&gt;default&lt;br /&gt;delegate&lt;br /&gt;do&lt;br /&gt;double&lt;br /&gt;else&lt;br /&gt;enum&lt;br /&gt;explicit&lt;br /&gt;event&lt;br /&gt;extern&lt;br /&gt;false&lt;br /&gt;finally&lt;br /&gt;fixed&lt;br /&gt;float&lt;br /&gt;for&lt;br /&gt;foreach&lt;br /&gt;goto&lt;br /&gt;if&lt;br /&gt;implicit&lt;br /&gt;in&lt;br /&gt;int&lt;br /&gt;interface&lt;br /&gt;internal&lt;br /&gt;is&lt;br /&gt;lock&lt;br /&gt;long&lt;br /&gt;namespace&lt;br /&gt;new&lt;br /&gt;null&lt;br /&gt;object&lt;br /&gt;operator&lt;br /&gt;out&lt;br /&gt;override&lt;br /&gt;params&lt;br /&gt;private&lt;br /&gt;protected&lt;br /&gt;public&lt;br /&gt;readonly&lt;br /&gt;ref&lt;br /&gt;return&lt;br /&gt;sbyte&lt;br /&gt;sealed&lt;br /&gt;short&lt;br /&gt;sizeof&lt;br /&gt;stackalloc&lt;br /&gt;static&lt;br /&gt;struct&lt;br /&gt;string&lt;br /&gt;switch&lt;br /&gt;this&lt;br /&gt;throw&lt;br /&gt;true&lt;br /&gt;try&lt;br /&gt;typeof&lt;br /&gt;uint&lt;br /&gt;ulong&lt;br /&gt;unchecked&lt;br /&gt;unsafe&lt;br /&gt;ushort&lt;br /&gt;using&lt;br /&gt;virtual&lt;br /&gt;volatile&lt;br /&gt;void&lt;br /&gt;while&lt;br /&gt;&lt;br /&gt;ซึ่งทั้งนี้เป้นคำห้ามใช้ตั้งชื่อตัวแปรใน ภาษา C# นะครับ ซึ่งต่อไปในอนาคตอาจมีการเปลี่ยนแปลง เพิ่มเติม ก็เป็นไปได้ขึ้นอยู่กับผู้พํฒนา&lt;br /&gt;&lt;br /&gt;ผมลอง ตั้งคำต้องห้ามเล่านี้เป็นตัวแปรใน Visual C# 2008 Express&lt;br /&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5394558543639948354&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 345px; CURSOR: hand; HEIGHT: 267px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://2.bp.blogspot.com/_6SVlsqWb7m8/St1SafG1LEI/AAAAAAAAAiU/UbmfSzabPhY/s320/key001.jpg&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;ซึ่งผลที่ได้มาเป็นดังนี้&lt;br /&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5394558529375591986&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 127px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://2.bp.blogspot.com/_6SVlsqWb7m8/St1SZp98XjI/AAAAAAAAAiM/e2euKmwxaRY/s320/key002.jpg&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;ซึ่งการแจ้ง Error นั้นบอกถึงการมีปัญหาในการระบุค่า ตัวแปรซึ่งไม่สามารถใช้งานได้</content><link rel='replies' type='application/atom+xml' href='http://gkengcsharp.blogspot.com/feeds/3853298409210681028/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://gkengcsharp.blogspot.com/2009/10/keywords-in-c.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990097047525167837/posts/default/3853298409210681028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990097047525167837/posts/default/3853298409210681028'/><link rel='alternate' type='text/html' href='http://gkengcsharp.blogspot.com/2009/10/keywords-in-c.html' title='คำสงวนในการตั้งชื่อตัวแปร (Keywords in C#)'/><author><name>G_keng</name><uri>http://www.blogger.com/profile/16298145824063870199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/-5YANhpC6AzQ/VOWOGi1fhwI/AAAAAAAACb0/hDYOa3gPstA/s1600/*'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_6SVlsqWb7m8/St1SafG1LEI/AAAAAAAAAiU/UbmfSzabPhY/s72-c/key001.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990097047525167837.post-8861181810415720836</id><published>2009-10-01T00:52:00.000-07:00</published><updated>2009-10-22T08:32:13.258-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Operators"/><category scheme="http://www.blogger.com/atom/ns#" term="Syntax"/><title type='text'>นิพจน์ และ เครื่องหมาย (Expressions &amp;  Operators)</title><content type='html'>อีกประการที่อยากให้ทราบและสำคัญกับพื้นฐานการเขียนโปรแกรมทุกประภทมาก ไม่ว่าจะ .NET C# C++ หรือ Java และภาษาอื่นๆ คือ การคำนวณของเครื่องหมายต่างๆ และนิพจน์&lt;br /&gt;&lt;br /&gt;นิพจน์ เป็นประโยคที่แสดงให้เห็นความสัมพันธ์ของค่าตัวแปรต่างๆ ผ่านเครื่องหมายทางคณิตศาสตร์ และ เครื่องหมายเท่ากับ ซึ่งสามารถทำให้ซับซ้อนเท่าไรก็ได้ตามผู้เขียนโปรแกรม เช่น&lt;br /&gt;&lt;br /&gt;int x,y,z&lt;br /&gt;&lt;br /&gt;z = 5;&lt;br /&gt;y=x+8;&lt;br /&gt;เป็นต้น&lt;br /&gt;&lt;br /&gt;ส่วนเครื่องหมายมีไว้เพื่อมีการกระทำระหว่าง 2 ตัวแปรที่กำหนดไว้ โดยแบ่งประเภทได้ 3 แบบ&lt;br /&gt;&lt;br /&gt;Unary คือใช้กับตัวแปร หรือ ค่าคงที่ 1 ตัว&lt;br /&gt;เช่น x = +b , y = -a&lt;br /&gt;Binary คือใช้กับตัวแปร หรือ ค่าคงที่ 2 ตัว&lt;br /&gt;เช่น a= 5+x, b= x/y&lt;br /&gt;Ternary คือใช้กับตัวแปร หรือ ค่าคงที่ 3 ตัว&lt;br /&gt;เช่น int vars = 50.ToString() == &quot;50&quot; ? 1 : -1;&lt;br /&gt;&lt;br /&gt;ซึ่งตัวเครื่องหมายในการเขียนโปรแกรมนั้น มีอีกหลายประเภท ซึ่งจะบอกในบทความต่อไป</content><link rel='replies' type='application/atom+xml' href='http://gkengcsharp.blogspot.com/feeds/8861181810415720836/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://gkengcsharp.blogspot.com/2009/10/expressions-operators.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990097047525167837/posts/default/8861181810415720836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990097047525167837/posts/default/8861181810415720836'/><link rel='alternate' type='text/html' href='http://gkengcsharp.blogspot.com/2009/10/expressions-operators.html' title='นิพจน์ และ เครื่องหมาย (Expressions &amp;  Operators)'/><author><name>G_keng</name><uri>http://www.blogger.com/profile/16298145824063870199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/-5YANhpC6AzQ/VOWOGi1fhwI/AAAAAAAACb0/hDYOa3gPstA/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990097047525167837.post-3215079041050744937</id><published>2009-10-01T00:02:00.000-07:00</published><updated>2009-10-01T00:46:37.683-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DataType"/><title type='text'>Type ทั่วไปของตัวแปร</title><content type='html'>Tpye ค่าตัวแปรต่างๆ ใน C# ที่สามารถใช้ประกาศค่าตัวแปรได้ เพื่อระบุประเภทของข้อมูลได้มีดังนี้&lt;br /&gt;&lt;br /&gt;เลขจำนวนเต็มนั้นคือเลขที่ไม่มีจุดทศนิยมได้ มี 3 แบบ คือ เต็มศูนย์ เต็มบวก เต็มลบ&lt;br /&gt;&lt;br /&gt;ค่าตัวเลขแบบจำนวนเต็มบวกคือ ไม่สามารถมีจุดทศนิยมและไม่สามารถติดลบได้ มีดังนี้&lt;br /&gt;byte ค่าระหว่าง 0 ถึง 255&lt;br /&gt;ushort ค่าระหว่าง 0 ถึง 65535&lt;br /&gt;uint ค่าระหว่าง 0 ถึง 4294967295&lt;br /&gt;ulong ค่าระหว่าง 0 ถึง 18446744073709551615&lt;br /&gt;&lt;br /&gt;ค่าตัวเลขแบบจำนวนเต็มคือ สามารถใช้ค่าได้ทั้ง เต็มบวก เต็มลบ มีดังนี้&lt;br /&gt;sbyte ค่าระหว่าง  – 128 ถึง 127&lt;br /&gt;short  ค่าระหว่าง – 32768 ถึง 32767&lt;br /&gt;int      ค่าระหว่าง  – 2147483648 ถึง 2147483647&lt;br /&gt;long    ค่าระหว่าง  – 9223372036854775808 ถึง 9223372036854775807&lt;br /&gt;&lt;br /&gt;ค่าเลขจำนวนจริงสามารถใส่ค่าทศนิยมได้ มีดังนี้&lt;br /&gt;decimal&lt;br /&gt;float&lt;br /&gt;double&lt;br /&gt;&lt;br /&gt;อีกประเภทคือ ค่าตัวอักษร ไม่สามารถนำไปทำการ + - * / ได้ มีดังนี้&lt;br /&gt;string&lt;br /&gt;char&lt;br /&gt;&lt;br /&gt;อีกตัวเป็นค่า Ture หรือ False คือ boolean&lt;br /&gt;bool&lt;br /&gt;&lt;br /&gt;ในการเลือกประเภทค่าตัวแปรต่างๆ นั้น เราต้องเข้าใจว่าต้องการให้ค่านั้นเป็นอะไร ทำงานอะไร และจัดสรรให้เหมาะสมกับการเขียนโปรแกรม เพื่อให้ได้โปรแกรมที่ดีนะครับ</content><link rel='replies' type='application/atom+xml' href='http://gkengcsharp.blogspot.com/feeds/3215079041050744937/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://gkengcsharp.blogspot.com/2009/10/type.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990097047525167837/posts/default/3215079041050744937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990097047525167837/posts/default/3215079041050744937'/><link rel='alternate' type='text/html' href='http://gkengcsharp.blogspot.com/2009/10/type.html' title='Type ทั่วไปของตัวแปร'/><author><name>G_keng</name><uri>http://www.blogger.com/profile/16298145824063870199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/-5YANhpC6AzQ/VOWOGi1fhwI/AAAAAAAACb0/hDYOa3gPstA/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990097047525167837.post-4238142800331543838</id><published>2009-09-18T23:29:00.000-07:00</published><updated>2009-10-19T23:05:49.744-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DataType"/><category scheme="http://www.blogger.com/atom/ns#" term="Syntax"/><category scheme="http://www.blogger.com/atom/ns#" term="Variables"/><title type='text'>วิธีการใช้ตัวแปร(Variables) ตามประเภทของ Data</title><content type='html'>Data ในคอมพิวเตอร์มี 2 ประเภทหลักๆ คือ&lt;br /&gt;&lt;br /&gt;Numeric data คือข้อมูลประเภทสามารถนำมาใช้ทำกระบวนการทางคณิตศาสตร์ได้&lt;br /&gt;&lt;br /&gt;Textual data คือข้อมูลที่เป็นตัวอักษร ไม่สามารถทำการคำนวณทางคณิตศาสตร์ได้ บางครั้งก็เป็นตัวเลขแต่ไม่สามารถ เช่น รหัสไปรณีย์ เป็นต้น&lt;br /&gt;&lt;br /&gt;(Purdurn,53,2007,Beginning C# 3.0)&lt;br /&gt;&lt;br /&gt;ซึ่งใน C# การใช้ตัวแปรต้องทำการประกาศ(declare)ค่าตัวแปร(Variables) นั้นเป้นการระบุว่าค่านั้นเป็นค่าลักษณะใด(Type) โดยใช้วิธีดังนี้&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ประเภทของData ชื่อตัวแปร = ค่าของข้อมูล;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;เช่น&lt;br /&gt;&lt;br /&gt;int BBB = 25;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;int AAA = 30;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;string TTT = &quot;Gkengc#&quot;;&lt;br /&gt;&lt;br /&gt;เราสามารถใช่ตัวแปรเหล่านี้มาใช้งานได้ โดย int เป็นตัวเลข สามารถนำมาทำกระบวนการทางคณิตศาสตร์ได้&lt;br /&gt;ส่วน String เป็นตัวอักษร ต้องใส่ &quot; &quot;&lt;br /&gt;&lt;br /&gt;-----------------------------------------------------------------------------------------------&lt;br /&gt;using System;&lt;br /&gt;using System.Collections.Generic;&lt;br /&gt;using System.Linq;&lt;br /&gt;using System.Text;&lt;br /&gt;&lt;br /&gt;namespace var001&lt;br /&gt;{&lt;br /&gt;class Program&lt;br /&gt;{&lt;br /&gt;static void Main(string[] args)&lt;br /&gt;{&lt;br /&gt;int BBB = 25;&lt;br /&gt;int AAA = 30;&lt;br /&gt;string TTT = &quot;Gkengc#&quot;;&lt;br /&gt;Console.WriteLine(TTT);&lt;br /&gt;Console.WriteLine(AAA);&lt;br /&gt;Console.WriteLine(BBB);&lt;br /&gt;Console.WriteLine(BBB + AAA);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5386878822424593714&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 240px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://1.bp.blogspot.com/_6SVlsqWb7m8/SsIJv4KxRTI/AAAAAAAAAdE/4zof7X-NSvA/s320/29-9-2552+20-14-21.png&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;---------------------------------------------------------------------------------------------&lt;br /&gt;ผลที่ได้ก็ออกมาดังนี้&lt;br /&gt;โดยโปรเจคนี้ใช่แค่การแสดงค่าใน Console ของ C# โดยใช้การประกาศตัวแปรตามนี้&lt;br /&gt;int BBB = 25;&lt;br /&gt;int AAA = 30;&lt;br /&gt;string TTT = &quot;Gkengc#&quot;;&lt;br /&gt;AAA BBB เป็นตัวแปรคณิต&lt;br /&gt;TTT เป็นตัวแปรอักษร&lt;br /&gt;&lt;br /&gt;Console.WriteLine(ตัวแปรที่ประกาศไว้);&lt;br /&gt;&lt;br /&gt;3 บรรทัดแรก เป็นการแสดงค่าตัวแปรที่ได้ประกาศไว้&lt;br /&gt;Console.WriteLine(TTT); Console.WriteLine(AAA); Console.WriteLine(BBB);&lt;br /&gt;&lt;br /&gt;บรรทัด Console.WriteLine(BBB + AAA); เป็นการแสดงให้การบวกกันของ 2 ตัวแปรที่ประกาศไว้&lt;br /&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5386880597066991714&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 136px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://4.bp.blogspot.com/_6SVlsqWb7m8/SsILXLOfSGI/AAAAAAAAAdU/-LmLkdzqX24/s320/var.jpg&quot; border=&quot;0&quot; /&gt;----------------------------------------------------------------------------------------------</content><link rel='replies' type='application/atom+xml' href='http://gkengcsharp.blogspot.com/feeds/4238142800331543838/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://gkengcsharp.blogspot.com/2009/09/data.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990097047525167837/posts/default/4238142800331543838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990097047525167837/posts/default/4238142800331543838'/><link rel='alternate' type='text/html' href='http://gkengcsharp.blogspot.com/2009/09/data.html' title='วิธีการใช้ตัวแปร(Variables) ตามประเภทของ Data'/><author><name>G_keng</name><uri>http://www.blogger.com/profile/16298145824063870199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/-5YANhpC6AzQ/VOWOGi1fhwI/AAAAAAAACb0/hDYOa3gPstA/s1600/*'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_6SVlsqWb7m8/SsIJv4KxRTI/AAAAAAAAAdE/4zof7X-NSvA/s72-c/29-9-2552+20-14-21.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990097047525167837.post-8988279178177212421</id><published>2009-09-18T22:12:00.000-07:00</published><updated>2009-09-19T21:48:41.682-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Syntax"/><title type='text'>Syntax</title><content type='html'>&lt;p&gt;เรามาพูด syntax เป็น กฎ หรือ ไวยากรณ์ ที่ใช้ในการเขียนภาษาโปรแกรม ต่างๆ ซึ่งใช้ซึ่งเราต้องรู้เพื่อให้เขียนโปรแกรมในภาษานั้นๆ ได้ ตามหลักของแต่ละภาษา&lt;br /&gt;&lt;br /&gt;สังเกตุได้ถ้าเราเขียนไม่ถูก จะเกิด Error หรือ Run โปรแกรมไม่ได้นั้นเอง&lt;br /&gt;&lt;br /&gt;มาคำนิยามอื่นๆ ของ Syntax จากคนอื่นๆ บ้างนะครับ&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The syntax of a programming language refers to the rules governing the use of the language.. (Purdurn,28,2007,Beginning C# 3.0)&lt;br /&gt;&lt;br /&gt;รูปแบบของ ภาษา ที่เรา เขียนในคอม พิวเตอร์ และ จะนําalgorithm มาเรียบเรียง ใหม่ ในรูปแบบของแต่ละภาษา&lt;a href=&quot;http://guru.google.co.th/guru/thread?tid=14a095e05050174f&amp;amp;pli=1&quot;&gt;http://guru.google.co.th/guru/thread?tid=14a095e05050174f&amp;amp;pli=1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a class=&quot;st_tag internal_tag&quot; title=&quot;Posts tagged with syntax&quot; href=&quot;http://www.khonbanna.com/tag/syntax/&quot; rel=&quot;tag&quot;&gt;Syntax&lt;/a&gt; หมายถึง กฎเกณฑ์ในการผูกประโยค ในภาษาคอมพิวเตอร์ก็ต้องมีวากยสัมพันธ์ หรือไวยากรณ์เหมือนภาษามนุษย์ธรรมดา &lt;a href=&quot;http://www.khonbanna.com/tag/syntax/&quot;&gt;http://www.khonbanna.com/tag/syntax/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;ซึ่งสิ่งที่เราผมจะศึกษาและมาเล่าให้ฟังต่อไปก็แบ่งเป็น 2 ส่วน&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Syntax ซึ่งทำให้เขียนโปรแกรมได้ถูกต้อง เช่น พวก Datatpye ต่างๆ เครื่องมือทางคณิตศาสตร์ การสร้างเงื่อนไขต่างๆ และอื่นๆ&lt;/li&gt;&lt;li&gt;Algorithm เป็นการคิดวิธีการแก้ไขปัญหา เป็นสิ่งทำให้เขียนโปรแกรมดี&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;โดนการเริ่มต้นกับ Syntax นั้น อาจดูไม่ง่ายในช่วงแรก แต่ศึกษาไปสักพักก็จะเข้าใจว่าไม่ยาก และช่วยเหลือให้การอ่าน Code ต่างๆด้วย&lt;/p&gt;------------------------------------------------------&lt;br /&gt;ซึ่งหลักของ C# compilers นั้น มีเบื้องต้น ดังนี้&lt;br /&gt;จะไม่สนใจที่ว่าง ระหว่าง Code&lt;br /&gt;------------------------------------------------------&lt;br /&gt;C# เป็นภาษาแบบ block - structured language, การแบ่งช่วงคำสั่งใช้หรือ statements นั้น แบ่งโดย ; ตามตัวอย่าง &lt;p&gt;&lt;/p&gt;&lt;p&gt;{&amp;lt;statement1&amp;gt;;&amp;lt;statement2&amp;gt;;&amp;lt;statement3&amp;gt;;} &lt;/p&gt;&lt;p&gt;หรือ&lt;/p&gt;&lt;p&gt;{&amp;lt;statement1&amp;gt;;&lt;/p&gt;&lt;p&gt;&amp;lt;statement2&amp;gt;;&lt;/p&gt;&lt;p&gt;&amp;lt;statement3&amp;gt;;}&lt;br /&gt;ผลการแบ่งประโยคของ compilers เหมือนกัน แต่ แบบหลังนี้ผมว่าอ่านง่ายกว่า &lt;/p&gt;&lt;p&gt;------------------------------------------------------&lt;br /&gt;case sensitive ขนาดตัวอักษรเล็กใหญ่สำคัญมากตามตัวอย่าง&lt;br /&gt;&lt;br /&gt;console.WriteLine(“Gkeng Beginning C#”);&lt;br /&gt;CONSOLE.WRITELINE(“Gkeng Beginning C#”);&lt;br /&gt;Console.Writeline(“Gkeng Beginning C#”);&lt;br /&gt;&lt;br /&gt;พวกนี้ให้ผลไม่เหมือนกันนะครับ ลอง นำไป Code ไป ทดสอบดูครับ&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://gkengcsharp.blogspot.com/feeds/8988279178177212421/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://gkengcsharp.blogspot.com/2009/09/syntax.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990097047525167837/posts/default/8988279178177212421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990097047525167837/posts/default/8988279178177212421'/><link rel='alternate' type='text/html' href='http://gkengcsharp.blogspot.com/2009/09/syntax.html' title='Syntax'/><author><name>G_keng</name><uri>http://www.blogger.com/profile/16298145824063870199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/-5YANhpC6AzQ/VOWOGi1fhwI/AAAAAAAACb0/hDYOa3gPstA/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990097047525167837.post-1352593810720759389</id><published>2009-09-10T09:15:00.000-07:00</published><updated>2009-09-18T22:53:45.880-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="IDE"/><title type='text'>Hello world โปรแกรมแรกของเรา</title><content type='html'>เริ่มจากเราเปิดโปรแกรมก่อน Visual C# ก่อน&lt;br /&gt;&lt;a href=&quot;http://2.bp.blogspot.com/_6SVlsqWb7m8/SqkoOECCZzI/AAAAAAAAAZk/MOL4RkGZ3co/s1600-h/001.bmp&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5379875451936335666&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 231px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://2.bp.blogspot.com/_6SVlsqWb7m8/SqkoOECCZzI/AAAAAAAAAZk/MOL4RkGZ3co/s320/001.bmp&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; เมื่อเปิดโปรแกรมมาแล้วให้ไปที่ File เพื่อทำการเปิด โปรเจค ที่ New Project&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href=&quot;http://2.bp.blogspot.com/_6SVlsqWb7m8/SqkoNmmcQXI/AAAAAAAAAZc/MmHdkyXH3kg/s1600-h/002.bmp&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5379875444035961202&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 292px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://2.bp.blogspot.com/_6SVlsqWb7m8/SqkoNmmcQXI/AAAAAAAAAZc/MmHdkyXH3kg/s320/002.bmp&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;เมื่อเปิดโปรเจคแล้ว จะมีให้เลือกว่าเราจะเขียนโปรแกรมประเภทไหน Web Windows แต่ครั้งแรก ผมจะเลือกเขียน Console ก่อน &lt;/div&gt;&lt;br /&gt;&lt;div&gt;โดยใช้ชื่อโปรเจคนี้ว่า Fristprogram และกด OK&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href=&quot;http://1.bp.blogspot.com/_6SVlsqWb7m8/SqknYrbzZoI/AAAAAAAAAZU/EK4R0KiLDWQ/s1600-h/003.bmp&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5379874534800451202&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 197px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://1.bp.blogspot.com/_6SVlsqWb7m8/SqknYrbzZoI/AAAAAAAAAZU/EK4R0KiLDWQ/s320/003.bmp&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; มาเริ่มต้นที่หน้าเขียนโปรแกรม&lt;br /&gt;&lt;a href=&quot;http://1.bp.blogspot.com/_6SVlsqWb7m8/SqknYWrEHRI/AAAAAAAAAZM/iJrGLVvnZ7E/s1600-h/004.bmp&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5379874529227316498&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 120px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://1.bp.blogspot.com/_6SVlsqWb7m8/SqknYWrEHRI/AAAAAAAAAZM/iJrGLVvnZ7E/s320/004.bmp&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; จากนั้นให้มาในส่วนของ ภายในวงเล็บ static void Main(string[] args)( )&lt;br /&gt;&lt;a href=&quot;http://2.bp.blogspot.com/_6SVlsqWb7m8/SqknX4l7GoI/AAAAAAAAAZE/yf7U_M7YvMw/s1600-h/005.bmp&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5379874521152690818&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 216px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://2.bp.blogspot.com/_6SVlsqWb7m8/SqknX4l7GoI/AAAAAAAAAZE/yf7U_M7YvMw/s320/005.bmp&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;/div&gt;&lt;div&gt;แล้วลองเขียนโคด ไม่กี่คำคำ คือ Console.WriteLine(&quot;Hello world&quot;); ใส่ในวงเล็บนี้ เพื่อที่จะทำการแสดงคำพูด Hello world ในหน้าจอ Console&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;โดย IDE จะช่วยเราในการทำความสะดวกในการพิมพ์ Function ต่างๆ อย่างตามรูป เมื่อเรากด C IDE ก็จะเปิดคำที่นำด้วย C ให้เราว่ามีไรบ้าง และพิมไปก็จะลด ลงไปตามคำทีมี&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;ห้ามตกนะครับ ในส่วนอื่นๆ ที่ไม่ อยู่ใน &quot;เครื่องหมายคำพูด&quot; บังคับตัวเล็กและใหญ่นะครับ ถ้าพลาดความหมายของภาษาจะเปลี่ยนทันที่&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;อีกของ คือ เรื่อง . ห้ามตก เครื่องหมายห้ามพลาด &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;ทุกเครื่องหมายถ้าเปิด( แล้วอย่าลืมปิด )&lt;/div&gt;&lt;br /&gt;&lt;div&gt;อันนี้เป้นหลักคร่าวๆ ก่อนนะครับ ในการเขียนภาษา&lt;/div&gt;&lt;br /&gt;&lt;div&gt;เมื่อเสร็จแล้วให้ไปที่ Debug แล้ว เลือก Start Without Debugging หรือ กด Ctrl+F5&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href=&quot;http://1.bp.blogspot.com/_6SVlsqWb7m8/SqknXpofiiI/AAAAAAAAAY8/s4WjJ-MOmTo/s1600-h/006.bmp&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5379874517136935458&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 62px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://1.bp.blogspot.com/_6SVlsqWb7m8/SqknXpofiiI/AAAAAAAAAY8/s4WjJ-MOmTo/s320/006.bmp&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; เมื่อกดแล้ว โปรแกรมจะทำการ ประมวลผล ถ้ามีอะไรผิดในภาษาที่เราเขียนจะมีการแจ้งเตือน ข้างล่างตามรูป นะครับ&lt;br /&gt;&lt;a href=&quot;http://2.bp.blogspot.com/_6SVlsqWb7m8/SqknXJeygcI/AAAAAAAAAY0/XWlsjJsp4Mo/s1600-h/007.bmp&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5379874508506300866&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 258px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://2.bp.blogspot.com/_6SVlsqWb7m8/SqknXJeygcI/AAAAAAAAAY0/XWlsjJsp4Mo/s320/007.bmp&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; แต่ถ้าถูกต้องแล้วจะออกมาเป็น หน้าต่างคอนโซล&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5380664343765968066&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 186px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://3.bp.blogspot.com/_6SVlsqWb7m8/Sqv1tnHH5MI/AAAAAAAAAZs/lXuC3k9MPjc/s320/009.bmp&quot; border=&quot;0&quot; /&gt;&lt;/div&gt;ก็ถือว่าจบสำหรับโปรแกรมแรกแล้วนะครับ ซึ่งต่อไปจะมาเขียน รายละเอียดในการทำงาน โปรแกรม ที่ผมไดอ่านๆมาต่อไปนะครับ</content><link rel='replies' type='application/atom+xml' href='http://gkengcsharp.blogspot.com/feeds/1352593810720759389/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://gkengcsharp.blogspot.com/2009/09/hello-world.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990097047525167837/posts/default/1352593810720759389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990097047525167837/posts/default/1352593810720759389'/><link rel='alternate' type='text/html' href='http://gkengcsharp.blogspot.com/2009/09/hello-world.html' title='Hello world โปรแกรมแรกของเรา'/><author><name>G_keng</name><uri>http://www.blogger.com/profile/16298145824063870199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/-5YANhpC6AzQ/VOWOGi1fhwI/AAAAAAAACb0/hDYOa3gPstA/s1600/*'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_6SVlsqWb7m8/SqkoOECCZzI/AAAAAAAAAZk/MOL4RkGZ3co/s72-c/001.bmp" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990097047525167837.post-7034089915000236513</id><published>2009-09-07T22:13:00.000-07:00</published><updated>2009-09-08T00:39:01.515-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="IDE"/><title type='text'>ติดตั้ง Visual C# express edition</title><content type='html'>IDE โปรแกรมที่ใช้เขียน C# ที่แนะนำให้ใช้ตัวหนึ่งก็คือ Visual C# 2008 ซึ่งสามารถโหลดได้ฟรีที่ &lt;a href=&quot;http://www.microsoft.com/express/vcsharp/&quot;&gt;http://www.microsoft.com/express/vcsharp/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;เวลา ติดตั้ง Visual C# 2008  ต้องออนไลท์ตลอดนะครับ&lt;br /&gt;&lt;br /&gt;เมื่อเข้ามาแล้วให้กด Download&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;a href=&quot;http://4.bp.blogspot.com/_6SVlsqWb7m8/SqXpccpLibI/AAAAAAAAAXE/whgbVocjx2o/s1600-h/veec%23001.bmp&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5378962004898449842&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 215px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://4.bp.blogspot.com/_6SVlsqWb7m8/SqXpccpLibI/AAAAAAAAAXE/whgbVocjx2o/s320/veec%23001.bmp&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; เมื่อกดมาแล้ว ก็ เลือกว่าจะ Save หรือ จะ Run เลย แต่แนะนำให้ Save ไว้ก่อนแล้วกัน&lt;br /&gt;&lt;br /&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5378962010620699874&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 175px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://1.bp.blogspot.com/_6SVlsqWb7m8/SqXpcx9eJOI/AAAAAAAAAXM/XWw1MRGyUEY/s320/veec%23002.bmp&quot; border=&quot;0&quot; /&gt; เมื่อโหลดแล้ว save ได้ ตัว Setup มาแล้ว Doubel click เพื่อทำการ Run&lt;br /&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5378962017981947106&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 133px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://1.bp.blogspot.com/_6SVlsqWb7m8/SqXpdNYh3OI/AAAAAAAAAXU/G_4ncA6gEFo/s320/veec%23003.bmp&quot; border=&quot;0&quot; /&gt; &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;จากนั้นก็ คลิ้กๆ ไปเรือ่ยๆ (แต่เราควรอ่านหน่อยเพื่อมีเงื่อนไขอะไรในการใช้)&lt;br /&gt;&lt;/div&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5378962025353875186&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 289px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://2.bp.blogspot.com/_6SVlsqWb7m8/SqXpdo2IjvI/AAAAAAAAAXc/3SQRc1zCr4c/s320/veec%23004.bmp&quot; border=&quot;0&quot; /&gt; &lt;/div&gt;&lt;div&gt;รับเงื่อนไขในการใช้ Visual C# 2008&lt;br /&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5378962033609195026&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 293px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://2.bp.blogspot.com/_6SVlsqWb7m8/SqXpeHmWvhI/AAAAAAAAAXk/SaCOqLd3t24/s320/veec%23005.bmp&quot; border=&quot;0&quot; /&gt; เลือก โปรแกรมเสริมต่างๆ&lt;br /&gt;&lt;br /&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5378963066364281458&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 289px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://2.bp.blogspot.com/_6SVlsqWb7m8/SqXqaO6WwnI/AAAAAAAAAXs/ygC2gIEMn6o/s320/veec%23006.bmp&quot; border=&quot;0&quot; /&gt; เลือก path ที่ให้โปรแกรมไปอยู่ เมื่อเรียบร้อยแล้วก็กด Install&lt;br /&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5378963067448062562&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 289px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://4.bp.blogspot.com/_6SVlsqWb7m8/SqXqaS8v8mI/AAAAAAAAAX0/pih4LKlqLOc/s320/veec%23007.bmp&quot; border=&quot;0&quot; /&gt; &lt;div&gt;จากนั้นก็รอให้โหลดโปรแกรม สักพักใหญ่ๆ ขึ้นอยู่กับความเร็วของ อินเตอร์เน็ท&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5378963077866035490&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 290px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://4.bp.blogspot.com/_6SVlsqWb7m8/SqXqa5wlmSI/AAAAAAAAAX8/XmW3wfHfXEQ/s320/veec%23008.bmp&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;เมื่อเสร็จแล้ว ก็ กด Exit ได้เลย  แต่ตอนนี้ยังใช้ได้แค่ 30 วัน ต้องทำการลงทะเบียนอีกที&lt;br /&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5378980905129434178&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 291px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://3.bp.blogspot.com/_6SVlsqWb7m8/SqX6olfZXEI/AAAAAAAAAYE/bVVBdLUtAZE/s320/veec%23009.bmp&quot; border=&quot;0&quot; /&gt; จากนั้นเปิดโปรแกรม Visual C# 2008  แล้วไปที่ Help&gt;Register Product ต้องต่อ Internet นะครับ เพื่อเข้าที่เว็บลงทะเบี่ยน&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5378982577150832610&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 239px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://2.bp.blogspot.com/_6SVlsqWb7m8/SqX8J6QXL-I/AAAAAAAAAYM/Egg_IbNtu24/s320/veec%23010.bmp&quot; border=&quot;0&quot; /&gt;&lt;/p&gt;&lt;br /&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5378982583861420578&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 226px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://3.bp.blogspot.com/_6SVlsqWb7m8/SqX8KTQSoiI/AAAAAAAAAYU/dUX--BCPrr4/s320/veec%23011.bmp&quot; border=&quot;0&quot; /&gt; เมื่อเรามาที่เว็บลงทะเบียนของVisual C# 2008  แล้ว ให้ใช้ Live ID เข้าไปในระบบ ซึ่ง Live ID คือ e-mail ที่เราใช้เล่น msn นั้นละครับ พวก hotmail ,live นั้นละครับ&lt;br /&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5378982595809160898&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 171px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://1.bp.blogspot.com/_6SVlsqWb7m8/SqX8K_w2rsI/AAAAAAAAAYc/rYXSI3HPZao/s320/veec%23012.bmp&quot; border=&quot;0&quot; /&gt;ลงจากเข้าระบบแล้วก็จะมีอะไรให้เราลงข้อมูลต่าง จากนั้นจะมาหน้าที่ ให้ key 12 ตัว&lt;br /&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5378982600035714386&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 194px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://2.bp.blogspot.com/_6SVlsqWb7m8/SqX8LPgixVI/AAAAAAAAAYk/4MCDrC4pof0/s320/veec%23013.bmp&quot; border=&quot;0&quot; /&gt;ให้นำสิ่งนั้นมาใส่ใน Visual C# 2008  เพื่อลงทะเบียน แค่นั้นละครับ ก็หมดขั้นตอนการลง Visual C# 2008  แล้ว เตรียมการต่อเพื่อการเขียน ภาษา C# ได้เลยครับ</content><link rel='replies' type='application/atom+xml' href='http://gkengcsharp.blogspot.com/feeds/7034089915000236513/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://gkengcsharp.blogspot.com/2009/09/visual-c-express-edition.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990097047525167837/posts/default/7034089915000236513'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990097047525167837/posts/default/7034089915000236513'/><link rel='alternate' type='text/html' href='http://gkengcsharp.blogspot.com/2009/09/visual-c-express-edition.html' title='ติดตั้ง Visual C# express edition'/><author><name>G_keng</name><uri>http://www.blogger.com/profile/16298145824063870199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/-5YANhpC6AzQ/VOWOGi1fhwI/AAAAAAAACb0/hDYOa3gPstA/s1600/*'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_6SVlsqWb7m8/SqXpccpLibI/AAAAAAAAAXE/whgbVocjx2o/s72-c/veec%23001.bmp" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990097047525167837.post-1058103609055905744</id><published>2009-09-06T10:23:00.000-07:00</published><updated>2009-09-08T09:45:03.478-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="IDE"/><title type='text'>เริ่มต้นสุดๆ กับ C#</title><content type='html'>เมื่อเราอยากเขียนภาษาทางโปรแกรมมิ่ง ก่อนอื่นที่ต้องมีทุกภาษาคือ ตัว Compiler ซึ่งเป็น โปรแกรมประมวลผลชุดคำสั้งที่เราเขียนโดยภาษาโปรแกรมมิ่งให้ทำงานกับคอมพิวเตอร์ได้&lt;br /&gt;&lt;p&gt;ซึ่ง ตัว Compiler สำหรับ C# ที่ผมใช้ ก็เป็น เครื่องมือช่วยเขียนโปรแกรม C# ด้วย หรือเป็น case tool ซึ่งหมายถึง ซอฟแวร์ที่จะอำนวยความสะดวกในการพัฒนาซอฟแวร์(Computer-Aided Systems Engineering -CASE) ซึ่งเป็นตัว Compile รวมอยู่ด้วย แต่ CASE Tool มีหลายประเภท อาจใช้ได้มากกว่าการเขียนโปรแกรม อาจใช้ทำ เรื่อง SA UML ทำพวก แปลงโมเดลเป็น Code พวก MDA เป็นต้น ได้ด้วยเหมือนกัน&lt;br /&gt;&lt;br /&gt;อีกคำหนึ่งที่ใช้กันสำหรับโปรแกรมเขียนโปรแกรมโดยเฉพาะ คือ IDE ย่อมาจาก integrated development environment โดยใน wiki บอกไว้ว่า IDE นี้มีโปรแกรมทำงานอยู่ 4 อย่าง&lt;br /&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;a source code editor ไว้สำหรับเขียน code หรือ แก้ไข &lt;/li&gt;&lt;li&gt;a compiler and/or an interpreter ประมวลผลสิ่งที่เขียน &lt;/li&gt;&lt;li&gt;build automation tools เครื่องมือสร้างที่สะดวก พวกลากวาง &lt;/li&gt;&lt;li&gt;a debugger สำหรับตรวจหาสิ่งที่ผิดพลาดใน code &lt;/li&gt;&lt;/ol&gt;&lt;p&gt;ที่นิยมใช้ฟรี ก็มาจากค่าย Mircosoft คือ Visual C# Express edition&lt;br /&gt;&lt;a href=&quot;http://www.microsoft.com/express/vcsharp/&quot;&gt;http://www.microsoft.com/express/vcsharp/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;ก่อนเรียนก็โหลดมาใช้ดูนะครับ&lt;br /&gt;&lt;br /&gt;ส่วนอีกตัวคือ Visual studio ตัวนี้เป็นตัวใหญ่ ซึ่งไม่ฟรี ซึ่งเลือกภาษาโปรแกรมมิ่งได้หลายแบบไม่ว่า เป้น C C++ C# J# และอื่นๆ อีกมากมาย&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://www.weblims.com/Portals/4/visual%20studio.png&quot;&gt;&lt;img style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 191px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;http://www.weblims.com/Portals/4/visual%20studio.png&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;เมื่ออ่านบทความนี้เสร็จแล้ว สิ่งทีอยากให้ทำ คือ&lt;/p&gt;&lt;ol&gt;&lt;li&gt;โหลด หา โปรแกรม IDE C# มา&lt;/li&gt;&lt;li&gt;ลง Install โปรแกรม&lt;/li&gt;&lt;li&gt;เปิดโปรแกรมนั้นซะ แล้วทำความรู้จักกับ มัน คร่าวๆ&lt;/li&gt;&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://gkengcsharp.blogspot.com/feeds/1058103609055905744/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://gkengcsharp.blogspot.com/2009/09/c.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990097047525167837/posts/default/1058103609055905744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990097047525167837/posts/default/1058103609055905744'/><link rel='alternate' type='text/html' href='http://gkengcsharp.blogspot.com/2009/09/c.html' title='เริ่มต้นสุดๆ กับ C#'/><author><name>G_keng</name><uri>http://www.blogger.com/profile/16298145824063870199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/-5YANhpC6AzQ/VOWOGi1fhwI/AAAAAAAACb0/hDYOa3gPstA/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990097047525167837.post-7606950033678545541</id><published>2009-09-06T10:03:00.000-07:00</published><updated>2009-09-06T10:15:13.930-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="จุดประสงค์และเจตจำนง"/><title type='text'>บทความเริมต้น</title><content type='html'>เมื่อผมเริ่มเขียน Blog นี้ สิ่งที่คิด น่าจะเป็น Blog ที่น่าจะท้าทายผม มากทีสุด มากกว่า Blog ภาษาอังกฤษอีก เพราะ เป็นสิ่งที่ผมว่าต้องเรียนรู้เิอง ด้วยตัวเอง จากตำราและเว็บบนโลกอินเตอร์เน็ท&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;ผมคงไม่ตั้งเป้าไว้ว่าต้องเป็น Progammer มืออาชีพ เขียน code หากิน&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;แต่หวังแค่เขียน โปรแกรมทำงานเพื่อตัวผมเองได้เท่านั้นละครับ&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;วิทยากรเทคโนโลยีสารสนเทศปัจจุบันไปอย่างเร็วมาก เมื่อเทียบกับ เทคโนโลยีแขนงอื่นๆ ซึ่งเป็นส่วนหนึ่งจากการเขียนโปรแกรมเช่นกัน&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;โดย Blog นี้ ใครจบวิทย์คอม หรือ เซียนโปรแกรม ไม่ต้องเข้ามาอ่านก็ได้ครับ ผมอายที่จะแสดงความไม่รู้ให้ท่านๆเห็น&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;คิดว่าแนวทางคง จะเป้นการเล่า เรื่องต่างๆ วิธีการ ที่ผมอ่านมาจากหนังสือ แล้วมาเขียนลงใน Blog นี้แล้วกัน&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;สุดท้ายผมก็เริ่มเขียน เลยแล้วกัน จากวันนี้เป็นต้นไป&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gkengcsharp.blogspot.com/feeds/7606950033678545541/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://gkengcsharp.blogspot.com/2009/09/blog-post.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990097047525167837/posts/default/7606950033678545541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990097047525167837/posts/default/7606950033678545541'/><link rel='alternate' type='text/html' href='http://gkengcsharp.blogspot.com/2009/09/blog-post.html' title='บทความเริมต้น'/><author><name>G_keng</name><uri>http://www.blogger.com/profile/16298145824063870199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/-5YANhpC6AzQ/VOWOGi1fhwI/AAAAAAAACb0/hDYOa3gPstA/s1600/*'/></author><thr:total>0</thr:total></entry></feed>