diff --git a/ProgramFirstLesson/.vs/ProgramFirstLesson/v16/.suo b/ProgramFirstLesson/.vs/ProgramFirstLesson/v16/.suo new file mode 100644 index 0000000..1acc3a5 Binary files /dev/null and b/ProgramFirstLesson/.vs/ProgramFirstLesson/v16/.suo differ diff --git a/ProgramFirstLesson/Hm1Lesson1/App.config b/ProgramFirstLesson/Hm1Lesson1/App.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/ProgramFirstLesson/Hm1Lesson1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ProgramFirstLesson/Hm1Lesson1/Form1.Designer.cs b/ProgramFirstLesson/Hm1Lesson1/Form1.Designer.cs new file mode 100644 index 0000000..ec7ce7a --- /dev/null +++ b/ProgramFirstLesson/Hm1Lesson1/Form1.Designer.cs @@ -0,0 +1,40 @@ +namespace Hm1Lesson1 +{ + partial class Form1 + { + /// + /// Обязательная переменная конструктора. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Освободить все используемые ресурсы. + /// + /// истинно, если управляемый ресурс должен быть удален; иначе ложно. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Код, автоматически созданный конструктором форм Windows + + /// + /// Требуемый метод для поддержки конструктора — не изменяйте + /// содержимое этого метода с помощью редактора кода. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Text = "Form1"; + } + + #endregion + } +} + diff --git a/ProgramFirstLesson/Hm1Lesson1/Form1.cs b/ProgramFirstLesson/Hm1Lesson1/Form1.cs new file mode 100644 index 0000000..a106844 --- /dev/null +++ b/ProgramFirstLesson/Hm1Lesson1/Form1.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Hm1Lesson1 +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + } +} diff --git a/ProgramFirstLesson/Hm1Lesson1/Hm1Lesson1.csproj b/ProgramFirstLesson/Hm1Lesson1/Hm1Lesson1.csproj new file mode 100644 index 0000000..94b145f --- /dev/null +++ b/ProgramFirstLesson/Hm1Lesson1/Hm1Lesson1.csproj @@ -0,0 +1,80 @@ + + + + + Debug + AnyCPU + {D31CED92-B630-464D-8C30-390F7CE9DFC2} + WinExe + Hm1Lesson1 + Hm1Lesson1 + v4.8 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file diff --git a/ProgramFirstLesson/Hm1Lesson1/Program.cs b/ProgramFirstLesson/Hm1Lesson1/Program.cs new file mode 100644 index 0000000..55a9bab --- /dev/null +++ b/ProgramFirstLesson/Hm1Lesson1/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Hm1Lesson1 +{ + static class Program + { + /// + /// Главная точка входа для приложения. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/ProgramFirstLesson/Hm1Lesson1/Properties/AssemblyInfo.cs b/ProgramFirstLesson/Hm1Lesson1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..0571e7b --- /dev/null +++ b/ProgramFirstLesson/Hm1Lesson1/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Общие сведения об этой сборке предоставляются следующим набором +// набора атрибутов. Измените значения этих атрибутов для изменения сведений, +// связанных со сборкой. +[assembly: AssemblyTitle("Hm1Lesson1")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Hm1Lesson1")] +[assembly: AssemblyCopyright("Copyright © 2020")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми +// для компонентов COM. Если необходимо обратиться к типу в этой сборке через +// COM, следует установить атрибут ComVisible в TRUE для этого типа. +[assembly: ComVisible(false)] + +// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM +[assembly: Guid("d31ced92-b630-464d-8c30-390f7ce9dfc2")] + +// Сведения о версии сборки состоят из указанных ниже четырех значений: +// +// Основной номер версии +// Дополнительный номер версии +// Номер сборки +// Редакция +// +// Можно задать все значения или принять номера сборки и редакции по умолчанию +// используя "*", как показано ниже: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/ProgramFirstLesson/Hm1Lesson1/Properties/Resources.Designer.cs b/ProgramFirstLesson/Hm1Lesson1/Properties/Resources.Designer.cs new file mode 100644 index 0000000..b8455bf --- /dev/null +++ b/ProgramFirstLesson/Hm1Lesson1/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// Этот код создан программным средством. +// Версия среды выполнения: 4.0.30319.42000 +// +// Изменения в этом файле могут привести к неправильному поведению и будут утрачены, если +// код создан повторно. +// +//------------------------------------------------------------------------------ + +namespace Hm1Lesson1.Properties +{ + + + /// + /// Класс ресурсов со строгим типом для поиска локализованных строк и пр. + /// + // Этот класс был автоматически создан при помощи StronglyTypedResourceBuilder + // класс с помощью таких средств, как ResGen или Visual Studio. + // Для добавления или удаления члена измените файл .ResX, а затем перезапустите ResGen + // с параметром /str или заново постройте свой VS-проект. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Возврат кэшированного экземпляра ResourceManager, используемого этим классом. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Hm1Lesson1.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Переопределяет свойство CurrentUICulture текущего потока для всех + /// подстановки ресурсов с помощью этого класса ресурсов со строгим типом. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/ProgramFirstLesson/Hm1Lesson1/Properties/Resources.resx b/ProgramFirstLesson/Hm1Lesson1/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/ProgramFirstLesson/Hm1Lesson1/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/ProgramFirstLesson/Hm1Lesson1/Properties/Settings.Designer.cs b/ProgramFirstLesson/Hm1Lesson1/Properties/Settings.Designer.cs new file mode 100644 index 0000000..9c12024 --- /dev/null +++ b/ProgramFirstLesson/Hm1Lesson1/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Hm1Lesson1.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/ProgramFirstLesson/Hm1Lesson1/Properties/Settings.settings b/ProgramFirstLesson/Hm1Lesson1/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/ProgramFirstLesson/Hm1Lesson1/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/ProgramFirstLesson/Hm1Lesson1/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs b/ProgramFirstLesson/Hm1Lesson1/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs new file mode 100644 index 0000000..15efebf --- /dev/null +++ b/ProgramFirstLesson/Hm1Lesson1/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] diff --git a/ProgramFirstLesson/Hm1Lesson1/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/ProgramFirstLesson/Hm1Lesson1/obj/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..8cc801f Binary files /dev/null and b/ProgramFirstLesson/Hm1Lesson1/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/ProgramFirstLesson/Hm1Lesson1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/ProgramFirstLesson/Hm1Lesson1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..ff78587 Binary files /dev/null and b/ProgramFirstLesson/Hm1Lesson1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/ProgramFirstLesson/Hm1Lesson1/obj/Debug/Hm1Lesson1.csprojAssemblyReference.cache b/ProgramFirstLesson/Hm1Lesson1/obj/Debug/Hm1Lesson1.csprojAssemblyReference.cache new file mode 100644 index 0000000..738edbd Binary files /dev/null and b/ProgramFirstLesson/Hm1Lesson1/obj/Debug/Hm1Lesson1.csprojAssemblyReference.cache differ diff --git a/ProgramFirstLesson/HmLesson1.zip b/ProgramFirstLesson/HmLesson1.zip new file mode 100644 index 0000000..b716060 Binary files /dev/null and b/ProgramFirstLesson/HmLesson1.zip differ diff --git a/ProgramFirstLesson/Hw1/App.config b/ProgramFirstLesson/Hw1/App.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/ProgramFirstLesson/Hw1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ProgramFirstLesson/Hw1/Hw1.csproj b/ProgramFirstLesson/Hw1/Hw1.csproj new file mode 100644 index 0000000..075be58 --- /dev/null +++ b/ProgramFirstLesson/Hw1/Hw1.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {937C7240-E34B-4E95-936F-F49EBBA07B2F} + Exe + Hw1 + Hw1 + v4.8 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + {179f6e9c-8ed7-4184-a473-dd5ef6a40daa} + NameSpaceLesson1 + + + + \ No newline at end of file diff --git a/ProgramFirstLesson/Hw1/Program.cs b/ProgramFirstLesson/Hw1/Program.cs new file mode 100644 index 0000000..a1b422a --- /dev/null +++ b/ProgramFirstLesson/Hw1/Program.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Hw1 +{ + class Program + { + static void Main(string[] args) + { + # region Считывание данных пользователя + /*string surname, name, age; + int height, weight;*/ + Console.Write("Введите фамилию: "); + var surname = Console.ReadLine(); + Console.Write("Введите имя: "); + var name = Console.ReadLine(); + Console.Write("Введите возраст: "); + var age = Console.ReadLine(); + Console.Write("Введите рост в сантиметрах: "); + var height = int.Parse(Console.ReadLine()); + Console.Write("Введите вес в килограммах: "); + var weight = int.Parse(Console.ReadLine()); + /*Console.Write("Введите город проживания: "); + town = Console.ReadLine(); + NameSpaceLesson1.Program.ReadUserData(out surname, out name, out age, out height, out weight, out town);*/ + #endregion + #region Конкатинация строк + Console.WriteLine("Фамилия: " + surname + ". Имя: " + name + ". Возраст: " + age + ". Рост: " + height + ". Вес: " + weight + "."); + #endregion + #region Форматированный вывод + Console.WriteLine("Фамилия: {0}. Имя: {1}. Возраст: {2}. Рост: {3}. Вес: {4}.", surname, name, age, height, weight); + #endregion + #region Интерполированный вывод + Console.WriteLine($"Фамилия: {surname}. Имя: {name}. Возраст: {age}. Рост: {height}. Вес: {weight}."); + #endregion + NameSpaceLesson1.Program.EndProgramm(); + NameSpaceLesson1.Program.CloseProgrammKey(); + } + } +} diff --git a/ProgramFirstLesson/Hw1/Properties/AssemblyInfo.cs b/ProgramFirstLesson/Hw1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..770ab73 --- /dev/null +++ b/ProgramFirstLesson/Hw1/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Общие сведения об этой сборке предоставляются следующим набором +// набора атрибутов. Измените значения этих атрибутов для изменения сведений, +// связанные с этой сборкой. +[assembly: AssemblyTitle("Hw1")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Hw1")] +[assembly: AssemblyCopyright("Copyright © 2020")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми +// для компонентов COM. Если необходимо обратиться к типу в этой сборке через +// из модели COM задайте для атрибута ComVisible этого типа значение true. +[assembly: ComVisible(false)] + +// Следующий GUID представляет идентификатор typelib, если этот проект доступен из модели COM +[assembly: Guid("937c7240-e34b-4e95-936f-f49ebba07b2f")] + +// Сведения о версии сборки состоят из указанных ниже четырех значений: +// +// Основной номер версии +// Дополнительный номер версии +// Номер сборки +// Номер редакции +// +// Можно задать все значения или принять номера сборки и редакции по умолчанию +// используя "*", как показано ниже: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/ProgramFirstLesson/Hw1/bin/Debug/Hw1.exe b/ProgramFirstLesson/Hw1/bin/Debug/Hw1.exe new file mode 100644 index 0000000..dd2e2aa Binary files /dev/null and b/ProgramFirstLesson/Hw1/bin/Debug/Hw1.exe differ diff --git a/ProgramFirstLesson/Hw1/bin/Debug/Hw1.exe.config b/ProgramFirstLesson/Hw1/bin/Debug/Hw1.exe.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/ProgramFirstLesson/Hw1/bin/Debug/Hw1.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ProgramFirstLesson/Hw1/bin/Debug/Hw1.pdb b/ProgramFirstLesson/Hw1/bin/Debug/Hw1.pdb new file mode 100644 index 0000000..72f8a26 Binary files /dev/null and b/ProgramFirstLesson/Hw1/bin/Debug/Hw1.pdb differ diff --git a/ProgramFirstLesson/Hw1/bin/Debug/ProgramFirstLesson.exe b/ProgramFirstLesson/Hw1/bin/Debug/ProgramFirstLesson.exe new file mode 100644 index 0000000..80fb78d Binary files /dev/null and b/ProgramFirstLesson/Hw1/bin/Debug/ProgramFirstLesson.exe differ diff --git a/ProgramFirstLesson/Hw1/bin/Debug/ProgramFirstLesson.exe.config b/ProgramFirstLesson/Hw1/bin/Debug/ProgramFirstLesson.exe.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/ProgramFirstLesson/Hw1/bin/Debug/ProgramFirstLesson.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ProgramFirstLesson/Hw1/bin/Debug/ProgramFirstLesson.pdb b/ProgramFirstLesson/Hw1/bin/Debug/ProgramFirstLesson.pdb new file mode 100644 index 0000000..7a93288 Binary files /dev/null and b/ProgramFirstLesson/Hw1/bin/Debug/ProgramFirstLesson.pdb differ diff --git a/ProgramFirstLesson/Hw1/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs b/ProgramFirstLesson/Hw1/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs new file mode 100644 index 0000000..15efebf --- /dev/null +++ b/ProgramFirstLesson/Hw1/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] diff --git a/ProgramFirstLesson/Hw1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/ProgramFirstLesson/Hw1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..b933d8a Binary files /dev/null and b/ProgramFirstLesson/Hw1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/ProgramFirstLesson/Hw1/obj/Debug/Hw1.csproj.CopyComplete b/ProgramFirstLesson/Hw1/obj/Debug/Hw1.csproj.CopyComplete new file mode 100644 index 0000000..e69de29 diff --git a/ProgramFirstLesson/Hw1/obj/Debug/Hw1.csproj.CoreCompileInputs.cache b/ProgramFirstLesson/Hw1/obj/Debug/Hw1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..8d886ed --- /dev/null +++ b/ProgramFirstLesson/Hw1/obj/Debug/Hw1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +c21f2da4e9c3808fb93d0866d23d4bf35ebf9a60 diff --git a/ProgramFirstLesson/Hw1/obj/Debug/Hw1.csproj.FileListAbsolute.txt b/ProgramFirstLesson/Hw1/obj/Debug/Hw1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..afaf1c1 --- /dev/null +++ b/ProgramFirstLesson/Hw1/obj/Debug/Hw1.csproj.FileListAbsolute.txt @@ -0,0 +1,11 @@ +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw1\bin\Debug\Hw1.exe.config +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw1\bin\Debug\Hw1.exe +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw1\bin\Debug\Hw1.pdb +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw1\bin\Debug\ProgramFirstLesson.exe +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw1\bin\Debug\ProgramFirstLesson.pdb +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw1\bin\Debug\ProgramFirstLesson.exe.config +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw1\obj\Debug\Hw1.csprojAssemblyReference.cache +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw1\obj\Debug\Hw1.csproj.CoreCompileInputs.cache +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw1\obj\Debug\Hw1.csproj.CopyComplete +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw1\obj\Debug\Hw1.exe +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw1\obj\Debug\Hw1.pdb diff --git a/ProgramFirstLesson/Hw1/obj/Debug/Hw1.csprojAssemblyReference.cache b/ProgramFirstLesson/Hw1/obj/Debug/Hw1.csprojAssemblyReference.cache new file mode 100644 index 0000000..e9864cb Binary files /dev/null and b/ProgramFirstLesson/Hw1/obj/Debug/Hw1.csprojAssemblyReference.cache differ diff --git a/ProgramFirstLesson/Hw1/obj/Debug/Hw1.exe b/ProgramFirstLesson/Hw1/obj/Debug/Hw1.exe new file mode 100644 index 0000000..dd2e2aa Binary files /dev/null and b/ProgramFirstLesson/Hw1/obj/Debug/Hw1.exe differ diff --git a/ProgramFirstLesson/Hw1/obj/Debug/Hw1.pdb b/ProgramFirstLesson/Hw1/obj/Debug/Hw1.pdb new file mode 100644 index 0000000..72f8a26 Binary files /dev/null and b/ProgramFirstLesson/Hw1/obj/Debug/Hw1.pdb differ diff --git a/ProgramFirstLesson/Hw2/App.config b/ProgramFirstLesson/Hw2/App.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/ProgramFirstLesson/Hw2/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ProgramFirstLesson/Hw2/Hw2.csproj b/ProgramFirstLesson/Hw2/Hw2.csproj new file mode 100644 index 0000000..bd2b49b --- /dev/null +++ b/ProgramFirstLesson/Hw2/Hw2.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {86820D8B-F49D-412F-BC3B-9D292587D90D} + Exe + Hw2 + Hw2 + v4.8 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + {179f6e9c-8ed7-4184-a473-dd5ef6a40daa} + NameSpaceLesson1 + + + + \ No newline at end of file diff --git a/ProgramFirstLesson/Hw2/Program.cs b/ProgramFirstLesson/Hw2/Program.cs new file mode 100644 index 0000000..e07f3e3 --- /dev/null +++ b/ProgramFirstLesson/Hw2/Program.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Hw2 +{ + class Program + { + static void Main(string[] args) + { + #region Считывание данных пользователя + /*string surname, name, age, town; + int height, weight; + NameSpaceLesson1.Program.ReadUserData(out surname, out name, out age, out height, out weight, out town);*/ + Console.Write("Введите рост в сантиметрах: "); + var height = int.Parse(Console.ReadLine()); + Console.Write("Введите вес в килограммах: "); + var weight = int.Parse(Console.ReadLine()); + #endregion + #region Вывод массы тела + Console.WriteLine($"Индекс массы тела в кг/м^2: {weight * 10000 / (height * height)}."); + #endregion + NameSpaceLesson1.Program.EndProgramm(); + NameSpaceLesson1.Program.CloseProgrammKey(); + } + } +} diff --git a/ProgramFirstLesson/Hw2/Properties/AssemblyInfo.cs b/ProgramFirstLesson/Hw2/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..687767e --- /dev/null +++ b/ProgramFirstLesson/Hw2/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Общие сведения об этой сборке предоставляются следующим набором +// набора атрибутов. Измените значения этих атрибутов для изменения сведений, +// связанные с этой сборкой. +[assembly: AssemblyTitle("Hw2")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Hw2")] +[assembly: AssemblyCopyright("Copyright © 2020")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми +// для компонентов COM. Если необходимо обратиться к типу в этой сборке через +// из модели COM задайте для атрибута ComVisible этого типа значение true. +[assembly: ComVisible(false)] + +// Следующий GUID представляет идентификатор typelib, если этот проект доступен из модели COM +[assembly: Guid("86820d8b-f49d-412f-bc3b-9d292587d90d")] + +// Сведения о версии сборки состоят из указанных ниже четырех значений: +// +// Основной номер версии +// Дополнительный номер версии +// Номер сборки +// Номер редакции +// +// Можно задать все значения или принять номера сборки и редакции по умолчанию +// используя "*", как показано ниже: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/ProgramFirstLesson/Hw2/bin/Debug/Hw2.exe b/ProgramFirstLesson/Hw2/bin/Debug/Hw2.exe new file mode 100644 index 0000000..a711e5f Binary files /dev/null and b/ProgramFirstLesson/Hw2/bin/Debug/Hw2.exe differ diff --git a/ProgramFirstLesson/Hw2/bin/Debug/Hw2.exe.config b/ProgramFirstLesson/Hw2/bin/Debug/Hw2.exe.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/ProgramFirstLesson/Hw2/bin/Debug/Hw2.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ProgramFirstLesson/Hw2/bin/Debug/Hw2.pdb b/ProgramFirstLesson/Hw2/bin/Debug/Hw2.pdb new file mode 100644 index 0000000..b10c7a6 Binary files /dev/null and b/ProgramFirstLesson/Hw2/bin/Debug/Hw2.pdb differ diff --git a/ProgramFirstLesson/Hw2/bin/Debug/ProgramFirstLesson.exe b/ProgramFirstLesson/Hw2/bin/Debug/ProgramFirstLesson.exe new file mode 100644 index 0000000..e200086 Binary files /dev/null and b/ProgramFirstLesson/Hw2/bin/Debug/ProgramFirstLesson.exe differ diff --git a/ProgramFirstLesson/Hw2/bin/Debug/ProgramFirstLesson.exe.config b/ProgramFirstLesson/Hw2/bin/Debug/ProgramFirstLesson.exe.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/ProgramFirstLesson/Hw2/bin/Debug/ProgramFirstLesson.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ProgramFirstLesson/Hw2/bin/Debug/ProgramFirstLesson.pdb b/ProgramFirstLesson/Hw2/bin/Debug/ProgramFirstLesson.pdb new file mode 100644 index 0000000..468aedf Binary files /dev/null and b/ProgramFirstLesson/Hw2/bin/Debug/ProgramFirstLesson.pdb differ diff --git a/ProgramFirstLesson/Hw2/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs b/ProgramFirstLesson/Hw2/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs new file mode 100644 index 0000000..15efebf --- /dev/null +++ b/ProgramFirstLesson/Hw2/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] diff --git a/ProgramFirstLesson/Hw2/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/ProgramFirstLesson/Hw2/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..2a3fb31 Binary files /dev/null and b/ProgramFirstLesson/Hw2/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/ProgramFirstLesson/Hw2/obj/Debug/Hw2.csproj.CopyComplete b/ProgramFirstLesson/Hw2/obj/Debug/Hw2.csproj.CopyComplete new file mode 100644 index 0000000..e69de29 diff --git a/ProgramFirstLesson/Hw2/obj/Debug/Hw2.csproj.CoreCompileInputs.cache b/ProgramFirstLesson/Hw2/obj/Debug/Hw2.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..8d886ed --- /dev/null +++ b/ProgramFirstLesson/Hw2/obj/Debug/Hw2.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +c21f2da4e9c3808fb93d0866d23d4bf35ebf9a60 diff --git a/ProgramFirstLesson/Hw2/obj/Debug/Hw2.csproj.FileListAbsolute.txt b/ProgramFirstLesson/Hw2/obj/Debug/Hw2.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..3c8eb47 --- /dev/null +++ b/ProgramFirstLesson/Hw2/obj/Debug/Hw2.csproj.FileListAbsolute.txt @@ -0,0 +1,11 @@ +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw2\bin\Debug\Hw2.exe.config +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw2\bin\Debug\Hw2.exe +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw2\bin\Debug\Hw2.pdb +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw2\bin\Debug\ProgramFirstLesson.exe +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw2\bin\Debug\ProgramFirstLesson.pdb +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw2\bin\Debug\ProgramFirstLesson.exe.config +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw2\obj\Debug\Hw2.csprojAssemblyReference.cache +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw2\obj\Debug\Hw2.csproj.CoreCompileInputs.cache +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw2\obj\Debug\Hw2.csproj.CopyComplete +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw2\obj\Debug\Hw2.exe +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw2\obj\Debug\Hw2.pdb diff --git a/ProgramFirstLesson/Hw2/obj/Debug/Hw2.csprojAssemblyReference.cache b/ProgramFirstLesson/Hw2/obj/Debug/Hw2.csprojAssemblyReference.cache new file mode 100644 index 0000000..a7bdf91 Binary files /dev/null and b/ProgramFirstLesson/Hw2/obj/Debug/Hw2.csprojAssemblyReference.cache differ diff --git a/ProgramFirstLesson/Hw2/obj/Debug/Hw2.exe b/ProgramFirstLesson/Hw2/obj/Debug/Hw2.exe new file mode 100644 index 0000000..a711e5f Binary files /dev/null and b/ProgramFirstLesson/Hw2/obj/Debug/Hw2.exe differ diff --git a/ProgramFirstLesson/Hw2/obj/Debug/Hw2.pdb b/ProgramFirstLesson/Hw2/obj/Debug/Hw2.pdb new file mode 100644 index 0000000..b10c7a6 Binary files /dev/null and b/ProgramFirstLesson/Hw2/obj/Debug/Hw2.pdb differ diff --git a/ProgramFirstLesson/Hw3/App.config b/ProgramFirstLesson/Hw3/App.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/ProgramFirstLesson/Hw3/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ProgramFirstLesson/Hw3/Hw3.csproj b/ProgramFirstLesson/Hw3/Hw3.csproj new file mode 100644 index 0000000..c3bb80d --- /dev/null +++ b/ProgramFirstLesson/Hw3/Hw3.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {6B66C21C-A0CF-453C-93F8-E58BDDD245BF} + Exe + Hw3 + Hw3 + v4.8 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + {179f6e9c-8ed7-4184-a473-dd5ef6a40daa} + NameSpaceLesson1 + + + + \ No newline at end of file diff --git a/ProgramFirstLesson/Hw3/Program.cs b/ProgramFirstLesson/Hw3/Program.cs new file mode 100644 index 0000000..9dc86c4 --- /dev/null +++ b/ProgramFirstLesson/Hw3/Program.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Hw3 +{ + class Program + { + static void Main(string[] args) + { + #region Ввод координат 2 точек для подсчёта расстояния + Console.WriteLine("Для подсчёта расстояния между 2 точками введи их координаты: "); + double x1, y1, x2, y2; + NameSpaceLesson1.Program.ReadingTwoCoordinats(out x1, out y1, out x2, out y2); + #endregion + #region Вывод расстояния между 2 точками + NameSpaceLesson1.Program.CalculatingDistance(x1, y1, x2, y2); + #endregion + NameSpaceLesson1.Program.EndProgramm(); + NameSpaceLesson1.Program.CloseProgrammKey(); + } + } +} diff --git a/ProgramFirstLesson/Hw3/Properties/AssemblyInfo.cs b/ProgramFirstLesson/Hw3/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..78ac61a --- /dev/null +++ b/ProgramFirstLesson/Hw3/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Общие сведения об этой сборке предоставляются следующим набором +// набора атрибутов. Измените значения этих атрибутов для изменения сведений, +// связанные с этой сборкой. +[assembly: AssemblyTitle("Hw3")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Hw3")] +[assembly: AssemblyCopyright("Copyright © 2020")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми +// для компонентов COM. Если необходимо обратиться к типу в этой сборке через +// из модели COM задайте для атрибута ComVisible этого типа значение true. +[assembly: ComVisible(false)] + +// Следующий GUID представляет идентификатор typelib, если этот проект доступен из модели COM +[assembly: Guid("6b66c21c-a0cf-453c-93f8-e58bddd245bf")] + +// Сведения о версии сборки состоят из указанных ниже четырех значений: +// +// Основной номер версии +// Дополнительный номер версии +// Номер сборки +// Номер редакции +// +// Можно задать все значения или принять номера сборки и редакции по умолчанию +// используя "*", как показано ниже: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/ProgramFirstLesson/Hw3/bin/Debug/Hw3.exe b/ProgramFirstLesson/Hw3/bin/Debug/Hw3.exe new file mode 100644 index 0000000..5845061 Binary files /dev/null and b/ProgramFirstLesson/Hw3/bin/Debug/Hw3.exe differ diff --git a/ProgramFirstLesson/Hw3/bin/Debug/Hw3.exe.config b/ProgramFirstLesson/Hw3/bin/Debug/Hw3.exe.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/ProgramFirstLesson/Hw3/bin/Debug/Hw3.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ProgramFirstLesson/Hw3/bin/Debug/Hw3.pdb b/ProgramFirstLesson/Hw3/bin/Debug/Hw3.pdb new file mode 100644 index 0000000..238f4a2 Binary files /dev/null and b/ProgramFirstLesson/Hw3/bin/Debug/Hw3.pdb differ diff --git a/ProgramFirstLesson/Hw3/bin/Debug/ProgramFirstLesson.exe b/ProgramFirstLesson/Hw3/bin/Debug/ProgramFirstLesson.exe new file mode 100644 index 0000000..0f4ff0c Binary files /dev/null and b/ProgramFirstLesson/Hw3/bin/Debug/ProgramFirstLesson.exe differ diff --git a/ProgramFirstLesson/Hw3/bin/Debug/ProgramFirstLesson.exe.config b/ProgramFirstLesson/Hw3/bin/Debug/ProgramFirstLesson.exe.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/ProgramFirstLesson/Hw3/bin/Debug/ProgramFirstLesson.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ProgramFirstLesson/Hw3/bin/Debug/ProgramFirstLesson.pdb b/ProgramFirstLesson/Hw3/bin/Debug/ProgramFirstLesson.pdb new file mode 100644 index 0000000..3ff5bfc Binary files /dev/null and b/ProgramFirstLesson/Hw3/bin/Debug/ProgramFirstLesson.pdb differ diff --git a/ProgramFirstLesson/Hw3/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs b/ProgramFirstLesson/Hw3/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs new file mode 100644 index 0000000..15efebf --- /dev/null +++ b/ProgramFirstLesson/Hw3/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] diff --git a/ProgramFirstLesson/Hw3/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/ProgramFirstLesson/Hw3/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..ba4be73 Binary files /dev/null and b/ProgramFirstLesson/Hw3/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/ProgramFirstLesson/Hw3/obj/Debug/Hw3.csproj.CopyComplete b/ProgramFirstLesson/Hw3/obj/Debug/Hw3.csproj.CopyComplete new file mode 100644 index 0000000..e69de29 diff --git a/ProgramFirstLesson/Hw3/obj/Debug/Hw3.csproj.CoreCompileInputs.cache b/ProgramFirstLesson/Hw3/obj/Debug/Hw3.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..8d886ed --- /dev/null +++ b/ProgramFirstLesson/Hw3/obj/Debug/Hw3.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +c21f2da4e9c3808fb93d0866d23d4bf35ebf9a60 diff --git a/ProgramFirstLesson/Hw3/obj/Debug/Hw3.csproj.FileListAbsolute.txt b/ProgramFirstLesson/Hw3/obj/Debug/Hw3.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..ca697ef --- /dev/null +++ b/ProgramFirstLesson/Hw3/obj/Debug/Hw3.csproj.FileListAbsolute.txt @@ -0,0 +1,11 @@ +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw3\bin\Debug\Hw3.exe.config +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw3\bin\Debug\Hw3.exe +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw3\bin\Debug\Hw3.pdb +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw3\bin\Debug\ProgramFirstLesson.exe +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw3\bin\Debug\ProgramFirstLesson.pdb +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw3\bin\Debug\ProgramFirstLesson.exe.config +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw3\obj\Debug\Hw3.csproj.CoreCompileInputs.cache +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw3\obj\Debug\Hw3.csproj.CopyComplete +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw3\obj\Debug\Hw3.exe +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw3\obj\Debug\Hw3.pdb +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw3\obj\Debug\Hw3.csprojAssemblyReference.cache diff --git a/ProgramFirstLesson/Hw3/obj/Debug/Hw3.csprojAssemblyReference.cache b/ProgramFirstLesson/Hw3/obj/Debug/Hw3.csprojAssemblyReference.cache new file mode 100644 index 0000000..6211d49 Binary files /dev/null and b/ProgramFirstLesson/Hw3/obj/Debug/Hw3.csprojAssemblyReference.cache differ diff --git a/ProgramFirstLesson/Hw3/obj/Debug/Hw3.exe b/ProgramFirstLesson/Hw3/obj/Debug/Hw3.exe new file mode 100644 index 0000000..5845061 Binary files /dev/null and b/ProgramFirstLesson/Hw3/obj/Debug/Hw3.exe differ diff --git a/ProgramFirstLesson/Hw3/obj/Debug/Hw3.pdb b/ProgramFirstLesson/Hw3/obj/Debug/Hw3.pdb new file mode 100644 index 0000000..238f4a2 Binary files /dev/null and b/ProgramFirstLesson/Hw3/obj/Debug/Hw3.pdb differ diff --git a/ProgramFirstLesson/Hw4/App.config b/ProgramFirstLesson/Hw4/App.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/ProgramFirstLesson/Hw4/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ProgramFirstLesson/Hw4/Hw4.csproj b/ProgramFirstLesson/Hw4/Hw4.csproj new file mode 100644 index 0000000..fbaf3e7 --- /dev/null +++ b/ProgramFirstLesson/Hw4/Hw4.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {D27F7CC8-3DD3-47AB-8B4C-9556186C95B9} + Exe + Hw4 + Hw4 + v4.8 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + {179f6e9c-8ed7-4184-a473-dd5ef6a40daa} + NameSpaceLesson1 + + + + \ No newline at end of file diff --git a/ProgramFirstLesson/Hw4/Program.cs b/ProgramFirstLesson/Hw4/Program.cs new file mode 100644 index 0000000..5320fd5 --- /dev/null +++ b/ProgramFirstLesson/Hw4/Program.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Hw4 +{ + class Program + { + static void Main(string[] args) + { + #region Обмен значениями двух переменных с использованием третьей + NameSpaceLesson1.Program.ChangeTwoVariables(); + #endregion + #region Обмен числовых переменных без третьей переменной: + int a = 1; + int b = 2; + a = a + b; + b = a - b; + a = a - b; + #endregion + NameSpaceLesson1.Program.EndProgramm(); + NameSpaceLesson1.Program.CloseProgrammKey(); + } + } +} diff --git a/ProgramFirstLesson/Hw4/Properties/AssemblyInfo.cs b/ProgramFirstLesson/Hw4/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..e583cec --- /dev/null +++ b/ProgramFirstLesson/Hw4/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Общие сведения об этой сборке предоставляются следующим набором +// набора атрибутов. Измените значения этих атрибутов для изменения сведений, +// связанные с этой сборкой. +[assembly: AssemblyTitle("Hw4")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Hw4")] +[assembly: AssemblyCopyright("Copyright © 2020")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми +// для компонентов COM. Если необходимо обратиться к типу в этой сборке через +// из модели COM задайте для атрибута ComVisible этого типа значение true. +[assembly: ComVisible(false)] + +// Следующий GUID представляет идентификатор typelib, если этот проект доступен из модели COM +[assembly: Guid("d27f7cc8-3dd3-47ab-8b4c-9556186c95b9")] + +// Сведения о версии сборки состоят из указанных ниже четырех значений: +// +// Основной номер версии +// Дополнительный номер версии +// Номер сборки +// Номер редакции +// +// Можно задать все значения или принять номера сборки и редакции по умолчанию +// используя "*", как показано ниже: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/ProgramFirstLesson/Hw4/bin/Debug/Hw4.exe b/ProgramFirstLesson/Hw4/bin/Debug/Hw4.exe new file mode 100644 index 0000000..034df0d Binary files /dev/null and b/ProgramFirstLesson/Hw4/bin/Debug/Hw4.exe differ diff --git a/ProgramFirstLesson/Hw4/bin/Debug/Hw4.exe.config b/ProgramFirstLesson/Hw4/bin/Debug/Hw4.exe.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/ProgramFirstLesson/Hw4/bin/Debug/Hw4.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ProgramFirstLesson/Hw4/bin/Debug/Hw4.pdb b/ProgramFirstLesson/Hw4/bin/Debug/Hw4.pdb new file mode 100644 index 0000000..4d8c061 Binary files /dev/null and b/ProgramFirstLesson/Hw4/bin/Debug/Hw4.pdb differ diff --git a/ProgramFirstLesson/Hw4/bin/Debug/ProgramFirstLesson.exe b/ProgramFirstLesson/Hw4/bin/Debug/ProgramFirstLesson.exe new file mode 100644 index 0000000..0f4ff0c Binary files /dev/null and b/ProgramFirstLesson/Hw4/bin/Debug/ProgramFirstLesson.exe differ diff --git a/ProgramFirstLesson/Hw4/bin/Debug/ProgramFirstLesson.exe.config b/ProgramFirstLesson/Hw4/bin/Debug/ProgramFirstLesson.exe.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/ProgramFirstLesson/Hw4/bin/Debug/ProgramFirstLesson.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ProgramFirstLesson/Hw4/bin/Debug/ProgramFirstLesson.pdb b/ProgramFirstLesson/Hw4/bin/Debug/ProgramFirstLesson.pdb new file mode 100644 index 0000000..3ff5bfc Binary files /dev/null and b/ProgramFirstLesson/Hw4/bin/Debug/ProgramFirstLesson.pdb differ diff --git a/ProgramFirstLesson/Hw4/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs b/ProgramFirstLesson/Hw4/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs new file mode 100644 index 0000000..15efebf --- /dev/null +++ b/ProgramFirstLesson/Hw4/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] diff --git a/ProgramFirstLesson/Hw4/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/ProgramFirstLesson/Hw4/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..3881bab Binary files /dev/null and b/ProgramFirstLesson/Hw4/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/ProgramFirstLesson/Hw4/obj/Debug/Hw4.csproj.CopyComplete b/ProgramFirstLesson/Hw4/obj/Debug/Hw4.csproj.CopyComplete new file mode 100644 index 0000000..e69de29 diff --git a/ProgramFirstLesson/Hw4/obj/Debug/Hw4.csproj.CoreCompileInputs.cache b/ProgramFirstLesson/Hw4/obj/Debug/Hw4.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..8d886ed --- /dev/null +++ b/ProgramFirstLesson/Hw4/obj/Debug/Hw4.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +c21f2da4e9c3808fb93d0866d23d4bf35ebf9a60 diff --git a/ProgramFirstLesson/Hw4/obj/Debug/Hw4.csproj.FileListAbsolute.txt b/ProgramFirstLesson/Hw4/obj/Debug/Hw4.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..767a409 --- /dev/null +++ b/ProgramFirstLesson/Hw4/obj/Debug/Hw4.csproj.FileListAbsolute.txt @@ -0,0 +1,11 @@ +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw4\bin\Debug\Hw4.exe.config +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw4\bin\Debug\Hw4.exe +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw4\bin\Debug\Hw4.pdb +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw4\bin\Debug\ProgramFirstLesson.exe +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw4\bin\Debug\ProgramFirstLesson.pdb +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw4\bin\Debug\ProgramFirstLesson.exe.config +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw4\obj\Debug\Hw4.csprojAssemblyReference.cache +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw4\obj\Debug\Hw4.csproj.CoreCompileInputs.cache +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw4\obj\Debug\Hw4.csproj.CopyComplete +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw4\obj\Debug\Hw4.exe +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw4\obj\Debug\Hw4.pdb diff --git a/ProgramFirstLesson/Hw4/obj/Debug/Hw4.csprojAssemblyReference.cache b/ProgramFirstLesson/Hw4/obj/Debug/Hw4.csprojAssemblyReference.cache new file mode 100644 index 0000000..666eedd Binary files /dev/null and b/ProgramFirstLesson/Hw4/obj/Debug/Hw4.csprojAssemblyReference.cache differ diff --git a/ProgramFirstLesson/Hw4/obj/Debug/Hw4.exe b/ProgramFirstLesson/Hw4/obj/Debug/Hw4.exe new file mode 100644 index 0000000..034df0d Binary files /dev/null and b/ProgramFirstLesson/Hw4/obj/Debug/Hw4.exe differ diff --git a/ProgramFirstLesson/Hw4/obj/Debug/Hw4.pdb b/ProgramFirstLesson/Hw4/obj/Debug/Hw4.pdb new file mode 100644 index 0000000..4d8c061 Binary files /dev/null and b/ProgramFirstLesson/Hw4/obj/Debug/Hw4.pdb differ diff --git a/ProgramFirstLesson/Hw5/App.config b/ProgramFirstLesson/Hw5/App.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/ProgramFirstLesson/Hw5/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ProgramFirstLesson/Hw5/Hw5.csproj b/ProgramFirstLesson/Hw5/Hw5.csproj new file mode 100644 index 0000000..044c313 --- /dev/null +++ b/ProgramFirstLesson/Hw5/Hw5.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {B0AF5154-31ED-4521-88EB-E553D4600FB3} + Exe + Hw5 + Hw5 + v4.8 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + {179f6e9c-8ed7-4184-a473-dd5ef6a40daa} + NameSpaceLesson1 + + + + \ No newline at end of file diff --git a/ProgramFirstLesson/Hw5/Program.cs b/ProgramFirstLesson/Hw5/Program.cs new file mode 100644 index 0000000..15bbd55 --- /dev/null +++ b/ProgramFirstLesson/Hw5/Program.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Hw5 +{ + class Program + { + static void Main(string[] args) + { + # region Считывание данных пользователя + string surname, name, town; + Console.Write("Введите фамилию: "); + surname = Console.ReadLine(); + Console.Write("Введите имя: "); + name = Console.ReadLine(); + Console.Write("Введите город проживания: "); + town = Console.ReadLine(); + #endregion + #region Вывод фамилии, имени и города в разных частях экрана + Console.WriteLine($"Фамилия: {surname}. Имя: {name}. Город проживания: {town}."); + Console.WriteLine($"Для вывода в центре экрана нажмите любую клавишу"); + Console.ReadKey(); + Console.Clear(); + var line = "Фамилия: " + surname + ". Имя: " + name + ". Город проживания: " + town + "."; + NameSpaceLesson1.Program.WriteCenter(surname, name, town, line); + #endregion + NameSpaceLesson1.Program.CloseProgrammKey(); + } + } +} diff --git a/ProgramFirstLesson/Hw5/Properties/AssemblyInfo.cs b/ProgramFirstLesson/Hw5/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..e8cddf9 --- /dev/null +++ b/ProgramFirstLesson/Hw5/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Общие сведения об этой сборке предоставляются следующим набором +// набора атрибутов. Измените значения этих атрибутов для изменения сведений, +// связанные с этой сборкой. +[assembly: AssemblyTitle("Hw5")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Hw5")] +[assembly: AssemblyCopyright("Copyright © 2020")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми +// для компонентов COM. Если необходимо обратиться к типу в этой сборке через +// из модели COM задайте для атрибута ComVisible этого типа значение true. +[assembly: ComVisible(false)] + +// Следующий GUID представляет идентификатор typelib, если этот проект доступен из модели COM +[assembly: Guid("b0af5154-31ed-4521-88eb-e553d4600fb3")] + +// Сведения о версии сборки состоят из указанных ниже четырех значений: +// +// Основной номер версии +// Дополнительный номер версии +// Номер сборки +// Номер редакции +// +// Можно задать все значения или принять номера сборки и редакции по умолчанию +// используя "*", как показано ниже: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/ProgramFirstLesson/Hw5/bin/Debug/Hw5.exe b/ProgramFirstLesson/Hw5/bin/Debug/Hw5.exe new file mode 100644 index 0000000..77f3f67 Binary files /dev/null and b/ProgramFirstLesson/Hw5/bin/Debug/Hw5.exe differ diff --git a/ProgramFirstLesson/Hw5/bin/Debug/Hw5.exe.config b/ProgramFirstLesson/Hw5/bin/Debug/Hw5.exe.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/ProgramFirstLesson/Hw5/bin/Debug/Hw5.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ProgramFirstLesson/Hw5/bin/Debug/Hw5.pdb b/ProgramFirstLesson/Hw5/bin/Debug/Hw5.pdb new file mode 100644 index 0000000..8c62c64 Binary files /dev/null and b/ProgramFirstLesson/Hw5/bin/Debug/Hw5.pdb differ diff --git a/ProgramFirstLesson/Hw5/bin/Debug/ProgramFirstLesson.exe b/ProgramFirstLesson/Hw5/bin/Debug/ProgramFirstLesson.exe new file mode 100644 index 0000000..80fb78d Binary files /dev/null and b/ProgramFirstLesson/Hw5/bin/Debug/ProgramFirstLesson.exe differ diff --git a/ProgramFirstLesson/Hw5/bin/Debug/ProgramFirstLesson.exe.config b/ProgramFirstLesson/Hw5/bin/Debug/ProgramFirstLesson.exe.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/ProgramFirstLesson/Hw5/bin/Debug/ProgramFirstLesson.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ProgramFirstLesson/Hw5/bin/Debug/ProgramFirstLesson.pdb b/ProgramFirstLesson/Hw5/bin/Debug/ProgramFirstLesson.pdb new file mode 100644 index 0000000..7a93288 Binary files /dev/null and b/ProgramFirstLesson/Hw5/bin/Debug/ProgramFirstLesson.pdb differ diff --git a/ProgramFirstLesson/Hw5/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs b/ProgramFirstLesson/Hw5/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs new file mode 100644 index 0000000..15efebf --- /dev/null +++ b/ProgramFirstLesson/Hw5/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] diff --git a/ProgramFirstLesson/Hw5/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/ProgramFirstLesson/Hw5/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..55f882a Binary files /dev/null and b/ProgramFirstLesson/Hw5/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/ProgramFirstLesson/Hw5/obj/Debug/Hw5.csproj.CopyComplete b/ProgramFirstLesson/Hw5/obj/Debug/Hw5.csproj.CopyComplete new file mode 100644 index 0000000..e69de29 diff --git a/ProgramFirstLesson/Hw5/obj/Debug/Hw5.csproj.CoreCompileInputs.cache b/ProgramFirstLesson/Hw5/obj/Debug/Hw5.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..8d886ed --- /dev/null +++ b/ProgramFirstLesson/Hw5/obj/Debug/Hw5.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +c21f2da4e9c3808fb93d0866d23d4bf35ebf9a60 diff --git a/ProgramFirstLesson/Hw5/obj/Debug/Hw5.csproj.FileListAbsolute.txt b/ProgramFirstLesson/Hw5/obj/Debug/Hw5.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..47e2274 --- /dev/null +++ b/ProgramFirstLesson/Hw5/obj/Debug/Hw5.csproj.FileListAbsolute.txt @@ -0,0 +1,11 @@ +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw5\bin\Debug\Hw5.exe.config +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw5\bin\Debug\Hw5.exe +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw5\bin\Debug\Hw5.pdb +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw5\bin\Debug\ProgramFirstLesson.exe +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw5\bin\Debug\ProgramFirstLesson.pdb +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw5\bin\Debug\ProgramFirstLesson.exe.config +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw5\obj\Debug\Hw5.csprojAssemblyReference.cache +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw5\obj\Debug\Hw5.csproj.CoreCompileInputs.cache +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw5\obj\Debug\Hw5.csproj.CopyComplete +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw5\obj\Debug\Hw5.exe +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\Hw5\obj\Debug\Hw5.pdb diff --git a/ProgramFirstLesson/Hw5/obj/Debug/Hw5.csprojAssemblyReference.cache b/ProgramFirstLesson/Hw5/obj/Debug/Hw5.csprojAssemblyReference.cache new file mode 100644 index 0000000..d03fae5 Binary files /dev/null and b/ProgramFirstLesson/Hw5/obj/Debug/Hw5.csprojAssemblyReference.cache differ diff --git a/ProgramFirstLesson/Hw5/obj/Debug/Hw5.exe b/ProgramFirstLesson/Hw5/obj/Debug/Hw5.exe new file mode 100644 index 0000000..77f3f67 Binary files /dev/null and b/ProgramFirstLesson/Hw5/obj/Debug/Hw5.exe differ diff --git a/ProgramFirstLesson/Hw5/obj/Debug/Hw5.pdb b/ProgramFirstLesson/Hw5/obj/Debug/Hw5.pdb new file mode 100644 index 0000000..8c62c64 Binary files /dev/null and b/ProgramFirstLesson/Hw5/obj/Debug/Hw5.pdb differ diff --git a/ProgramFirstLesson/ProgramFirstLesson.sln b/ProgramFirstLesson/ProgramFirstLesson.sln new file mode 100644 index 0000000..6212846 --- /dev/null +++ b/ProgramFirstLesson/ProgramFirstLesson.sln @@ -0,0 +1,55 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30413.136 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NameSpaceLesson1", "ProgramFirstLesson\NameSpaceLesson1.csproj", "{179F6E9C-8ED7-4184-A473-DD5EF6A40DAA}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hw1", "Hw1\Hw1.csproj", "{937C7240-E34B-4E95-936F-F49EBBA07B2F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hw2", "Hw2\Hw2.csproj", "{86820D8B-F49D-412F-BC3B-9D292587D90D}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hw3", "Hw3\Hw3.csproj", "{6B66C21C-A0CF-453C-93F8-E58BDDD245BF}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hw4", "Hw4\Hw4.csproj", "{D27F7CC8-3DD3-47AB-8B4C-9556186C95B9}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hw5", "Hw5\Hw5.csproj", "{B0AF5154-31ED-4521-88EB-E553D4600FB3}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {179F6E9C-8ED7-4184-A473-DD5EF6A40DAA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {179F6E9C-8ED7-4184-A473-DD5EF6A40DAA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {179F6E9C-8ED7-4184-A473-DD5EF6A40DAA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {179F6E9C-8ED7-4184-A473-DD5EF6A40DAA}.Release|Any CPU.Build.0 = Release|Any CPU + {937C7240-E34B-4E95-936F-F49EBBA07B2F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {937C7240-E34B-4E95-936F-F49EBBA07B2F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {937C7240-E34B-4E95-936F-F49EBBA07B2F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {937C7240-E34B-4E95-936F-F49EBBA07B2F}.Release|Any CPU.Build.0 = Release|Any CPU + {86820D8B-F49D-412F-BC3B-9D292587D90D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {86820D8B-F49D-412F-BC3B-9D292587D90D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {86820D8B-F49D-412F-BC3B-9D292587D90D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {86820D8B-F49D-412F-BC3B-9D292587D90D}.Release|Any CPU.Build.0 = Release|Any CPU + {6B66C21C-A0CF-453C-93F8-E58BDDD245BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6B66C21C-A0CF-453C-93F8-E58BDDD245BF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6B66C21C-A0CF-453C-93F8-E58BDDD245BF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6B66C21C-A0CF-453C-93F8-E58BDDD245BF}.Release|Any CPU.Build.0 = Release|Any CPU + {D27F7CC8-3DD3-47AB-8B4C-9556186C95B9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D27F7CC8-3DD3-47AB-8B4C-9556186C95B9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D27F7CC8-3DD3-47AB-8B4C-9556186C95B9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D27F7CC8-3DD3-47AB-8B4C-9556186C95B9}.Release|Any CPU.Build.0 = Release|Any CPU + {B0AF5154-31ED-4521-88EB-E553D4600FB3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B0AF5154-31ED-4521-88EB-E553D4600FB3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B0AF5154-31ED-4521-88EB-E553D4600FB3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B0AF5154-31ED-4521-88EB-E553D4600FB3}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {18A1FDC5-F2BF-4D2C-A7E2-443E44BAC525} + EndGlobalSection +EndGlobal diff --git a/ProgramFirstLesson/ProgramFirstLesson/App.config b/ProgramFirstLesson/ProgramFirstLesson/App.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/ProgramFirstLesson/ProgramFirstLesson/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ProgramFirstLesson/ProgramFirstLesson/NameSpaceLesson1.csproj b/ProgramFirstLesson/ProgramFirstLesson/NameSpaceLesson1.csproj new file mode 100644 index 0000000..1bd1049 --- /dev/null +++ b/ProgramFirstLesson/ProgramFirstLesson/NameSpaceLesson1.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {179F6E9C-8ED7-4184-A473-DD5EF6A40DAA} + Exe + ProgramFirstLesson + ProgramFirstLesson + v4.8 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ProgramFirstLesson/ProgramFirstLesson/Program.cs b/ProgramFirstLesson/ProgramFirstLesson/Program.cs new file mode 100644 index 0000000..964b0da --- /dev/null +++ b/ProgramFirstLesson/ProgramFirstLesson/Program.cs @@ -0,0 +1,137 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + + +namespace NameSpaceLesson1 //Это задание 6 +{ + public class Program + { + static void Main(string[] args) + { + # region Считывание данных пользователя + string surname, name, age, town; + int height, weight; + ReadUserData(out surname, out name, out age, out height, out weight, out town); + #endregion + #region Конкатинация строк + Console.WriteLine("Фамилия: " + surname + ". Имя: " + name + ". Возраст: " + age + ". Рост: " + height + ". Вес: " + weight + "."); + #endregion + #region Форматированный вывод + Console.WriteLine("Фамилия: {0}. Имя: {1}. Возраст: {2}. Рост: {3}. Вес: {4}.", surname, name, age, height, weight); + #endregion + #region Интерполированный вывод + Console.WriteLine($"Фамилия: {surname}. Имя: {name}. Возраст: {age}. Рост: {height}. Вес: {weight}."); + #endregion + #region Вывод массы тела + Console.WriteLine($"Индекс массы тела в кг/м^2: {weight * 10000 / (height * height)}."); + #endregion + #region Ввод координат 2 точек для подсчёта расстояния + Console.WriteLine("Для подсчёта расстояния между 2 точками введи их координаты: "); + double x1, y1, x2, y2; + ReadingTwoCoordinats(out x1, out y1, out x2, out y2); + #endregion + #region Вывод расстояния между 2 точками + CalculatingDistance(x1, y1, x2, y2); + #endregion + #region Обмен значениями двух переменных с использованием третьей + ChangeTwoVariables(); + #endregion + #region Обмен числовых переменных без третьей переменной: + int a = 1; + int b = 2; + a = a + b; + b = a - b; + a = a - b; + #endregion + #region Вывод фамилии, имени и города в разных частях экрана + Console.WriteLine($"Фамилия: {surname}. Имя: {name}. Город проживания: {town}."); + Console.WriteLine($"Для продолжения нажмите любую клавишу"); + Console.ReadKey(); + Console.Clear(); + var line = "Фамилия: " + surname + ". Имя: " + name + ". Город проживания: " + town + "."; + WriteCenter(surname, name, town, line); + #endregion + #region Подпись + EndProgramm(); + #endregion + CloseProgrammKey(); + } + #region Метод окончания программы + public static void EndProgramm() + { + Console.WriteLine("(c) Автор программы Жирнов Олег. 2020 г"); + } + #endregion + #region Метод вывода в центре экрана + public static void WriteCenter(string surname, string name, string town, string line) + { + Console.SetCursorPosition(Console.WindowWidth / 2 - line.Length / 2, Console.WindowHeight / 2); + Console.WriteLine($"Фамилия: {surname}. Имя: {name}. Город проживания: {town}."); + } + #endregion + #region Метод закрытия программы по кнопке + public static void CloseProgrammKey() + { + Console.SetCursorPosition(Console.WindowWidth / 2 - "Для выхода из программы нажмите любую клавишу".Length / 2, Console.WindowHeight / 2 + 1); + Console.WriteLine($"Для выхода из программы нажмите любую клавишу"); + Console.ReadKey(); + } + #endregion + #region Метод обмена значениями двух переменных с использованием третьей + public static void ChangeTwoVariables() + { + Console.WriteLine("Обмен значениями двух переменных."); + Console.Write("Введите значение первой переменной: "); + var variable1 = Console.ReadLine(); + Console.Write("Введите значение второй переменной: "); + var variable2 = Console.ReadLine(); + var i = variable1; + variable1 = variable2; + variable2 = i; + Console.WriteLine($"Первая переменная теперь: {variable1}."); + Console.WriteLine($"Вторая переменная теперь: {variable2}."); + } + #endregion + #region Метод считывания координат 2 точек + public static void ReadingTwoCoordinats(out double x1, out double y1, out double x2, out double y2) + { + Console.Write("Введите значение по оси координат X для первой точки: "); + x1 = Convert.ToDouble(Console.ReadLine()); + Console.Write("Введите значение по оси координат Y для первой точки: "); + y1 = Convert.ToDouble(Console.ReadLine()); + Console.Write("Введите значение по оси координат X для второй точки: "); + x2 = Convert.ToDouble(Console.ReadLine()); + Console.Write("Введите значение по оси координат Y для второй точки: "); + y2 = Convert.ToDouble(Console.ReadLine()); + } + #endregion + #region Метод считывания данных пользователя для Анкеты + public static void ReadUserData(out string surname, out string name, out string age, out int height, out int weight, out string town) + { + Console.Write("Введите фамилию: "); + surname = Console.ReadLine(); + Console.Write("Введите имя: "); + name = Console.ReadLine(); + Console.Write("Введите возраст: "); + age = Console.ReadLine(); + Console.Write("Введите рост в сантиметрах: "); + height = int.Parse(Console.ReadLine()); + Console.Write("Введите вес в килограммах: "); + weight = int.Parse(Console.ReadLine()); + Console.Write("Введите город проживания: "); + town = Console.ReadLine(); + } + #endregion + #region Метод подсчёта расстояния между точками + public static void CalculatingDistance(double x1, double y1, double x2, double y2) + { + double r = Math.Sqrt(Math.Pow(x2 - x1, 2) + Math.Pow(y2 - y1, 2)); + Console.WriteLine($"Расстояние между заданными точками: {r:f2}."); + } + #endregion + + } +} diff --git a/ProgramFirstLesson/ProgramFirstLesson/Properties/AssemblyInfo.cs b/ProgramFirstLesson/ProgramFirstLesson/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..97ce912 --- /dev/null +++ b/ProgramFirstLesson/ProgramFirstLesson/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Общие сведения об этой сборке предоставляются следующим набором +// набора атрибутов. Измените значения этих атрибутов для изменения сведений, +// связанные с этой сборкой. +[assembly: AssemblyTitle("ProgramFirstLesson")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ProgramFirstLesson")] +[assembly: AssemblyCopyright("Copyright © 2020")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми +// для компонентов COM. Если необходимо обратиться к типу в этой сборке через +// из модели COM задайте для атрибута ComVisible этого типа значение true. +[assembly: ComVisible(false)] + +// Следующий GUID представляет идентификатор typelib, если этот проект доступен из модели COM +[assembly: Guid("179f6e9c-8ed7-4184-a473-dd5ef6a40daa")] + +// Сведения о версии сборки состоят из указанных ниже четырех значений: +// +// Основной номер версии +// Дополнительный номер версии +// Номер сборки +// Номер редакции +// +// Можно задать все значения или принять номера сборки и редакции по умолчанию +// используя "*", как показано ниже: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/ProgramFirstLesson/ProgramFirstLesson/bin/Debug/ProgramFirstLesson.exe b/ProgramFirstLesson/ProgramFirstLesson/bin/Debug/ProgramFirstLesson.exe new file mode 100644 index 0000000..80fb78d Binary files /dev/null and b/ProgramFirstLesson/ProgramFirstLesson/bin/Debug/ProgramFirstLesson.exe differ diff --git a/ProgramFirstLesson/ProgramFirstLesson/bin/Debug/ProgramFirstLesson.exe.config b/ProgramFirstLesson/ProgramFirstLesson/bin/Debug/ProgramFirstLesson.exe.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/ProgramFirstLesson/ProgramFirstLesson/bin/Debug/ProgramFirstLesson.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ProgramFirstLesson/ProgramFirstLesson/bin/Debug/ProgramFirstLesson.pdb b/ProgramFirstLesson/ProgramFirstLesson/bin/Debug/ProgramFirstLesson.pdb new file mode 100644 index 0000000..7a93288 Binary files /dev/null and b/ProgramFirstLesson/ProgramFirstLesson/bin/Debug/ProgramFirstLesson.pdb differ diff --git a/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs b/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs new file mode 100644 index 0000000..15efebf --- /dev/null +++ b/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] diff --git a/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..a2a5334 Binary files /dev/null and b/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/NameSpaceLesson1.csproj.CoreCompileInputs.cache b/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/NameSpaceLesson1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..0c63285 --- /dev/null +++ b/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/NameSpaceLesson1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +2f1b5aa9ca9324e732c8dc8ad98b9a6b4836d80a diff --git a/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/NameSpaceLesson1.csproj.FileListAbsolute.txt b/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/NameSpaceLesson1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..e65baed --- /dev/null +++ b/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/NameSpaceLesson1.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\ProgramFirstLesson\bin\Debug\ProgramFirstLesson.exe.config +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\ProgramFirstLesson\bin\Debug\ProgramFirstLesson.exe +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\ProgramFirstLesson\bin\Debug\ProgramFirstLesson.pdb +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\ProgramFirstLesson\obj\Debug\NameSpaceLesson1.csprojAssemblyReference.cache +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\ProgramFirstLesson\obj\Debug\NameSpaceLesson1.csproj.CoreCompileInputs.cache +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\ProgramFirstLesson\obj\Debug\ProgramFirstLesson.exe +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\ProgramFirstLesson\obj\Debug\ProgramFirstLesson.pdb diff --git a/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/NameSpaceLesson1.csprojAssemblyReference.cache b/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/NameSpaceLesson1.csprojAssemblyReference.cache new file mode 100644 index 0000000..8b2ee19 Binary files /dev/null and b/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/NameSpaceLesson1.csprojAssemblyReference.cache differ diff --git a/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/ProgramFirstLesson.csproj.CoreCompileInputs.cache b/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/ProgramFirstLesson.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..0c63285 --- /dev/null +++ b/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/ProgramFirstLesson.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +2f1b5aa9ca9324e732c8dc8ad98b9a6b4836d80a diff --git a/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/ProgramFirstLesson.csproj.FileListAbsolute.txt b/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/ProgramFirstLesson.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..deaec2c --- /dev/null +++ b/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/ProgramFirstLesson.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\ProgramFirstLesson\obj\Debug\ProgramFirstLesson.csprojAssemblyReference.cache +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\ProgramFirstLesson\obj\Debug\ProgramFirstLesson.csproj.CoreCompileInputs.cache +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\ProgramFirstLesson\bin\Debug\ProgramFirstLesson.exe.config +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\ProgramFirstLesson\bin\Debug\ProgramFirstLesson.exe +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\ProgramFirstLesson\bin\Debug\ProgramFirstLesson.pdb +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\ProgramFirstLesson\obj\Debug\ProgramFirstLesson.exe +D:\ProgrC#\ProgrammFirstLesson\ProgramFirstLesson\ProgramFirstLesson\obj\Debug\ProgramFirstLesson.pdb diff --git a/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/ProgramFirstLesson.csprojAssemblyReference.cache b/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/ProgramFirstLesson.csprojAssemblyReference.cache new file mode 100644 index 0000000..3e3c969 Binary files /dev/null and b/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/ProgramFirstLesson.csprojAssemblyReference.cache differ diff --git a/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/ProgramFirstLesson.exe b/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/ProgramFirstLesson.exe new file mode 100644 index 0000000..80fb78d Binary files /dev/null and b/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/ProgramFirstLesson.exe differ diff --git a/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/ProgramFirstLesson.pdb b/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/ProgramFirstLesson.pdb new file mode 100644 index 0000000..7a93288 Binary files /dev/null and b/ProgramFirstLesson/ProgramFirstLesson/obj/Debug/ProgramFirstLesson.pdb differ