generated from admin/template
lab-06
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "lab-01", "lab-01\lab-01.csproj", "{BB50D7B0-E655-40BA-8766-BFEAA1A2D5DC}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{BB50D7B0-E655-40BA-8766-BFEAA1A2D5DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{BB50D7B0-E655-40BA-8766-BFEAA1A2D5DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{BB50D7B0-E655-40BA-8766-BFEAA1A2D5DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{BB50D7B0-E655-40BA-8766-BFEAA1A2D5DC}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,52 @@
|
||||
class PokemonStage
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Type { get; set; }
|
||||
public string RequiredLevel { get; set; }
|
||||
|
||||
public PokemonStage(string name, string type, string requiredLevel)
|
||||
{
|
||||
Name = name;
|
||||
Type = type;
|
||||
RequiredLevel = requiredLevel;
|
||||
}
|
||||
|
||||
public void ShowInfo()
|
||||
{
|
||||
Console.WriteLine($"Имя: {Name}, Тип: {Type}, Уровень эвлюции: {RequiredLevel}");
|
||||
}
|
||||
}
|
||||
|
||||
class EvolutionNode
|
||||
{
|
||||
public PokemonStage Data;
|
||||
public EvolutionNode Next;
|
||||
|
||||
public EvolutionNode(PokemonStage data)
|
||||
{
|
||||
Data = data;
|
||||
Next = null;
|
||||
}
|
||||
}
|
||||
|
||||
class EvolutionLine
|
||||
{
|
||||
public EvolutionNode Head;
|
||||
public EvolutionNode Tail;
|
||||
public int Count;
|
||||
|
||||
AddFirst(PokemonStage stage)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
AddLast(PokemonStage stage)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
PrintAll()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<RootNamespace>lab_01</RootNamespace>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user