91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 10.1MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-10-07
  • 語言: C#
  • 標簽: C#??

資源簡介

C#程序設計及應用教程(第三版-馬俊主編)的課后實驗部分的參考代碼,僅供學習參考使用。

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;

namespace?ArrayTest
{
????class?Program
????{
????????static?void?Main(string[]?args)
????????{
????????????while?(true)
????????????{
????????????begin:
????????????????Console.Write(“請輸入5個整數(逗號分隔):“);
????????????????string?s?=?Console.ReadLine();
????????????????string[]?sArray?=?s.Split(‘‘);
????????????????if?(sArray.Length?!=?5)
????????????????{
????????????????????Console.WriteLine(“錯誤:輸入的不是5個數,請再次輸入。“);
????????????????????continue;
????????????????}
????????????????int[]?nArray?=?new?int[5];
????????????????for?(int?i?=?0;?i?????????????????{
????????????????????if?(int.TryParse(sArray[i]?out?nArray[i])?==?false)
????????????????????{
????????????????????????Console.WriteLine(“錯誤:無法將\“{0}\“轉換為整數,請再次輸入。“?sArray[i]);
????????????????????????goto?begin;
????????????????????}
????????????????}
????????????????Array.Sort(nArray);
????????????????Console.WriteLine(“正序:{0}“?string.Join(““?nArray));
????????????????Array.Reverse(nArray);
????????????????Console.WriteLine(“逆序:{0}“?string.Join(““?nArray));
????????????????Console.WriteLine(“平均值:{0:f1}“?nArray.Average());
????????????????Console.WriteLine(“最大值:{0:f1}“?nArray.Max());
????????????????Console.Write(“按回車鍵退出,其他鍵繼續“);
????????????????var?key=Console.ReadKey();
????????????????if?(key.Key?==?ConsoleKey.Enter)
????????????????{
????????????????????break;
????????????????}
????????????????Console.Clear();
????????????}
????????}
????}
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件?????????30??2013-06-15?07:07??05-第3版CSharp程序設計及應用教程上機練習源程序\A1\說明.txt

?????文件???????2402??2013-06-22?05:39??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\A2.sln

????..A..H.?????83456??2013-06-22?05:39??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\A2.v11.suo

?????文件????????187??2013-06-20?04:24??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\ArrayTest\App.config

?????文件???????2559??2013-06-20?04:48??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\ArrayTest\ArrayTest.csproj

?????文件???????5632??2013-06-20?04:59??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\ArrayTest\bin\Debug\ArrayTest.exe

?????文件????????187??2013-06-20?04:24??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\ArrayTest\bin\Debug\ArrayTest.exe.config

?????文件??????13824??2013-06-20?04:59??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\ArrayTest\bin\Debug\ArrayTest.pdb

?????文件??????22984??2013-06-22?05:39??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\ArrayTest\bin\Debug\ArrayTest.vshost.exe

?????文件????????187??2013-06-20?04:24??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\ArrayTest\bin\Debug\ArrayTest.vshost.exe.config

?????文件????????490??2012-06-06?02:06??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\ArrayTest\bin\Debug\ArrayTest.vshost.exe.manifest

?????文件????????460??2013-06-22?05:39??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\ArrayTest\obj\Debug\ArrayTest.csproj.FileListAbsolute.txt

?????文件???????1753??2013-06-20?04:48??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\ArrayTest\obj\Debug\ArrayTest.csprojResolveAssemblyReference.cache

?????文件???????5632??2013-06-20?04:59??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\ArrayTest\obj\Debug\ArrayTest.exe

?????文件??????13824??2013-06-20?04:59??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\ArrayTest\obj\Debug\ArrayTest.pdb

?????文件???????6574??2013-06-22?03:04??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\ArrayTest\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

?????文件??????????0??2013-06-20?04:24??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\ArrayTest\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

?????文件??????????0??2013-06-20?04:24??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\ArrayTest\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

?????文件??????????0??2013-06-20?04:24??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\ArrayTest\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

?????文件???????1767??2013-06-20?04:59??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\ArrayTest\Program.cs

?????文件???????1338??2013-06-20?04:24??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\ArrayTest\Properties\AssemblyInfo.cs

?????文件????????187??2013-06-15?08:21??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\IntDevideTest\App.config

?????文件???????6144??2013-06-16?06:44??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\IntDevideTest\bin\Debug\IntDevideTest.exe

?????文件????????187??2013-06-15?08:21??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\IntDevideTest\bin\Debug\IntDevideTest.exe.config

?????文件??????15872??2013-06-16?06:44??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\IntDevideTest\bin\Debug\IntDevideTest.pdb

?????文件??????22984??2013-06-20?03:35??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\IntDevideTest\bin\Debug\IntDevideTest.vshost.exe

?????文件????????187??2013-06-15?08:21??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\IntDevideTest\bin\Debug\IntDevideTest.vshost.exe.config

?????文件????????490??2012-06-06?02:06??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\IntDevideTest\bin\Debug\IntDevideTest.vshost.exe.manifest

?????文件???????2567??2013-06-15?08:35??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\IntDevideTest\IntDevideTest.csproj

?????文件???????6586??2013-06-16?06:22??05-第3版CSharp程序設計及應用教程上機練習源程序\A2\IntDevideTest\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

............此處省略985個文件信息

評論

共有 條評論