Skip to content

Commit

Permalink
added: week1 task2-3-4
Browse files Browse the repository at this point in the history
  • Loading branch information
asnbkk committed Feb 7, 2019
0 parents commit a3e0b07
Show file tree
Hide file tree
Showing 61 changed files with 526 additions and 0 deletions.
Binary file added Week1/Task2/.vs/Task2/v15/.suo
Binary file not shown.
Empty file.
Binary file not shown.
25 changes: 25 additions & 0 deletions Week1/Task2/Task2.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28307.329
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task2", "Task2\Task2.csproj", "{0AC2F460-9FF4-4A38-B510-FE301E8C2DD6}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0AC2F460-9FF4-4A38-B510-FE301E8C2DD6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0AC2F460-9FF4-4A38-B510-FE301E8C2DD6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0AC2F460-9FF4-4A38-B510-FE301E8C2DD6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0AC2F460-9FF4-4A38-B510-FE301E8C2DD6}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {01CB3B6F-0EA1-4A5A-B5F1-E66900CD2199}
EndGlobalSection
EndGlobal
6 changes: 6 additions & 0 deletions Week1/Task2/Task2/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
</configuration>
12 changes: 12 additions & 0 deletions Week1/Task2/Task2/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Task2
{
class Class1
{
}
}
40 changes: 40 additions & 0 deletions Week1/Task2/Task2/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Task2
{
class Student
{
public string name;
public string id;
public int year;
public Student() {
name = Console.ReadLine();
id = Console.ReadLine();
year = Convert.ToInt32(Console.ReadLine());
}
public Student(string name, string id, int year)
{
this.name = name;
this.id = id;
this.year = year;
}
public void info()
{
Console.WriteLine(name + " " + id + " " + (year + 1));
}
}
class Program
{
static void Main(string[] args)
{
Student a = new Student();
a.info();
Student b = new Student("Assan", "18bd", 2018);
b.info();
}
}
}
36 changes: 36 additions & 0 deletions Week1/Task2/Task2/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("Task2")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Task2")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

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

// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM
[assembly: Guid("0ac2f460-9ff4-4a38-b510-fe301e8c2dd6")]

// Сведения о версии сборки состоят из следующих четырех значений:
//
// Основной номер версии
// Дополнительный номер версии
// Номер сборки
// Редакция
//
// Можно задать все значения или принять номер сборки и номер редакции по умолчанию.
// используя "*", как показано ниже:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
54 changes: 54 additions & 0 deletions Week1/Task2/Task2/Task2.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{0AC2F460-9FF4-4A38-B510-FE301E8C2DD6}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>Task2</RootNamespace>
<AssemblyName>Task2</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</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|AnyCPU' ">
<PlatformTarget>AnyCPU</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.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Class1.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
Binary file added Week1/Task2/Task2/bin/Debug/Task2.exe
Binary file not shown.
6 changes: 6 additions & 0 deletions Week1/Task2/Task2/bin/Debug/Task2.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
</configuration>
Binary file added Week1/Task2/Task2/bin/Debug/Task2.pdb
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
b5b6dc6a4c672b40824f1cd30d2d8de61ed9dbbc
6 changes: 6 additions & 0 deletions Week1/Task2/Task2/obj/Debug/Task2.csproj.FileListAbsolute.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
C:\Users\Fora\source\repos\Week1\Task2\Task2\bin\Debug\Task2.exe.config
C:\Users\Fora\source\repos\Week1\Task2\Task2\bin\Debug\Task2.exe
C:\Users\Fora\source\repos\Week1\Task2\Task2\bin\Debug\Task2.pdb
C:\Users\Fora\source\repos\Week1\Task2\Task2\obj\Debug\Task2.csproj.CoreCompileInputs.cache
C:\Users\Fora\source\repos\Week1\Task2\Task2\obj\Debug\Task2.exe
C:\Users\Fora\source\repos\Week1\Task2\Task2\obj\Debug\Task2.pdb
Binary file added Week1/Task2/Task2/obj/Debug/Task2.exe
Binary file not shown.
Binary file added Week1/Task2/Task2/obj/Debug/Task2.pdb
Binary file not shown.
Empty file.
Empty file.
Empty file.
Binary file added Week1/Task3/.vs/Task3/v15/.suo
Binary file not shown.
Empty file.
Binary file not shown.
25 changes: 25 additions & 0 deletions Week1/Task3/Task3.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28307.329
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task3", "Task3\Task3.csproj", "{B4C5E4CE-8365-450E-9BB8-4DF45E947033}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B4C5E4CE-8365-450E-9BB8-4DF45E947033}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B4C5E4CE-8365-450E-9BB8-4DF45E947033}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B4C5E4CE-8365-450E-9BB8-4DF45E947033}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B4C5E4CE-8365-450E-9BB8-4DF45E947033}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {057007F0-6C77-49F2-8B74-FBB80CA41719}
EndGlobalSection
EndGlobal
6 changes: 6 additions & 0 deletions Week1/Task3/Task3/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
</configuration>
41 changes: 41 additions & 0 deletions Week1/Task3/Task3/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Task3
{
class Program
{
public static int[] dublicate(int[] arr, int n)
{
int[] arr2 = new int[n * 2];
for (int i = 0, j = 0; i < n; i++)
{
arr2[j] = arr[i];
j++;
arr2[j] = arr[i];
j++;
}
return arr2;
}
static void Main(string[] args)
{
int n = Convert.ToInt32(Console.ReadLine());
int[] arr = new int[n];
string[] list = Console.ReadLine().Split();
for (int i = 0; i < n; i++)
{
arr[i] = Convert.ToInt32(list[i]);
}
int[] arr2 = new int[n * 2];
arr2 = dublicate(arr, n);

for (int i = 0; i < n * 2; i++)
{
Console.Write(arr2[i] + " ");
}
}
}
}
36 changes: 36 additions & 0 deletions Week1/Task3/Task3/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("Task3")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Task3")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

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

// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM
[assembly: Guid("b4c5e4ce-8365-450e-9bb8-4df45e947033")]

// Сведения о версии сборки состоят из следующих четырех значений:
//
// Основной номер версии
// Дополнительный номер версии
// Номер сборки
// Редакция
//
// Можно задать все значения или принять номер сборки и номер редакции по умолчанию.
// используя "*", как показано ниже:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
53 changes: 53 additions & 0 deletions Week1/Task3/Task3/Task3.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{B4C5E4CE-8365-450E-9BB8-4DF45E947033}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>Task3</RootNamespace>
<AssemblyName>Task3</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</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|AnyCPU' ">
<PlatformTarget>AnyCPU</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.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
Binary file added Week1/Task3/Task3/bin/Debug/Task3.exe
Binary file not shown.
6 changes: 6 additions & 0 deletions Week1/Task3/Task3/bin/Debug/Task3.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
</configuration>
Binary file added Week1/Task3/Task3/bin/Debug/Task3.pdb
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7f834ccae392cace01d48d113d33e077750286b8
7 changes: 7 additions & 0 deletions Week1/Task3/Task3/obj/Debug/Task3.csproj.FileListAbsolute.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
C:\Users\Fora\source\repos\Week1\Task3\Task3\bin\Debug\Task3.exe.config
C:\Users\Fora\source\repos\Week1\Task3\Task3\bin\Debug\Task3.exe
C:\Users\Fora\source\repos\Week1\Task3\Task3\bin\Debug\Task3.pdb
C:\Users\Fora\source\repos\Week1\Task3\Task3\obj\Debug\Task3.csprojAssemblyReference.cache
C:\Users\Fora\source\repos\Week1\Task3\Task3\obj\Debug\Task3.csproj.CoreCompileInputs.cache
C:\Users\Fora\source\repos\Week1\Task3\Task3\obj\Debug\Task3.exe
C:\Users\Fora\source\repos\Week1\Task3\Task3\obj\Debug\Task3.pdb
Binary file not shown.
Binary file added Week1/Task3/Task3/obj/Debug/Task3.exe
Binary file not shown.
Binary file added Week1/Task3/Task3/obj/Debug/Task3.pdb
Binary file not shown.
Empty file.
Empty file.
Empty file.
Binary file added Week1/Task4/.vs/Task4/v15/.suo
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit a3e0b07

Please sign in to comment.