悬赏园豆:5
[已解决问题]
解决于 2009-11-13 11:16
<pre class="libCScode"><span style="font-size: small;"><span style="color: green; font-family: Verdana;" lang="EN-US"><span style="font-size: x-small;">// Calculate what day of the week is 36 days from this instant.</span></span></span></pre>
<pre class="libCScode"><span style="font-size: small;"><span style="font-size: x-small;"><span style="color: black; font-family: Verdana;" lang="EN-US"></span></span></span></pre>
<pre class="libCScode"><pre><span style="color: black; font-family: Verdana;" lang="EN-US"><span style="font-size: small;"><span style="font-size: x-small;">System.DateTime today = System.DateTime.Now;</span></span></span></pre>
<pre><span style="color: black; font-family: Verdana;" lang="EN-US"><span style="font-size: small;"><span style="font-size: x-small;">System.DateTime answer = today.AddDays(36);</span></span></span></pre>
<pre><span style="font-size: small;"><span style="font-size: x-small;"><span style="color: black; font-family: Verdana;" lang="EN-US">System.Console.WriteLine(</span><span style="color: maroon; font-family: Verdana;" lang="EN-US">"{0:dddd}"</span><span style="color: black; font-family: Verdana;" lang="EN-US">, answer);</span></span></span></pre>
<pre><span style="font-size: small;"><span style="font-size: x-small;"></span></span></pre>
<pre><span style="font-size: small;"><span style="font-size: x-small;"><span style="color: black; font-family: Verdana;" lang="EN-US">实在看不明白。</span></span></span></pre>
</pre>