<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>C Board - C# Programming</title>
		<link>http://cboard.cprogramming.com</link>
		<description>Questions specific to C# Programming</description>
		<language>en</language>
		<lastBuildDate>Sat, 21 Nov 2009 01:04:37 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://cboard.cprogramming.com/images/misc/rss.jpg</url>
			<title>C Board - C# Programming</title>
			<link>http://cboard.cprogramming.com</link>
		</image>
		<item>
			<title>C# Live Video Editing/Rendering</title>
			<link>http://cboard.cprogramming.com/csharp-programming/121796-csharp-live-video-editing-rendering.html</link>
			<pubDate>Fri, 20 Nov 2009 13:39:00 GMT</pubDate>
			<description>hi to all, 
I have design a Application that takes input  
 
from the Web cam or other video devices. and  
 
have to add some frames in the Live video and  
 
then display.  
i have study out the direct sdk , which</description>
			<content:encoded><![CDATA[<div>hi to all,<br />
I have design a Application that takes input <br />
<br />
from the Web cam or other video devices. and <br />
<br />
have to add some frames in the Live video and <br />
<br />
then display. <br />
i have study out the direct sdk , which <br />
<br />
provide the flexible enviornment. but i dont <br />
<br />
get the proper flow.It is totaly based on the <br />
<br />
VC++ component.<br />
Please Help.<br />
Thanks.</div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/csharp-programming/">C# Programming</category>
			<dc:creator>pkuchaliya</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/csharp-programming/121796-csharp-live-video-editing-rendering.html</guid>
		</item>
		<item>
			<title>How does .ASPX generate HTML?</title>
			<link>http://cboard.cprogramming.com/csharp-programming/121784-how-does-aspx-generate-html.html</link>
			<pubDate>Fri, 20 Nov 2009 00:16:15 GMT</pubDate>
			<description>I know it may require a hefty explanation, but I was wondering if anyone knew how a .aspx file generates html when you load it into a browser? 
 
I mean...the first internet explorer came out way before .aspx pages, so how does .aspx work with browsers that came out before its existence? 
 
What I...</description>
			<content:encoded><![CDATA[<div>I know it may require a hefty explanation, but I was wondering if anyone knew how a .aspx file generates html when you load it into a browser?<br />
<br />
I mean...the first internet explorer came out way before .aspx pages, so how does .aspx work with browsers that came out before its existence?<br />
<br />
What I would<i><u> really</u></i> like to know is...if I created a .asdf format, how would I get it to actually load as an html page in browsers, rather than have it display the contents of the file in the browser?</div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/csharp-programming/">C# Programming</category>
			<dc:creator>arcaine01</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/csharp-programming/121784-how-does-aspx-generate-html.html</guid>
		</item>
		<item>
			<title>Fd_set</title>
			<link>http://cboard.cprogramming.com/csharp-programming/121746-fd_set.html</link>
			<pubDate>Wed, 18 Nov 2009 21:36:54 GMT</pubDate>
			<description>I need FD_SET from C++ in C# can somebody help me?</description>
			<content:encoded><![CDATA[<div>I need FD_SET from C++ in C# can somebody help me?</div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/csharp-programming/">C# Programming</category>
			<dc:creator>deathkosui</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/csharp-programming/121746-fd_set.html</guid>
		</item>
		<item>
			<title>Im lost</title>
			<link>http://cboard.cprogramming.com/csharp-programming/121703-im-lost.html</link>
			<pubDate>Tue, 17 Nov 2009 14:43:19 GMT</pubDate>
			<description><![CDATA[hi..! can u tell me whts the difference ..C , C ++ , C#..& which 1 is best to learn it 1s .. I ty 4 ur opinion]]></description>
			<content:encoded><![CDATA[<div>hi..! can u tell me whts the difference ..C , C ++ , C#..&amp; which 1 is best to learn it 1s .. I ty 4 ur opinion</div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/csharp-programming/">C# Programming</category>
			<dc:creator>Carzon</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/csharp-programming/121703-im-lost.html</guid>
		</item>
		<item>
			<title>Forms - Button Click</title>
			<link>http://cboard.cprogramming.com/csharp-programming/121696-forms-button-click.html</link>
			<pubDate>Tue, 17 Nov 2009 06:18:35 GMT</pubDate>
			<description><![CDATA[I have an array of buttons and a method suits for all buttons. But, how can I know which button in the array was clicked? ([0,0] \ [0,1] ...) 
Can I pass information to the method? 
 
Thanks.]]></description>
			<content:encoded><![CDATA[<div>I have an array of buttons and a method suits for all buttons. But, how can I know which button in the array was clicked? ([0,0] \ [0,1] ...)<br />
Can I pass information to the method?<br />
<br />
Thanks.</div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/csharp-programming/">C# Programming</category>
			<dc:creator>gavra</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/csharp-programming/121696-forms-button-click.html</guid>
		</item>
		<item>
			<title>USB arrival detector</title>
			<link>http://cboard.cprogramming.com/csharp-programming/121615-usb-arrival-detector.html</link>
			<pubDate>Sat, 14 Nov 2009 21:10:14 GMT</pubDate>
			<description><![CDATA[I'm testing a code that i found on Internet which detects cd-rom arrival. Now i want to change it in order to detect removable disk arrival. 
 
This is the condition but it doesn't work 
 
Code: 
--------- 
q.Condition = @"TargetInstance ISA 'Win32_LogicalDisk' and TargetInstance.DriveType = 2"...]]></description>
			<content:encoded><![CDATA[<div>I'm testing a code that i found on Internet which detects cd-rom arrival. Now i want to change it in order to detect removable disk arrival.<br />
<br />
This is the condition but it doesn't work<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">q.Condition = @&quot;TargetInstance ISA 'Win32_LogicalDisk' and TargetInstance.DriveType = 2&quot;</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/csharp-programming/">C# Programming</category>
			<dc:creator>ch4</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/csharp-programming/121615-usb-arrival-detector.html</guid>
		</item>
		<item>
			<title>C/C++ objects</title>
			<link>http://cboard.cprogramming.com/csharp-programming/121577-c-cplusplus-objects.html</link>
			<pubDate>Fri, 13 Nov 2009 15:09:55 GMT</pubDate>
			<description>I have three objects in C and c++  A,B,C . 
will it be correct or not? explain with proper reason:- 
 
C=A+B; //in c 
C=A+B; // in c++ 
 
In c++ without operator overloading,give me answer.</description>
			<content:encoded><![CDATA[<div>I have three objects in C and c++  A,B,C .<br />
will it be correct or not? explain with proper reason:-<br />
<br />
C=A+B; //in c<br />
C=A+B; // in c++<br />
<br />
In c++ without operator overloading,give me answer.</div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/csharp-programming/">C# Programming</category>
			<dc:creator>uzma_83</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/csharp-programming/121577-c-cplusplus-objects.html</guid>
		</item>
		<item>
			<title><![CDATA[What's the best way to parse XML Schema with C# Language.]]></title>
			<link>http://cboard.cprogramming.com/csharp-programming/121555-whats-best-way-parse-xml-schema-csharp-language.html</link>
			<pubDate>Fri, 13 Nov 2009 02:09:17 GMT</pubDate>
			<description><![CDATA[Hello all, 
 
Good day. 
 
I plan to parse XML schema using C#.  
But my XSD file is very complex.  
 
What's the best way to parse the XSD file and generate a C# class file. 
 
What can i do is using the classes of System.Xml.Schme ?]]></description>
			<content:encoded><![CDATA[<div>Hello all,<br />
<br />
Good day.<br />
<br />
I plan to parse XML schema using C#. <br />
But my XSD file is very complex. <br />
<br />
What's the best way to parse the XSD file and generate a C# class file.<br />
<br />
What can i do is using the classes of System.Xml.Schme ?<br />
<br />
Thanks in advance.<br />
<br />
BR!<br />
Pingz</div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/csharp-programming/">C# Programming</category>
			<dc:creator>userpingz</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/csharp-programming/121555-whats-best-way-parse-xml-schema-csharp-language.html</guid>
		</item>
		<item>
			<title>some basic string manipulation stuff</title>
			<link>http://cboard.cprogramming.com/csharp-programming/121494-some-basic-string-manipulation-stuff.html</link>
			<pubDate>Wed, 11 Nov 2009 16:14:35 GMT</pubDate>
			<description><![CDATA[I am writing some code in C#, in which part of what I am doing requires that I go through a string and find the first character that is not a numeral. 
 
In C++ I could do this quite simply with the string class's find_first_not_of function.  In C#, I don't see any equivalent...]]></description>
			<content:encoded><![CDATA[<div>I am writing some code in C#, in which part of what I am doing requires that I go through a string and find the first character that is not a numeral.<br />
<br />
In C++ I could do this quite simply with the string class's <i>find_first_not_of</i> function.  In C#, <a href="http://msdn.microsoft.com/en-us/library/system.string_members.aspx" target="_blank">I don't see any equivalent</a>.  There is <i>IndexOf</i>, <i>IndexOfAny</i>, <i>LastIndexOf</i>, and <i>LastIndexOfAny</i>, but those obviously aren't what I am looking for.<br />
<br />
So right now I am resorting to this:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">string numericValue = string.Empty;<br />
for (int i = 0; i &lt; userInput.Length &amp;&amp; !Char.IsLetter(userInput[i]); i++)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; numericValue += userInput[i].ToString();<br />
}</code><hr />
</div>You might ask: &quot;You are obviously extracting a numeric value (based on your variable naming mechanism), why not just use the LastIndexOfAny method, and pass it a character array of all numeric characters?&quot;  My answer: &quot;The user could input numeric characters somewhere later in the string.  Hence it wouldn't work.&quot;</div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/csharp-programming/">C# Programming</category>
			<dc:creator>DavidP</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/csharp-programming/121494-some-basic-string-manipulation-stuff.html</guid>
		</item>
		<item>
			<title>How to use something equivlent to Windows Form Application on a Mac OS Leopard</title>
			<link>http://cboard.cprogramming.com/csharp-programming/121468-how-use-something-equivlent-windows-form-application-mac-os-leopard.html</link>
			<pubDate>Tue, 10 Nov 2009 21:15:24 GMT</pubDate>
			<description><![CDATA[Hello. 
 
My friend has a Mac, and we're interested in learning C#, still it isn't easy when he can't follow because he doesn't have Windows. He's using something called The Mono Project, and he can choose something called a GNOME application, isn't it some GUI thing? 
Thanks in advance.]]></description>
			<content:encoded><![CDATA[<div>Hello.<br />
<br />
My friend has a Mac, and we're interested in learning C#, still it isn't easy when he can't follow because he doesn't have Windows. He's using something called The Mono Project, and he can choose something called a GNOME application, isn't it some GUI thing?<br />
Thanks in advance.</div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/csharp-programming/">C# Programming</category>
			<dc:creator>Akkernight</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/csharp-programming/121468-how-use-something-equivlent-windows-form-application-mac-os-leopard.html</guid>
		</item>
		<item>
			<title>best Overloaded match for method ...</title>
			<link>http://cboard.cprogramming.com/csharp-programming/121337-best-overloaded-match-method.html</link>
			<pubDate>Fri, 06 Nov 2009 02:47:40 GMT</pubDate>
			<description><![CDATA[When I compile it tells me best overloaded match for method AESEncryption.shiftrow(byte[], byte);  
 
I am still new to C sharp so can somebody tell me? 
 
 
Code: 
--------- 
    public static void shiftRow(byte[] state, byte nbr) 
    { 
        int i;]]></description>
			<content:encoded><![CDATA[<div>When I compile it tells me best overloaded match for method AESEncryption.shiftrow(byte[], byte); <br />
<br />
I am still new to C sharp so can somebody tell me?<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&nbsp; &nbsp; public static void shiftRow(byte[] state, byte nbr)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; int i;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int j;<br />
&nbsp; &nbsp; &nbsp; &nbsp; byte tmp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; // each iteration shifts the row to the left by 1 <br />
&nbsp; &nbsp; &nbsp; &nbsp; for (i = 0; i &lt; nbr; i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tmp = state[0];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (j = 0; j &lt; 3; j++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; state[j] = state[j + 1];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; state[3] = tmp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }</code><hr />
</div>Code 2<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> public static void shiftRows(ref byte state)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; int i;<br />
&nbsp; &nbsp; &nbsp; &nbsp; // iterate over the 4 rows and call shiftRow() with that row <br />
&nbsp; &nbsp; &nbsp; &nbsp; for (i = 0; i &lt; 4; i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; shiftRow(Convert.ToInt16(state + i * 4), i);<br />
&nbsp; &nbsp; }</code><hr />
</div>I need help with code 2</div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/csharp-programming/">C# Programming</category>
			<dc:creator>deathkosui</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/csharp-programming/121337-best-overloaded-match-method.html</guid>
		</item>
		<item>
			<title>how to do the card count and how to make the computer add the cards number?</title>
			<link>http://cboard.cprogramming.com/csharp-programming/121294-how-do-card-count-how-make-computer-add-cards-number.html</link>
			<pubDate>Wed, 04 Nov 2009 22:34:25 GMT</pubDate>
			<description><![CDATA[The player have to type D 4 times to choose 4 card (card number1-13).. I don't know how to make the computer count the card and make the computer add the card number to the total pts.. please help...]]></description>
			<content:encoded><![CDATA[<div>The player have to type D 4 times to choose 4 card (card number1-13).. I don't know how to make the computer count the card and make the computer add the card number to the total pts.. please help...</div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/csharp-programming/">C# Programming</category>
			<dc:creator>cutechocolateka</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/csharp-programming/121294-how-do-card-count-how-make-computer-add-cards-number.html</guid>
		</item>
		<item>
			<title>_rotl</title>
			<link>http://cboard.cprogramming.com/csharp-programming/121291-_rotl.html</link>
			<pubDate>Wed, 04 Nov 2009 18:52:24 GMT</pubDate>
			<description>in C++ theres _rotl and _rotr is there an equivalent method for those in c#?</description>
			<content:encoded><![CDATA[<div>in C++ theres _rotl and _rotr is there an equivalent method for those in c#?</div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/csharp-programming/">C# Programming</category>
			<dc:creator>deathkosui</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/csharp-programming/121291-_rotl.html</guid>
		</item>
		<item>
			<title>C# McDonalds Program Help!</title>
			<link>http://cboard.cprogramming.com/csharp-programming/121257-csharp-mcdonalds-program-help.html</link>
			<pubDate>Tue, 03 Nov 2009 21:17:31 GMT</pubDate>
			<description><![CDATA[I can't figure out how to assign the value of the item to a variable and store it to be used later, So i can add it to the other items to give the total of the order. 
 
Please Help! 
 
Code: 
--------- 
using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Text;]]></description>
			<content:encoded><![CDATA[<div>I can't figure out how to assign the value of the item to a variable and store it to be used later, So i can add it to the other items to give the total of the order.<br />
<br />
Please Help!<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">using System;<br />
using System.Collections.Generic;<br />
using System.Linq;<br />
using System.Text;<br />
<br />
namespace ex6_2<br />
{<br />
&nbsp; &nbsp; class Program<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; static void Main(string[] args)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string userin;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; char sandwichch;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; char friesch;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; char drinkch;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int sandwich = 0, fries = 0, drink = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; double total = 0.0;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;(a) Big Mac - $3.99&nbsp; &nbsp; &nbsp; &nbsp;  (b) McChicken - $3.99&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;(c) Filet-O-Fish - $3.00&nbsp; &nbsp; (d) No Sandwich&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Please select sandwich: &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; userin = Console.ReadLine();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sandwichch = userin[0];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; switch (sandwichch)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 'a': //bigmac<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sandwich = 3.49;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sandwich = Convert.ToInt32(Console.ReadLine());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 'b': //mcchicken<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sandwich = 3.49;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sandwich = Convert.ToInt32(Console.ReadLine());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 'c': //filetofish<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sandwich = 3.00;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sandwich = Convert.ToInt32(Console.ReadLine());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 'd': //nosandwich<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sandwich = 0.00;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sandwich = Convert.ToInt32(Console.ReadLine());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; total = 0.0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Invalid Input&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;(a) Large - $2.25 (b) Medium - $1.75 (c) Small - $1.75 (d) No Fries&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Please select fries size: &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; userin = Console.ReadLine();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fries = userin[0];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; switch (friesch)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 'a': //large<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fries = 2.25;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fries = Convert.ToInt32(Console.ReadLine());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 'b': //medium<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fries = 1.75;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fries = Convert.ToInt32(Console.ReadLine());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 'c': //small<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fries = 1.25;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fries = Convert.ToInt32(Console.ReadLine());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 'd': //no<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fries = 0.00;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fries = Convert.ToInt32(Console.ReadLine());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; total = 0.0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Invalid Input&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;(a) Large - $1.75 (b) Medium - $1.60 (c) Small - $1.30 (d) No Drink&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Please select drink size: &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; userin = Console.ReadLine();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drink = userin[0];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; switch (drinkch)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 'a': //large<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drink = 1.75;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drink = Convert.ToInt32(Console.ReadLine());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 'b': //medium<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drink = 1.60;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drink = Convert.ToInt32(Console.ReadLine());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 'c': //small<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drink = 1.30;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drink = Convert.ToInt32(Console.ReadLine());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 'd': //no<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drink = 0.00;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drink = Convert.ToInt32(Console.ReadLine());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; total = 0.0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Invalid Input&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (sandwich &gt;= 3.00 &amp;&amp; fries &gt;= 1.25 &amp;&amp; drink &gt;=1.30)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; total = sandwich + fries + drink - 0.75;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Your total is: {0:0.0}&quot;, total);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
}</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/csharp-programming/">C# Programming</category>
			<dc:creator>initialfresh</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/csharp-programming/121257-csharp-mcdonalds-program-help.html</guid>
		</item>
		<item>
			<title>jagged arrays with multidimensional array</title>
			<link>http://cboard.cprogramming.com/csharp-programming/121238-jagged-arrays-multidimensional-array.html</link>
			<pubDate>Tue, 03 Nov 2009 02:27:11 GMT</pubDate>
			<description><![CDATA[Jagged arrays, namely arrays of arrays is basically similar to a regular dimensional array, which is not hard to understand. But here within a jagged array, there is another array, which is kind of a bit vague to me. 
 
here is a jagged array with a two dimensional array: 
 
 
int [][,] jagged =...]]></description>
			<content:encoded><![CDATA[<div>Jagged arrays, namely arrays of arrays is basically similar to a regular dimensional array, which is not hard to understand. But here within a jagged array, there is another array, which is kind of a bit vague to me.<br />
<br />
here is a jagged array with a two dimensional array:<br />
<br />
<br />
int [][,] jagged = new int [3][,];<br />
<br />
// so there are three rows<br />
<br />
|---------| // row 0;<br />
|---------|<br />
<br />
|---------| // row 1;<br />
|---------|<br />
<br />
|---------| // row 2;<br />
|---------|<br />
<br />
// When we assign jagged [0] a reference to a 4 x 2 array.<br />
<br />
jagged [0] = int new [4,2];<br />
<br />
// Does it mean that we assign four columns to the row 0?<br />
<br />
|---------| |---------| |---------| |---------|<br />
|---------| |---------| |---------| |---------|<br />
<br />
// and within each row, there are two more rows?<br />
<br />
|--0----1---| |--0----1---| |--0----1---| |--0----1---|<br />
|------0----| |-------1----| |-----2-----| |------3-----|<br />
<br />
// So when we assign value to jagged [0][1,0] = 10;<br />
// Does it mean that we access to the second column, which is 1 of the row 0 and<br />
// assign the value 10 to the second row of 1, which is above the column named 1<br />
// 0 and 1, and we assign the 10 to 1, not 0?</div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/csharp-programming/">C# Programming</category>
			<dc:creator>kenryuakuma</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/csharp-programming/121238-jagged-arrays-multidimensional-array.html</guid>
		</item>
	</channel>
</rss>
