Skip to content

Commit

Permalink
init repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Силенок Юрий Викторович committed Oct 25, 2019
1 parent 13a1d22 commit aed91d3
Show file tree
Hide file tree
Showing 4 changed files with 176 additions and 0 deletions.
20 changes: 20 additions & 0 deletions ConsoleApplication1/ConsoleApplication1.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApplication1", "ConsoleApplication1\ConsoleApplication1.csproj", "{23889D1D-10DD-4B31-85E5-6DFC8D9F9853}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{23889D1D-10DD-4B31-85E5-6DFC8D9F9853}.Debug|x86.ActiveCfg = Debug|x86
{23889D1D-10DD-4B31-85E5-6DFC8D9F9853}.Debug|x86.Build.0 = Debug|x86
{23889D1D-10DD-4B31-85E5-6DFC8D9F9853}.Release|x86.ActiveCfg = Release|x86
{23889D1D-10DD-4B31-85E5-6DFC8D9F9853}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
57 changes: 57 additions & 0 deletions ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{23889D1D-10DD-4B31-85E5-6DFC8D9F9853}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ConsoleApplication1</RootNamespace>
<AssemblyName>ConsoleApplication1</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
63 changes: 63 additions & 0 deletions ConsoleApplication1/ConsoleApplication1/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
List<int[]> points = new List<int[]>();
string[] xy = { "X1=", "\tY1=", "\tX2=", "\tY2=" };
Random rnd = new Random();
while (true)
{
Console.WriteLine("1. add line (none, none)");
Console.WriteLine("2. add line (strelka, strelka)");
Console.WriteLine("3. add line (romb, romb)");
Console.WriteLine("4. print lines");
switch (Console.ReadLine())
{
case "1": points.Add(new int[]{
rnd.Next(-10, 11),rnd.Next(-10, 11),
rnd.Next(-10, 11),rnd.Next(-10, 11),
1,1}); break;
case "2": points.Add(new int[]{
rnd.Next(-10, 11),rnd.Next(-10, 11),
rnd.Next(-10, 11),rnd.Next(-10, 11),
2,2}); break;
case "3": points.Add(new int[]{
rnd.Next(-10, 11),rnd.Next(-10, 11),
rnd.Next(-10, 11),rnd.Next(-10, 11),
3,3}); break;
case "4":
foreach (int[] point in points)
{
for (int i = 0; i < 4; i++)
Console.Write(xy[i] + point[i]);
switch (point[4])
{
case 1: Console.Write("\t(none, "); break;
case 2: Console.Write("\t(strelka, "); break;
case 3: Console.Write("\t(romb, "); break;
}
switch (point[5])
{
case 1: Console.Write("none)"); break;
case 2: Console.Write("strelka)"); break;
case 3: Console.Write("romb)"); break;
}
Console.WriteLine();
}
break;
default:
Console.WriteLine("Неизвестная команда");
break;
}
Console.WriteLine();
}
}
}
}
36 changes: 36 additions & 0 deletions ConsoleApplication1/ConsoleApplication1/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// Управление общими сведениями о сборке осуществляется с помощью
// набора атрибутов. Измените значения этих атрибутов, чтобы изменить сведения,
// связанные со сборкой.
[assembly: AssemblyTitle("ConsoleApplication1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("ConsoleApplication1")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Параметр ComVisible со значением FALSE делает типы в сборке невидимыми
// для COM-компонентов. Если требуется обратиться к типу в этой сборке через
// COM, задайте атрибуту ComVisible значение TRUE для этого типа.
[assembly: ComVisible(false)]

// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM
[assembly: Guid("fe7ff7c5-7c9b-4027-9b9f-75a2bc115df1")]

// Сведения о версии сборки состоят из следующих четырех значений:
//
// Основной номер версии
// Дополнительный номер версии
// Номер построения
// Редакция
//
// Можно задать все значения или принять номер построения и номер редакции по умолчанию,
// используя "*", как показано ниже:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

0 comments on commit aed91d3

Please sign in to comment.