1
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<RootNamespace>C_Sharp_1_6</RootNamespace>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.14.36616.10 d17.14
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "C Sharp 1_6", "C Sharp 1_6.csproj", "{AF3388D7-450E-45A7-937A-E0E25B121BBF}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{AF3388D7-450E-45A7-937A-E0E25B121BBF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{AF3388D7-450E-45A7-937A-E0E25B121BBF}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{AF3388D7-450E-45A7-937A-E0E25B121BBF}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{AF3388D7-450E-45A7-937A-E0E25B121BBF}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {AAF2189D-E99F-407F-BB12-C4BE6849EE5E}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,42 @@
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace C_Sharp_1_6
|
||||
{
|
||||
public class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
int i;
|
||||
Console.WriteLine("请输入一个代表星期的数字");
|
||||
i = int.Parse(Console.ReadLine());
|
||||
switch (i)
|
||||
{
|
||||
case 1:
|
||||
Console.WriteLine("星期一");
|
||||
break;
|
||||
case 2:
|
||||
Console.WriteLine("星期二");
|
||||
break;
|
||||
case 3:
|
||||
Console.WriteLine("星期三");
|
||||
break;
|
||||
case 4:
|
||||
Console.WriteLine("星期四");
|
||||
break;
|
||||
case 5:
|
||||
Console.WriteLine("星期五");
|
||||
break;
|
||||
case 6:
|
||||
Console.WriteLine("星期六");
|
||||
break;
|
||||
case 7:
|
||||
Console.WriteLine("星期日");
|
||||
break;
|
||||
default:
|
||||
Console.WriteLine("输入错误");
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user