ЛАбы
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProgramAlgo", "ProgramAlgo\ProgramAlgo.csproj", "{A69EF048-8A81-4D3D-B817-9811EE5E32FA}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{A69EF048-8A81-4D3D-B817-9811EE5E32FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{A69EF048-8A81-4D3D-B817-9811EE5E32FA}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{A69EF048-8A81-4D3D-B817-9811EE5E32FA}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{A69EF048-8A81-4D3D-B817-9811EE5E32FA}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,47 @@
|
||||
PokemonStage poke = new PokemonStage();
|
||||
poke.ShowInfo();
|
||||
class PokemonStage
|
||||
{
|
||||
public string Name;
|
||||
public string Type;
|
||||
public int RequiredLevel;
|
||||
public PokemonStage()
|
||||
{
|
||||
Name ="Roman";
|
||||
Type = "qwerty";
|
||||
RequiredLevel = 19;
|
||||
}
|
||||
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 int Head;
|
||||
public int Count;
|
||||
|
||||
public void AddFirst(PokemonStage stage)
|
||||
{
|
||||
Head++;
|
||||
Count++;
|
||||
}
|
||||
public void AddLast(PokemonStage stage)
|
||||
{
|
||||
Head--;
|
||||
Count--;
|
||||
}
|
||||
public void PrintAll
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.11"/>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,6 @@
|
||||
@ProgramAlgo_HostAddress = http://localhost:5110
|
||||
|
||||
GET {{ProgramAlgo_HostAddress}}/weatherforecast/
|
||||
Accept: application/json
|
||||
|
||||
###
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/launchsettings.json",
|
||||
"profiles": {
|
||||
"http": {
|
||||
"commandName": "Project",
|
||||
"dotnetRunMessages": true,
|
||||
"launchBrowser": false,
|
||||
"applicationUrl": "http://localhost:5110",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
||||
},
|
||||
"https": {
|
||||
"commandName": "Project",
|
||||
"dotnetRunMessages": true,
|
||||
"launchBrowser": false,
|
||||
"applicationUrl": "https://localhost:7189;http://localhost:5110",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
}
|
||||
Reference in New Issue
Block a user