Archived
1
0

统一归档20260319

This commit is contained in:
2026-03-19 19:39:01 +08:00
Unverified
parent 4e148364a9
commit 3ea0af246b
187 changed files with 5041 additions and 75005 deletions

11
CS/lab11/11_1/11_1.csproj Normal file
View File

@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>_11_1</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

25
CS/lab11/11_1/11_1.sln Normal file
View 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}") = "11_1", "11_1.csproj", "{58CF9AA8-CE56-4C37-8A1D-760D77F94470}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{58CF9AA8-CE56-4C37-8A1D-760D77F94470}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{58CF9AA8-CE56-4C37-8A1D-760D77F94470}.Debug|Any CPU.Build.0 = Debug|Any CPU
{58CF9AA8-CE56-4C37-8A1D-760D77F94470}.Release|Any CPU.ActiveCfg = Release|Any CPU
{58CF9AA8-CE56-4C37-8A1D-760D77F94470}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {3AAF3249-007B-458C-8EE7-3E081A944087}
EndGlobalSection
EndGlobal

23
CS/lab11/11_1/Program.cs Normal file
View File

@@ -0,0 +1,23 @@
namespace _11_1
{
internal class Program
{
static void Main(string[] args)
{
DriveInfo[] allDrives = DriveInfo.GetDrives();
foreach (DriveInfo driveInfo in allDrives)
{
Console.WriteLine("驱动器{0}\t",driveInfo.Name);
Console.WriteLine("类型{0}\t",driveInfo.DriveType);
if (driveInfo.IsReady == true)
{
Console.WriteLine("卷标{0}\t",driveInfo.VolumeLabel);
Console.WriteLine("文件系统{0}\t",driveInfo.DriveFormat);
Console.WriteLine("当前用户可用空间{0,15}字节\t", driveInfo.AvailableFreeSpace);
Console.WriteLine("可用空间{0,15}字节\t", driveInfo.TotalFreeSpace);
Console.WriteLine("总空间{0:15}字节\t",driveInfo.TotalSize);
}
}
}
}
}