统一归档20260319
This commit is contained in:
11
CS/lab10/10_5/10_5.csproj
Normal file
11
CS/lab10/10_5/10_5.csproj
Normal file
@@ -0,0 +1,11 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<RootNamespace>_10_5</RootNamespace>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
25
CS/lab10/10_5/10_5.sln
Normal file
25
CS/lab10/10_5/10_5.sln
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.14.36717.8 d17.14
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "10_5", "10_5.csproj", "{9EA0C0C6-F83B-4049-A40D-51AE7D10CE24}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{9EA0C0C6-F83B-4049-A40D-51AE7D10CE24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{9EA0C0C6-F83B-4049-A40D-51AE7D10CE24}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{9EA0C0C6-F83B-4049-A40D-51AE7D10CE24}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{9EA0C0C6-F83B-4049-A40D-51AE7D10CE24}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {53828A45-60B9-499C-8249-C789F9952D9F}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
32
CS/lab10/10_5/Program.cs
Normal file
32
CS/lab10/10_5/Program.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System.Text;
|
||||
|
||||
namespace _10_5
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
bool bContinue = true;
|
||||
while (bContinue)
|
||||
{
|
||||
Console.Write("请输入英文单词:");
|
||||
string s =Console.ReadLine();
|
||||
if (s != "")
|
||||
{
|
||||
sb.Append(s);
|
||||
sb.Append(" ");
|
||||
}
|
||||
else
|
||||
{
|
||||
bContinue = false;
|
||||
}
|
||||
}
|
||||
string str = sb.ToString();
|
||||
Console.WriteLine("共{0}字符,内容为{1}",sb.Length,str);
|
||||
string[] source = str.ToLower().Split(new char[] { '.', '?', '!', ':', ':', ',' }, StringSplitOptions.RemoveEmptyEntries);
|
||||
Array.Sort(source);
|
||||
foreach (string s in source) Console.WriteLine(s);
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
CS/lab10/10_5/屏幕截图 2025-11-28 170133.png
Normal file
BIN
CS/lab10/10_5/屏幕截图 2025-11-28 170133.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 70 KiB |
Reference in New Issue
Block a user