diff --git a/C# Labs 2 semester/6Lab_Programming_Polimorphism-master/Classes.cpp b/C# Labs 2 semester/6Lab_Programming_Polimorphism-master/Classes.cpp new file mode 100644 index 0000000..64e04fb --- /dev/null +++ b/C# Labs 2 semester/6Lab_Programming_Polimorphism-master/Classes.cpp @@ -0,0 +1,64 @@ +#include "Header.h" +Symbols::Symbols(string _str) +{ + str = _str; +} + +int Symbols::Length() +{ + return str.length(); +} + +void Symbols::Decrement() +{ + string NewStr = ""; + int count = 1; + while (str[count] != '\0') + { + NewStr += str[count]; + ++count; + if (str[count] == '\0') + { + break; + } + ++count; + } + str = NewStr; +} + +string Symbols::GetData() +{ + return str; +} + +Numbers::Numbers(string _str) +{ + str = _str; +} + +int Numbers::Length() +{ + return str.length(); +} + +void Numbers::Decrement() +{ + string NewStr = ""; + int count = 0; + while (str[count] != '\0') + { + NewStr += str[count]; + ++count; + if (str[count] == '\0') + { + break; + } + ++count; + } + str = NewStr; +} + +string Numbers::GetData() +{ + return str; +} \ No newline at end of file diff --git a/C# Labs 2 semester/6Lab_Programming_Polimorphism-master/Classes.cs b/C# Labs 2 semester/6Lab_Programming_Polimorphism-master/Classes.cs new file mode 100644 index 0000000..a77030b --- /dev/null +++ b/C# Labs 2 semester/6Lab_Programming_Polimorphism-master/Classes.cs @@ -0,0 +1,66 @@ +using System; + +namespace Lab6Polymorphism +{ + abstract public class Lines + { + abstract public int Length(); + abstract public void Decrement(); + } + public class Symbols : Lines + { + private string str; + public Symbols(string _str) + { + str = _str; + } + public override int Length() + { + return str.Length; + } + public override void Decrement() + { + string NewStr = ""; + int count = 1; + while (count < str.Length) + { + NewStr += str[count]; + count += 2; + } + str = NewStr; + } + public string GetData() + { + return str; + } + } + + public class Numbers : Lines + { + private string str; + public Numbers(string _str) + { + str = _str; + } + public override int Length() + { + return str.Length; + } + public override void Decrement() + { + string NewStr = ""; + int count = 0; + while (count < str.Length) + { + NewStr += str[count]; + count += 2; + } + str = NewStr; + } + public string GetData() + { + return str; + } + } + +} \ No newline at end of file diff --git a/C# Labs 2 semester/6Lab_Programming_Polimorphism-master/Header.h b/C# Labs 2 semester/6Lab_Programming_Polimorphism-master/Header.h new file mode 100644 index 0000000..ab0e8d1 --- /dev/null +++ b/C# Labs 2 semester/6Lab_Programming_Polimorphism-master/Header.h @@ -0,0 +1,32 @@ +#include +#include +using namespace std; + +class Lines +{ +public: + virtual int Length() = 0; + virtual void Decrement() = 0; +}; + +class Symbols : Lines +{ +private: + string str; +public: + Symbols(string _str); + virtual int Length(); + virtual void Decrement(); + string GetData(); +}; + +class Numbers : Lines +{ +private: + string str; +public: + Numbers(string _str); + virtual int Length(); + virtual void Decrement(); + string GetData(); +}; \ No newline at end of file diff --git a/C# Labs 2 semester/6Lab_Programming_Polimorphism-master/Lab6Programming.cpp b/C# Labs 2 semester/6Lab_Programming_Polimorphism-master/Lab6Programming.cpp new file mode 100644 index 0000000..8e3df60 --- /dev/null +++ b/C# Labs 2 semester/6Lab_Programming_Polimorphism-master/Lab6Programming.cpp @@ -0,0 +1,19 @@ +#include "Header.h" + +int main() +{ + string Str = "MilkShakeIt"; + Symbols First(Str); + cout << Str << endl; + cout << First.Length() << endl; + First.Decrement(); + cout << First.GetData() << "\n\n"; + + Str = "Amsterdam"; + Numbers Second(Str); + cout << Str << endl; + cout << Second.Length() << endl; + Second.Decrement(); + cout << Second.GetData() << "\n\n"; +} + diff --git a/C# Labs 2 semester/6Lab_Programming_Polimorphism-master/Program.cs b/C# Labs 2 semester/6Lab_Programming_Polimorphism-master/Program.cs new file mode 100644 index 0000000..8bf5df3 --- /dev/null +++ b/C# Labs 2 semester/6Lab_Programming_Polimorphism-master/Program.cs @@ -0,0 +1,24 @@ +using System; + +namespace Lab6Polymorphism +{ + class Program + { + static void Main() + { + string Str = "Strawberry"; + Symbols First = new Symbols(Str); + Console.WriteLine(Str); + Console.WriteLine(First.Length()); + First.Decrement(); + Console.WriteLine(First.GetData()); + + Str = "Banana"; + Numbers Second = new Numbers(Str); + Console.WriteLine(Str); + Console.WriteLine(Second.Length()); + Second.Decrement(); + Console.WriteLine(Second.GetData()); + } + } +} diff --git a/C# Labs 2 semester/7LabProgram-master/7LabProgramC++.cpp b/C# Labs 2 semester/7LabProgram-master/7LabProgramC++.cpp new file mode 100644 index 0000000..704b2d3 --- /dev/null +++ b/C# Labs 2 semester/7LabProgram-master/7LabProgramC++.cpp @@ -0,0 +1,30 @@ +#include "Header.h" + +int main() +{ + double** array = new double* [4]; + array[0] = new double[4]{ 2.4, 5.5, 3.8, -3 }; + array[1] = new double[4]{ 0, 2.1, 8.4, 1.0 }; + array[2] = new double[4]{ -8.6, 0, 5.5, 2 }; + array[3] = new double[4]{ -1, 3, 2, 4 }; + + Expression exp1(array[0]); + Expression exp2(array[1]); + Expression exp3(array[2]); + Expression exp4(array[3]); + Expression* Exp = new Expression[4]{ exp1,exp2,exp3,exp4 }; + double result; + for (int i = 0; i < 4; i++) + { + try + { + result = Exp[i].Calculation(); + cout << result << endl; + } + catch (const char* error) + { + cout << error << endl; + } + cout << endl; + } +} \ No newline at end of file diff --git a/C# Labs 2 semester/7LabProgram-master/Equation.cs b/C# Labs 2 semester/7LabProgram-master/Equation.cs new file mode 100644 index 0000000..0f3a912 --- /dev/null +++ b/C# Labs 2 semester/7LabProgram-master/Equation.cs @@ -0,0 +1,47 @@ +using System; + +namespace Library +{ + class Equation + { + private double a, b, c, d; + + public Equation(double a, double b, double c, double d) + { + this.a = a; + this.b = b; + this.c = c; + this.d = d; + } + + public double Calculation() + { + try + { + double UpPart = 4 * Math.Log(a / b) + 1; + double DownPart = c + b - d + a; + if(DownPart == 0) + { + throw new Exception("Error: The subcortical expression less than 0"); + } + else if (UpPart == 0 && b == 0) + { + throw new Exception("Error: Division by zero"); + } + else if (a / b <= 0) + { + throw new Exception("Error: Used number in logarithm <= 0"); + } + else + { + return UpPart / DownPart; + } + } + catch(Exception error) + { + Console.WriteLine(error.Message); + return 0; + } + } + } +} diff --git a/C# Labs 2 semester/7LabProgram-master/Expression.cpp b/C# Labs 2 semester/7LabProgram-master/Expression.cpp new file mode 100644 index 0000000..759eb66 --- /dev/null +++ b/C# Labs 2 semester/7LabProgram-master/Expression.cpp @@ -0,0 +1,43 @@ +#include "Header.h" + +Expression::Expression(double* array) +{ + a = array[0]; + b = array[1]; + c = array[2]; + d = array[3]; +} + +double Expression::Calculation() +{ + try + { + double UpPart = 4 * log(a / b) + 1; + double DownPart = c + b - d + a; + if (DownPart == 0) + { + throw ("Error: The subcortical expression less than 0"); + } + else if (UpPart == 0 && b == 0) + { + throw ("Error: Division by zero"); + } + else if (a / b <= 0) + { + throw ("Error: Used number in logarithm <= 0"); + } + else + { + return UpPart / DownPart; + } + } + catch (const char* error) + { + cout << error << endl; + return 0; + } +} + +Expression:: ~Expression() +{ +} \ No newline at end of file diff --git a/C# Labs 2 semester/7LabProgram-master/Header.h b/C# Labs 2 semester/7LabProgram-master/Header.h new file mode 100644 index 0000000..ccf0f9b --- /dev/null +++ b/C# Labs 2 semester/7LabProgram-master/Header.h @@ -0,0 +1,12 @@ +#include +#include +using namespace std; + +class Expression +{ +private: double a, b, c, d; +public: + Expression(double*); + double Calculation(); + ~Expression(); +}; diff --git a/C# Labs 2 semester/7LabProgram-master/Program.cs b/C# Labs 2 semester/7LabProgram-master/Program.cs new file mode 100644 index 0000000..34fe00a --- /dev/null +++ b/C# Labs 2 semester/7LabProgram-master/Program.cs @@ -0,0 +1,35 @@ +using System; +using Library; +using System.Collections.Generic; + +namespace _7LabProgram +{ + class Program + { + static void Main(string[] args) + { + int n = 4; + var Equation = new List(n) + { + new Equation(0.5, 6, 6, 1), + new Equation(0, -4, 9, 3), + new Equation(-8, 0, 5, 2), + new Equation(-1, 2, 3, 4) + }; + + for (int i = 0; i < n; i++) + { + try + { + double Result = Equation[i].Calculation(); + Console.WriteLine($"{Result}"); + } + catch (Exception error) + { + Console.WriteLine(error.Message); + } + Console.WriteLine(); + } + } + } +} diff --git a/C# Labs 2 semester/8lab-program-master/8LabProgram/8LabProgram.csproj b/C# Labs 2 semester/8lab-program-master/8LabProgram/8LabProgram.csproj new file mode 100644 index 0000000..a6c7655 --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/8LabProgram/8LabProgram.csproj @@ -0,0 +1,9 @@ + + + + Exe + netcoreapp3.1 + _8LabProgram + + + diff --git a/C# Labs 2 semester/8lab-program-master/8LabProgram/8LabProgram.sln b/C# Labs 2 semester/8lab-program-master/8LabProgram/8LabProgram.sln new file mode 100644 index 0000000..963b9c2 --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/8LabProgram/8LabProgram.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30907.101 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "8LabProgram", "8LabProgram.csproj", "{691CD4A7-7F86-4C36-BFB5-99CA55B0A606}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {691CD4A7-7F86-4C36-BFB5-99CA55B0A606}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {691CD4A7-7F86-4C36-BFB5-99CA55B0A606}.Debug|Any CPU.Build.0 = Debug|Any CPU + {691CD4A7-7F86-4C36-BFB5-99CA55B0A606}.Release|Any CPU.ActiveCfg = Release|Any CPU + {691CD4A7-7F86-4C36-BFB5-99CA55B0A606}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {207E65D3-6426-4A72-B077-FE3CEAC421FD} + EndGlobalSection +EndGlobal diff --git a/C# Labs 2 semester/8lab-program-master/8LabProgram/Class.cs b/C# Labs 2 semester/8lab-program-master/8LabProgram/Class.cs new file mode 100644 index 0000000..02f07ad --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/8LabProgram/Class.cs @@ -0,0 +1,131 @@ +using System; +using System.Collections.Generic; +using System.Collections; + +namespace Library +{ + public class DoubleList + { + Node Head; + Node Tail; + public int Size { get; private set; } + public void FirstAdd(double data) + { + Node node = new Node(data); + Node temp = Head; + node.Next = temp; + Head = node; + if (Size == 0) + Tail = Head; + else + temp.Previous = node; + Size++; + } + + public IEnumerator GetEnumerator() + { + Node current = Head; + while (current != null) + { + yield return current.Data; + current = current.Next; + } + } + + public double Sum() + { + Node current = Head; + double sum = 0d; + while (current != null) + { + sum += current.Data; + current = current.Next; + } + return sum; + } + + public int LessThanAverage() + { + Node current = Head; + int counter = 0; + double data; + double sum = Sum(); + double Average = sum / Size; + while (current != null) + { + data = current.Data; + if (data < Average) counter++; + current = current.Next; + } + return counter; + } + + public bool Delete(double data) + { + Node current = Head; + while (current != null) + { + if (current.Data.Equals(data)) + break; + current = current.Next; + } + if (current != null) + { + if (current.Next != null) + { + current.Next.Previous = current.Previous; + } + else + { + Tail = current.Previous; + } + if (current.Previous != null) + { + current.Previous.Next = current.Next; + } + else + { + Head = current.Next; + } + Size--; + return true; + } + return false; + } + + private Node FindMaxNode() + { + Node current = Head; + Node max = current; + + while (current != null) + { + if (max.Data <= current.Data) max = current; + current = current.Next; + } + return max; + } + + public double MaxNode() + { + return FindMaxNode().Data; + } + + public void DeleteToMax() + { + Node max = FindMaxNode(); + Node current = Tail; + while (current != max) + { + current = current.Previous; + } + current = current.Previous; + + while (current != null) + { + Delete(current.Data); + current = current.Previous; + } + } + } +} diff --git a/C# Labs 2 semester/8lab-program-master/8LabProgram/Node.cs b/C# Labs 2 semester/8lab-program-master/8LabProgram/Node.cs new file mode 100644 index 0000000..676bf23 --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/8LabProgram/Node.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; + +namespace Library +{ + public class Node + { + public Node Next { get; set; } + public Node Previous { get; set; } + public double Data { get; set; } + public Node(double data) + { + Data = data; + } + } +} diff --git a/C# Labs 2 semester/8lab-program-master/8LabProgram/Program.cs b/C# Labs 2 semester/8lab-program-master/8LabProgram/Program.cs new file mode 100644 index 0000000..c208a26 --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/8LabProgram/Program.cs @@ -0,0 +1,36 @@ +using System; +using Library; + +namespace _8LabProgram +{ + class Program + { + static void Main(string[] args) + { + DoubleList list = new DoubleList(); + list.FirstAdd(13.5); + list.FirstAdd(5.5); + list.FirstAdd(333); + list.FirstAdd(2.5); + list.FirstAdd(1.57); + list.FirstAdd(23); + list.FirstAdd(214.5); + + foreach (var l in list) + { + Console.Write(l + " "); + } + Console.WriteLine(); + Console.WriteLine(list.Sum() / list.Size); + Console.WriteLine(list.LessThanAverage()); + Console.WriteLine(list.Sum()); + Console.WriteLine(list.MaxNode()); + list.DeleteToMax(); + foreach (var l in list) + { + Console.Write(l + " "); + } + Console.WriteLine(); + } + } +} diff --git a/C# Labs 2 semester/8lab-program-master/8LabProgram/bin/Debug/netcoreapp3.1/8LabProgram.deps.json b/C# Labs 2 semester/8lab-program-master/8LabProgram/bin/Debug/netcoreapp3.1/8LabProgram.deps.json new file mode 100644 index 0000000..f5d4bc1 --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/8LabProgram/bin/Debug/netcoreapp3.1/8LabProgram.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v3.1", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v3.1": { + "8LabProgram/1.0.0": { + "runtime": { + "8LabProgram.dll": {} + } + } + } + }, + "libraries": { + "8LabProgram/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/C# Labs 2 semester/8lab-program-master/8LabProgram/bin/Debug/netcoreapp3.1/8LabProgram.dll b/C# Labs 2 semester/8lab-program-master/8LabProgram/bin/Debug/netcoreapp3.1/8LabProgram.dll new file mode 100644 index 0000000..f444d51 Binary files /dev/null and b/C# Labs 2 semester/8lab-program-master/8LabProgram/bin/Debug/netcoreapp3.1/8LabProgram.dll differ diff --git a/C# Labs 2 semester/8lab-program-master/8LabProgram/bin/Debug/netcoreapp3.1/8LabProgram.exe b/C# Labs 2 semester/8lab-program-master/8LabProgram/bin/Debug/netcoreapp3.1/8LabProgram.exe new file mode 100644 index 0000000..2c3eec2 Binary files /dev/null and b/C# Labs 2 semester/8lab-program-master/8LabProgram/bin/Debug/netcoreapp3.1/8LabProgram.exe differ diff --git a/C# Labs 2 semester/8lab-program-master/8LabProgram/bin/Debug/netcoreapp3.1/8LabProgram.pdb b/C# Labs 2 semester/8lab-program-master/8LabProgram/bin/Debug/netcoreapp3.1/8LabProgram.pdb new file mode 100644 index 0000000..0ea179c Binary files /dev/null and b/C# Labs 2 semester/8lab-program-master/8LabProgram/bin/Debug/netcoreapp3.1/8LabProgram.pdb differ diff --git a/C# Labs 2 semester/8lab-program-master/8LabProgram/bin/Debug/netcoreapp3.1/8LabProgram.runtimeconfig.dev.json b/C# Labs 2 semester/8lab-program-master/8LabProgram/bin/Debug/netcoreapp3.1/8LabProgram.runtimeconfig.dev.json new file mode 100644 index 0000000..a7ae1f7 --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/8LabProgram/bin/Debug/netcoreapp3.1/8LabProgram.runtimeconfig.dev.json @@ -0,0 +1,8 @@ +{ + "runtimeOptions": { + "additionalProbingPaths": [ + "C:\\Users\\An-PC\\.dotnet\\store\\|arch|\\|tfm|", + "C:\\Users\\An-PC\\.nuget\\packages" + ] + } +} \ No newline at end of file diff --git a/C# Labs 2 semester/8lab-program-master/8LabProgram/bin/Debug/netcoreapp3.1/8LabProgram.runtimeconfig.json b/C# Labs 2 semester/8lab-program-master/8LabProgram/bin/Debug/netcoreapp3.1/8LabProgram.runtimeconfig.json new file mode 100644 index 0000000..48b8c87 --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/8LabProgram/bin/Debug/netcoreapp3.1/8LabProgram.runtimeconfig.json @@ -0,0 +1,9 @@ +{ + "runtimeOptions": { + "tfm": "netcoreapp3.1", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "3.1.0" + } + } +} \ No newline at end of file diff --git a/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/8LabProgram.csproj.nuget.dgspec.json b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/8LabProgram.csproj.nuget.dgspec.json new file mode 100644 index 0000000..a2d6eb3 --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/8LabProgram.csproj.nuget.dgspec.json @@ -0,0 +1,62 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\An-PC\\source\\repos\\8LabProgram\\8LabProgram.csproj": {} + }, + "projects": { + "C:\\Users\\An-PC\\source\\repos\\8LabProgram\\8LabProgram.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\An-PC\\source\\repos\\8LabProgram\\8LabProgram.csproj", + "projectName": "8LabProgram", + "projectPath": "C:\\Users\\An-PC\\source\\repos\\8LabProgram\\8LabProgram.csproj", + "packagesPath": "C:\\Users\\An-PC\\.nuget\\packages\\", + "outputPath": "C:\\Users\\An-PC\\source\\repos\\8LabProgram\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\An-PC\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "netcoreapp3.1" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "netcoreapp3.1", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "netcoreapp3.1", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.102\\RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/8LabProgram.csproj.nuget.g.props b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/8LabProgram.csproj.nuget.g.props new file mode 100644 index 0000000..ae04d61 --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/8LabProgram.csproj.nuget.g.props @@ -0,0 +1,18 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\An-PC\.nuget\packages\ + PackageReference + 5.8.1 + + + + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + + \ No newline at end of file diff --git a/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/8LabProgram.csproj.nuget.g.targets b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/8LabProgram.csproj.nuget.g.targets new file mode 100644 index 0000000..d212750 --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/8LabProgram.csproj.nuget.g.targets @@ -0,0 +1,6 @@ + + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + + \ No newline at end of file diff --git a/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/8LabProgram.AssemblyInfo.cs b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/8LabProgram.AssemblyInfo.cs new file mode 100644 index 0000000..ecf922b --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/8LabProgram.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// 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. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("8LabProgram")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("8LabProgram")] +[assembly: System.Reflection.AssemblyTitleAttribute("8LabProgram")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/8LabProgram.AssemblyInfoInputs.cache b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/8LabProgram.AssemblyInfoInputs.cache new file mode 100644 index 0000000..4a4f4f5 --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/8LabProgram.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +5f4fc8b692efca3ffb0c1b5aaf9bc7167dc31c69 diff --git a/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/8LabProgram.assets.cache b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/8LabProgram.assets.cache new file mode 100644 index 0000000..b6c18cf Binary files /dev/null and b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/8LabProgram.assets.cache differ diff --git a/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/8LabProgram.csproj.CoreCompileInputs.cache b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/8LabProgram.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..efc6282 --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/8LabProgram.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +15228d1e5de8cf44c2b52c9af16f9d1ff9db1fbc diff --git a/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/8LabProgram.csproj.FileListAbsolute.txt b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/8LabProgram.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..4c29526 --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/8LabProgram.csproj.FileListAbsolute.txt @@ -0,0 +1,13 @@ +C:\Users\An-PC\source\repos\8LabProgram\bin\Debug\netcoreapp3.1\8LabProgram.exe +C:\Users\An-PC\source\repos\8LabProgram\bin\Debug\netcoreapp3.1\8LabProgram.deps.json +C:\Users\An-PC\source\repos\8LabProgram\bin\Debug\netcoreapp3.1\8LabProgram.runtimeconfig.json +C:\Users\An-PC\source\repos\8LabProgram\bin\Debug\netcoreapp3.1\8LabProgram.runtimeconfig.dev.json +C:\Users\An-PC\source\repos\8LabProgram\bin\Debug\netcoreapp3.1\8LabProgram.dll +C:\Users\An-PC\source\repos\8LabProgram\bin\Debug\netcoreapp3.1\8LabProgram.pdb +C:\Users\An-PC\source\repos\8LabProgram\obj\Debug\netcoreapp3.1\8LabProgram.csprojAssemblyReference.cache +C:\Users\An-PC\source\repos\8LabProgram\obj\Debug\netcoreapp3.1\8LabProgram.AssemblyInfoInputs.cache +C:\Users\An-PC\source\repos\8LabProgram\obj\Debug\netcoreapp3.1\8LabProgram.AssemblyInfo.cs +C:\Users\An-PC\source\repos\8LabProgram\obj\Debug\netcoreapp3.1\8LabProgram.csproj.CoreCompileInputs.cache +C:\Users\An-PC\source\repos\8LabProgram\obj\Debug\netcoreapp3.1\8LabProgram.dll +C:\Users\An-PC\source\repos\8LabProgram\obj\Debug\netcoreapp3.1\8LabProgram.pdb +C:\Users\An-PC\source\repos\8LabProgram\obj\Debug\netcoreapp3.1\8LabProgram.genruntimeconfig.cache diff --git a/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/8LabProgram.csprojAssemblyReference.cache b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/8LabProgram.csprojAssemblyReference.cache new file mode 100644 index 0000000..75c1661 Binary files /dev/null and b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/8LabProgram.csprojAssemblyReference.cache differ diff --git a/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/8LabProgram.dll b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/8LabProgram.dll new file mode 100644 index 0000000..f444d51 Binary files /dev/null and b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/8LabProgram.dll differ diff --git a/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/8LabProgram.genruntimeconfig.cache b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/8LabProgram.genruntimeconfig.cache new file mode 100644 index 0000000..3d7c7b9 --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/8LabProgram.genruntimeconfig.cache @@ -0,0 +1 @@ +d296e8cda15646d11e9226ee31c8e11139671989 diff --git a/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/8LabProgram.pdb b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/8LabProgram.pdb new file mode 100644 index 0000000..0ea179c Binary files /dev/null and b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/8LabProgram.pdb differ diff --git a/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/apphost.exe b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/apphost.exe new file mode 100644 index 0000000..2c3eec2 Binary files /dev/null and b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/Debug/netcoreapp3.1/apphost.exe differ diff --git a/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/project.assets.json b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/project.assets.json new file mode 100644 index 0000000..47a4bd2 --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/project.assets.json @@ -0,0 +1,67 @@ +{ + "version": 3, + "targets": { + ".NETCoreApp,Version=v3.1": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + ".NETCoreApp,Version=v3.1": [] + }, + "packageFolders": { + "C:\\Users\\An-PC\\.nuget\\packages\\": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\An-PC\\source\\repos\\8LabProgram\\8LabProgram.csproj", + "projectName": "8LabProgram", + "projectPath": "C:\\Users\\An-PC\\source\\repos\\8LabProgram\\8LabProgram.csproj", + "packagesPath": "C:\\Users\\An-PC\\.nuget\\packages\\", + "outputPath": "C:\\Users\\An-PC\\source\\repos\\8LabProgram\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\An-PC\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "netcoreapp3.1" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "netcoreapp3.1", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "netcoreapp3.1", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.102\\RuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/project.nuget.cache b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/project.nuget.cache new file mode 100644 index 0000000..e52e363 --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/8LabProgram/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "O0Mco3rrSXGenOH86lm90/81+rjL48ChZxhMAw0hYhpi4lnJdkECuncENRkD2TGQfELQmuJj3oy1s6hSwS4pmw==", + "success": true, + "projectFilePath": "C:\\Users\\An-PC\\source\\repos\\8LabProgram\\8LabProgram.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file diff --git a/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.exe b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.exe new file mode 100644 index 0000000..67361bb Binary files /dev/null and b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.exe differ diff --git a/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.exe.recipe b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.exe.recipe new file mode 100644 index 0000000..921f33b --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.exe.recipe @@ -0,0 +1,11 @@ + + + + + C:\Users\An-PC\source\repos\Lab8ProgC++\Debug\Lab8ProgC++.exe + + + + + + \ No newline at end of file diff --git a/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.ilk b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.ilk new file mode 100644 index 0000000..3e69fa2 Binary files /dev/null and b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.ilk differ diff --git a/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.log b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.log new file mode 100644 index 0000000..2a7c8b2 --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.log @@ -0,0 +1,2 @@ + Lab8ProgC++.cpp + Lab8ProgC++.vcxproj -> C:\Users\An-PC\source\repos\Lab8ProgC++\Debug\Lab8ProgC++.exe diff --git a/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.obj b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.obj new file mode 100644 index 0000000..c9d0d2a Binary files /dev/null and b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.obj differ diff --git a/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.pdb b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.pdb new file mode 100644 index 0000000..72859be Binary files /dev/null and b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.pdb differ diff --git a/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.tlog/CL.command.1.tlog b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.tlog/CL.command.1.tlog new file mode 100644 index 0000000..65a01a3 Binary files /dev/null and b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.tlog/CL.command.1.tlog differ diff --git a/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.tlog/CL.read.1.tlog b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.tlog/CL.read.1.tlog new file mode 100644 index 0000000..a3d5e46 Binary files /dev/null and b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.tlog/CL.read.1.tlog differ diff --git a/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.tlog/CL.write.1.tlog b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.tlog/CL.write.1.tlog new file mode 100644 index 0000000..fd390a5 Binary files /dev/null and b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.tlog/CL.write.1.tlog differ diff --git a/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.tlog/Lab8ProgC++.lastbuildstate b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.tlog/Lab8ProgC++.lastbuildstate new file mode 100644 index 0000000..98fed87 --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.tlog/Lab8ProgC++.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.28.29333:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|C:\Users\An-PC\source\repos\Lab8ProgC++\| diff --git a/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.tlog/link.command.1.tlog b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.tlog/link.command.1.tlog new file mode 100644 index 0000000..889cf4d Binary files /dev/null and b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.tlog/link.command.1.tlog differ diff --git a/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.tlog/link.read.1.tlog b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.tlog/link.read.1.tlog new file mode 100644 index 0000000..c146ef8 Binary files /dev/null and b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.tlog/link.read.1.tlog differ diff --git a/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.tlog/link.write.1.tlog b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.tlog/link.write.1.tlog new file mode 100644 index 0000000..c85f799 Binary files /dev/null and b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.tlog/link.write.1.tlog differ diff --git a/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.vcxproj.FileListAbsolute.txt b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..691e16b --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/Lab8ProgC++.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +C:\Users\An-PC\source\repos\Lab8ProgC++\Debug\Lab8ProgC++.exe +C:\Users\An-PC\source\repos\Lab8ProgC++\Debug\Lab8ProgC++.pdb diff --git a/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/vc142.idb b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/vc142.idb new file mode 100644 index 0000000..2e0f88b Binary files /dev/null and b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/vc142.idb differ diff --git a/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/vc142.pdb b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/vc142.pdb new file mode 100644 index 0000000..9fba548 Binary files /dev/null and b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Debug/vc142.pdb differ diff --git a/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Header.h b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Header.h new file mode 100644 index 0000000..ce74fe9 --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Header.h @@ -0,0 +1,111 @@ +#include +#include +#include +using namespace std; + +class Node +{ +public: + Node* next; + Node* previous; + double data; +}; + +void FirstAdd(Node** head, double NewElement) { + + Node* new_node = new Node(); + new_node->data = NewElement; + + new_node->next = (*head); + new_node->previous = NULL; + + if ((*head) != NULL) + (*head)->previous = new_node; + (*head) = new_node; +} + +int Size(Node* node) { + int res = 0; + while (node != NULL) { + res++; + node = node->next; + } + return res; +} +double Average(Node* node) { + double average = 0; + int size = Size(node); + while (node != NULL) { + average += node->data; + node = node->next; + } + average = average / size; + return average; +} + +int ElementsLessAverage(Node* node, double average) { + int count = 0; + while (node != NULL) { + if (node->data < average) + count++; + node = node->next; + } + return count; +} + +void Delete(class Node** head, Node* del) { + if (*head == NULL || del == NULL) + return; + + if (*head == del) + *head = del->next; + + if (del->next != NULL) + del->next->previous = del->previous; + + if (del->previous != NULL) + del->previous->next = del->next; + free(del); + return; +} + +double FindMax(Node** head) { + class Node* max, * temp; + temp = max = *head; + while (temp != NULL) { + if (temp->data > max->data) + max = temp; + temp = temp->next; + } + return max->data; +} +void DeleteToMax(Node** head) +{ + double max = FindMax(head); + Node* ptr = *head; + Node* previous; + while (ptr->data != max) + { + previous = ptr->next; + ptr = previous; + } + previous = ptr->previous; + ptr = previous; + while (ptr != NULL) + { + previous = ptr->previous; + Delete(head, ptr); + ptr = previous; + } +} + +void PrintList(Node* node) +{ + Node* last = new Node(); + while (node != NULL) + { + cout << " " << node->data << " "; + last = node; + node = node->next; + } +} \ No newline at end of file diff --git a/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Lab8ProgC++.cpp b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Lab8ProgC++.cpp new file mode 100644 index 0000000..19869c8 --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Lab8ProgC++.cpp @@ -0,0 +1,22 @@ +#include "Header.h" + +int main() +{ + Node* head = NULL; + FirstAdd(&head, 13.5); + FirstAdd(&head, 5.5); + FirstAdd(&head, 333); + FirstAdd(&head, 2.5); + FirstAdd(&head, 1.57); + FirstAdd(&head, 23); + FirstAdd(&head, 214.5); + PrintList(head); + cout << endl; + double average = Average(head); + cout << average << endl; + cout << ElementsLessAverage(head, average) << endl; + cout << FindMax(&head); + cout << "\n" << endl; + DeleteToMax(&head); + PrintList(head); +} diff --git a/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Lab8ProgC++.sln b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Lab8ProgC++.sln new file mode 100644 index 0000000..2765aec --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Lab8ProgC++.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30907.101 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Lab8ProgC++", "Lab8ProgC++.vcxproj", "{6EC49459-C972-47D9-A8D3-961D8A57A224}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {6EC49459-C972-47D9-A8D3-961D8A57A224}.Debug|x64.ActiveCfg = Debug|x64 + {6EC49459-C972-47D9-A8D3-961D8A57A224}.Debug|x64.Build.0 = Debug|x64 + {6EC49459-C972-47D9-A8D3-961D8A57A224}.Debug|x86.ActiveCfg = Debug|Win32 + {6EC49459-C972-47D9-A8D3-961D8A57A224}.Debug|x86.Build.0 = Debug|Win32 + {6EC49459-C972-47D9-A8D3-961D8A57A224}.Release|x64.ActiveCfg = Release|x64 + {6EC49459-C972-47D9-A8D3-961D8A57A224}.Release|x64.Build.0 = Release|x64 + {6EC49459-C972-47D9-A8D3-961D8A57A224}.Release|x86.ActiveCfg = Release|Win32 + {6EC49459-C972-47D9-A8D3-961D8A57A224}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {70ACB06E-4D6C-4AD2-B10D-8EC6C6E2B58E} + EndGlobalSection +EndGlobal diff --git a/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Lab8ProgC++.vcxproj b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Lab8ProgC++.vcxproj new file mode 100644 index 0000000..66dee68 --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Lab8ProgC++.vcxproj @@ -0,0 +1,150 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {6ec49459-c972-47d9-a8d3-961d8a57a224} + Lab8ProgC + 10.0 + + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + false + + + true + + + false + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + + + \ No newline at end of file diff --git a/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Lab8ProgC++.vcxproj.filters b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Lab8ProgC++.vcxproj.filters new file mode 100644 index 0000000..781e2d6 --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Lab8ProgC++.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Source Files + + + + + Header Files + + + \ No newline at end of file diff --git a/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Lab8ProgC++.vcxproj.user b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Lab8ProgC++.vcxproj.user new file mode 100644 index 0000000..0f14913 --- /dev/null +++ b/C# Labs 2 semester/8lab-program-master/Lab8ProgC++/Lab8ProgC++.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/C# Labs 2 semester/Lab5_Programming_inheritance-master/Figure.cs b/C# Labs 2 semester/Lab5_Programming_inheritance-master/Figure.cs new file mode 100644 index 0000000..4ff39fe --- /dev/null +++ b/C# Labs 2 semester/Lab5_Programming_inheritance-master/Figure.cs @@ -0,0 +1,60 @@ +using System; + +namespace Lab5Proga +{ + class Figure + { + protected double[] Coordinate1 = new double[2]; + protected double[] Coordinate2 = new double[2]; + protected double[] Coordinate3 = new double[2]; + protected double[] Coordinate4 = new double[2]; + + public Figure(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4) + { + Coordinate1[0] = x1; Coordinate1[1] = y1; + Coordinate2[0] = x2; Coordinate2[1] = y2; + Coordinate3[0] = x3; Coordinate3[1] = y3; + Coordinate4[0] = x4; Coordinate4[1] = y4; + } + + public double Side1() + { + double FirstSide = Math.Sqrt(Math.Pow(Coordinate2[0] - Coordinate1[0], 2) + Math.Pow(Coordinate2[1] - Coordinate1[1], 2)); + return FirstSide; + } + public double Side2() + { + return Math.Sqrt(Math.Pow(Coordinate3[0] - Coordinate2[0], 2) + Math.Pow(Coordinate3[1] - Coordinate2[1], 2)); + } + public double Side3() + { + return Math.Sqrt(Math.Pow(Coordinate4[0] - Coordinate3[0], 2) + Math.Pow(Coordinate4[1] - Coordinate3[1], 2)); + } + public double Side4() + { + return Math.Sqrt(Math.Pow(Coordinate4[0] - Coordinate1[0], 2) + Math.Pow(Coordinate4[1] - Coordinate1[1], 2)); + } + } + + class Romb : Figure + { + public Romb(double x1, double x2, double x3, double x4, double y1, double y2, double y3, double y4) : base(x1, x2, x3, x4, y1, y2, y3, y4) + { + } + + public double Area() + { + double D1 = Math.Sqrt(Math.Pow(Coordinate3[1] - Coordinate1[1], 2) + Math.Pow(Coordinate3[0] - Coordinate1[0], 2)); + double D2 = Math.Sqrt(Math.Pow(Coordinate4[1] - Coordinate2[1], 2) + Math.Pow(Coordinate4[0] - Coordinate2[0], 2)); + double AreaCalculation = D1 + D2 / 2; + return AreaCalculation; + } + + public double Perimeter() + { + double PerimeterCalculation = Side1()+Side2()+Side3()+Side4(); + return PerimeterCalculation; + } + } + +} diff --git a/C# Labs 2 semester/Lab5_Programming_inheritance-master/FigureAndRomb.cpp b/C# Labs 2 semester/Lab5_Programming_inheritance-master/FigureAndRomb.cpp new file mode 100644 index 0000000..c76c794 --- /dev/null +++ b/C# Labs 2 semester/Lab5_Programming_inheritance-master/FigureAndRomb.cpp @@ -0,0 +1,54 @@ +#include +#include +using namespace std; +#include "Header.h" +Figure::Figure() +{ +} +Figure::Figure(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4) +{ + _x1 = x1; _y1 = y1; + _x2 = x2; _y2 = y2; + _x3 = x3; _y3 = y3; + _x4 = x4; _y4 = y4; +} + +double Figure::Side1() +{ + double FirstSide = sqrt(pow(_x2 - _x1, 2) + pow(_y2 - _y1, 2)); + return FirstSide; +} +double Figure::Side2() +{ + return sqrt(pow(_x3 - _x2, 2) + pow(_y3 - _y2, 2)); +} +double Figure::Side3() +{ + return sqrt(pow(_x4 - _x3, 2) + pow(_y4 - _y3, 2)); +} +double Figure::Side4() +{ + return sqrt(pow(_x4 - _x1, 2) + pow(_y4 - _y1, 2)); +} + +Romb::Romb(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4) +{ + _x1 = x1; _y1 = y1; + _x2 = x2; _y2 = y2; + _x3 = x3; _y3 = y3; + _x4 = x4; _y4 = y4; +} + +double Romb::Area() +{ + double D1 = sqrt(pow(_y3 - _y1, 2) + pow(_x3 - _x1, 2)); + double D2 = sqrt(pow(_y4 - _y2, 2) + pow(_x4 - _x2, 2)); + double AreaCalculation = D1 + D2 / 2; + return AreaCalculation; +} + +double Romb::Perimeter() +{ + double PerimeterCalculation = Side1() + Side2() + Side3() + Side4(); + return PerimeterCalculation; +} diff --git a/C# Labs 2 semester/Lab5_Programming_inheritance-master/Header.h b/C# Labs 2 semester/Lab5_Programming_inheritance-master/Header.h new file mode 100644 index 0000000..aa8bd27 --- /dev/null +++ b/C# Labs 2 semester/Lab5_Programming_inheritance-master/Header.h @@ -0,0 +1,34 @@ +#pragma once +#include +#include +using namespace std; + +class Figure +{ +protected: + double _x1; + double _y1; + double _x2; + double _y2; + double _x3; + double _y3; + double _x4; + double _y4; + +public: + Figure(); + Figure(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4); + double Side1(); + double Side2(); + double Side3(); + double Side4(); +}; + +class Romb : public Figure +{ +public: + Romb(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4); + double Area(); + double Perimeter(); +}; + diff --git a/C# Labs 2 semester/Lab5_Programming_inheritance-master/Lab5ProgramC++.cpp b/C# Labs 2 semester/Lab5_Programming_inheritance-master/Lab5ProgramC++.cpp new file mode 100644 index 0000000..21972f4 --- /dev/null +++ b/C# Labs 2 semester/Lab5_Programming_inheritance-master/Lab5ProgramC++.cpp @@ -0,0 +1,16 @@ +#include +#include "Header.h" +using namespace std; + +int main() +{ + Romb FigureRomb = Romb(2, 0, 2, 2, 4, 2, 4, 0); + cout << "Sides:" << endl; + cout << FigureRomb.Side1() << endl; + cout << FigureRomb.Side2() << endl; + cout << FigureRomb.Side3() << endl; + cout << FigureRomb.Side4() << endl; + + cout << "Perimeter: " << FigureRomb.Perimeter() << endl; + cout << "Area: " << FigureRomb.Area() << endl; +} diff --git a/C# Labs 2 semester/Lab5_Programming_inheritance-master/Program.cs b/C# Labs 2 semester/Lab5_Programming_inheritance-master/Program.cs new file mode 100644 index 0000000..ad13aa5 --- /dev/null +++ b/C# Labs 2 semester/Lab5_Programming_inheritance-master/Program.cs @@ -0,0 +1,16 @@ +using System; + +namespace Lab5Proga +{ + class Program + { + static void Main(string[] args) + { + Romb FigureRomb = new Romb(2,0,2,2,4,2,4,0); + Console.WriteLine($"Sides: {FigureRomb.Side1()}, {FigureRomb.Side2()}, {FigureRomb.Side3()}, {FigureRomb.Side4()}"); + Console.WriteLine($"Perimeter: {FigureRomb.Perimeter()}"); + Console.WriteLine($"Area: {FigureRomb.Area()}"); + Console.ReadLine(); + } + } +} \ No newline at end of file diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/Lab2sharp.csproj b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/Lab2sharp.csproj new file mode 100644 index 0000000..d453e9a --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/Lab2sharp.csproj @@ -0,0 +1,8 @@ + + + + Exe + netcoreapp3.1 + + + diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/Lab2sharp.sln b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/Lab2sharp.sln new file mode 100644 index 0000000..5298609 --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/Lab2sharp.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30907.101 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lab2sharp", "Lab2sharp.csproj", "{060296BE-CF92-44ED-AF0F-2276796787F5}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {060296BE-CF92-44ED-AF0F-2276796787F5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {060296BE-CF92-44ED-AF0F-2276796787F5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {060296BE-CF92-44ED-AF0F-2276796787F5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {060296BE-CF92-44ED-AF0F-2276796787F5}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {34EF5398-BAFB-4E0A-88EA-E983D97E2D55} + EndGlobalSection +EndGlobal diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/MyString.cs b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/MyString.cs new file mode 100644 index 0000000..269e563 --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/MyString.cs @@ -0,0 +1,68 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace MyLibrary +{ + public class MyString + { + private char[] str; + private int len; + public MyString() + { + str = null; + len = 0; + } + public MyString(in char[] str) + { + string temp = new string(str); + len = temp.Length; + this.str = new char[len + 1]; + for (int i = 0; i < len; i++) + { + this.str[i] = Convert.ToChar(str[i]); + } + this.str[len] = '\0'; + } + + public MyString(in MyString other) + { + string temp = other.ToString(); + len = temp.Length; + this.str = new char[len + 1]; + + for (int i = 0; i < len; i++) + { + this.str[i] = other.str[i]; + } + this.str[len] = '\0'; + } + + public bool Equation(in MyString other) + { + if (len == other.len) + { + for (int i = 0; i < len; i++) + { + if (str[i] != other.str[i]) + return false; + } + return true; + } + else + return false; + } + + public void print() + { + Console.Write(str); + } + + public int Size() + { + return len; + } + } +} diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/Program.cs b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/Program.cs new file mode 100644 index 0000000..764eae7 --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/Program.cs @@ -0,0 +1,124 @@ +using System; +using MyLibrary; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Laba2 +{ + class Program + { + static void Main(string[] args) + { + int size = 0; + Text text = new Text(); + while (size <= 0) + { + Console.WriteLine("How many lines? "); + string size1 = Console.ReadLine().ToString(); + size = int.Parse(size1); + if (size != (int)size) + { + size = 0; + } + } + + string str; + for (int i = 0; i < size; i++) + { + str = Console.ReadLine(); + char[] arr = new char[str.Length + 1]; + arr = str.ToCharArray(); + MyString str1 = new MyString(arr); + text.AddStr(in str1); + } + menu(ref text); + } + static void menu(ref Text text) + { + int temp = 0; + bool flag = true; + Console.WriteLine("1 - add line"); + Console.WriteLine("2 - delete the line"); + Console.WriteLine("3 - delete copies"); + Console.WriteLine("4 - frequency of the lines"); + Console.WriteLine("5 - clear the text"); + Console.WriteLine("6 - menu"); + Console.WriteLine("7 - finish the program"); + while (flag) + { + char[] temp1 = new char[30]; + while (temp <= 7) + { + string temp2 = Console.ReadLine().ToString(); + temp = int.Parse(temp2); + if (temp != (int)temp) + { + temp = 0; + } + else { break; } + } + if (temp == 1) + { + string str1; + Console.WriteLine("write the line to add:"); + str1 = Console.ReadLine(); + char[] arr = new char[str1.Length + 1]; + arr = str1.ToCharArray(); + MyString str = new MyString(arr); + text.AddStr(in str); + text.Cout(); + } + else if (temp == 2) + { + int index = 0; + char[] temp2 = new char[30]; + while (index <= 0) + { + Console.WriteLine("write the line to delete:"); + index = int.Parse(Console.ReadLine()); + if (index != (int)index) + { + index = 0; + } + } + text.RemoveStr(index); + text.Cout(); + } + else if (temp == 3) + { + Console.WriteLine("delete the dublicates:"); + text.DeleteCopyStr(0); + text.Cout(); + } + else if (temp == 4) + { + int length = text.FullLen(); + Console.WriteLine("frequency of the line:" + length); + text.Cout(); + text.FullLen(); + } + else if (temp == 5) + { + text.Clear(); + text.Cout(); + } + else if (temp == 6) + { + Console.WriteLine("1 - add line"); + Console.WriteLine("2 - delete the line"); + Console.WriteLine("3 - delete copies"); + Console.WriteLine("4 - frequency of the lines"); + Console.WriteLine("5 - clear the text"); + Console.WriteLine("6 - menu"); + Console.WriteLine("7 - finish the program"); + } + else if (temp == 7) + { + flag = false; + } + } + } + } +} diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/Text.cs b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/Text.cs new file mode 100644 index 0000000..15edc93 --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/Text.cs @@ -0,0 +1,120 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace MyLibrary +{ + public class Text + { + private MyString[] text; + private int size; + public Text() + { + text = null; + size = 0; + } + + public Text(ref MyString[] str, int size) + { + this.size = size; + this.text = new MyString[size]; + for (int i = 0; i < size; i++) + this.text[i] = str[i]; + } + + public void AddStr(in MyString str) + { + MyString[] copy = Copy(); + size++; + text = new MyString[size]; + for (int i = 0; i < size - 1; i++) + text[i] = copy[i]; + text[size - 1] = str; + } + + public void RemoveStr(int index) + { + MyString[] copy = Copy(); + size--; + index--; + text = new MyString[size]; + for (int i = 0; i < index; i++) + text[i] = copy[i]; + for (int i = index; i < size; i++) + text[i] = copy[i + 1]; + } + + private MyString[] Copy() + { + MyString[] text1 = new MyString[size]; + for (int i = 0; i < size; i++) + text1[i] = text[i]; + return text1; + } + + public int FullLen() + { + int length = 0; + for (int i = 0; i < size; i++) + length += text[i].Size(); + return length; + } + + public void Cout() + { + Console.WriteLine("Our lines: "); + for (int i = 0; i < size; i++) + { + text[i].print(); + Console.WriteLine(); + } + } + + public void DeleteCopyStr(int index) + { + if (index >= 0 && size > 1) + { + int counter = 0, + correction = 0; + + MyString basic = text[index]; + for (int i = 0; i < size; i++) + { + if (i != index && basic.Equation(text[i])) + counter++; + } + + if (counter > 0) + { + MyString[] lines = new MyString[size]; + for (int j = 0; j < size; j++) + lines[j] = text[j]; + + text = new MyString[size - counter]; + int i = 0, + push = 0; + while (i < size) + { + if (i != index && basic.Equation(lines[i])) + correction++; + else if (push + correction < size) + { + text[push] = lines[push + correction]; + push++; + } + i++; + } + size = size - counter; + } + } + } + + public void Clear() + { + text = null; + size = 0; + } + } +} diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/bin/Debug/Lab2sharp.1.0.0.nupkg b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/bin/Debug/Lab2sharp.1.0.0.nupkg new file mode 100644 index 0000000..b925665 Binary files /dev/null and b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/bin/Debug/Lab2sharp.1.0.0.nupkg differ diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/bin/Debug/netcoreapp3.1/Lab2sharp.deps.json b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/bin/Debug/netcoreapp3.1/Lab2sharp.deps.json new file mode 100644 index 0000000..694c692 --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/bin/Debug/netcoreapp3.1/Lab2sharp.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v3.1", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v3.1": { + "Lab2sharp/1.0.0": { + "runtime": { + "Lab2sharp.dll": {} + } + } + } + }, + "libraries": { + "Lab2sharp/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/bin/Debug/netcoreapp3.1/Lab2sharp.dll b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/bin/Debug/netcoreapp3.1/Lab2sharp.dll new file mode 100644 index 0000000..11082af Binary files /dev/null and b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/bin/Debug/netcoreapp3.1/Lab2sharp.dll differ diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/bin/Debug/netcoreapp3.1/Lab2sharp.exe b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/bin/Debug/netcoreapp3.1/Lab2sharp.exe new file mode 100644 index 0000000..81b73ea Binary files /dev/null and b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/bin/Debug/netcoreapp3.1/Lab2sharp.exe differ diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/bin/Debug/netcoreapp3.1/Lab2sharp.pdb b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/bin/Debug/netcoreapp3.1/Lab2sharp.pdb new file mode 100644 index 0000000..21a7800 Binary files /dev/null and b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/bin/Debug/netcoreapp3.1/Lab2sharp.pdb differ diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/bin/Debug/netcoreapp3.1/Lab2sharp.runtimeconfig.dev.json b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/bin/Debug/netcoreapp3.1/Lab2sharp.runtimeconfig.dev.json new file mode 100644 index 0000000..a7ae1f7 --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/bin/Debug/netcoreapp3.1/Lab2sharp.runtimeconfig.dev.json @@ -0,0 +1,8 @@ +{ + "runtimeOptions": { + "additionalProbingPaths": [ + "C:\\Users\\An-PC\\.dotnet\\store\\|arch|\\|tfm|", + "C:\\Users\\An-PC\\.nuget\\packages" + ] + } +} \ No newline at end of file diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/bin/Debug/netcoreapp3.1/Lab2sharp.runtimeconfig.json b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/bin/Debug/netcoreapp3.1/Lab2sharp.runtimeconfig.json new file mode 100644 index 0000000..48b8c87 --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/bin/Debug/netcoreapp3.1/Lab2sharp.runtimeconfig.json @@ -0,0 +1,9 @@ +{ + "runtimeOptions": { + "tfm": "netcoreapp3.1", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "3.1.0" + } + } +} \ No newline at end of file diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/Lab2sharp.1.0.0.nuspec b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/Lab2sharp.1.0.0.nuspec new file mode 100644 index 0000000..90be9fe --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/Lab2sharp.1.0.0.nuspec @@ -0,0 +1,17 @@ + + + + Lab2sharp + 1.0.0 + Lab2sharp + false + Package Description + + + + + + + + + \ No newline at end of file diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/Lab2sharp.AssemblyInfo.cs b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/Lab2sharp.AssemblyInfo.cs new file mode 100644 index 0000000..a56842d --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/Lab2sharp.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// 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. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Lab2sharp")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("Lab2sharp")] +[assembly: System.Reflection.AssemblyTitleAttribute("Lab2sharp")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/Lab2sharp.AssemblyInfoInputs.cache b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/Lab2sharp.AssemblyInfoInputs.cache new file mode 100644 index 0000000..1cdc2ab --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/Lab2sharp.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +755554c4def4a8ab0afb99d5a7e371ddb99a6cc1 diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/Lab2sharp.assets.cache b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/Lab2sharp.assets.cache new file mode 100644 index 0000000..b1e0348 Binary files /dev/null and b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/Lab2sharp.assets.cache differ diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/Lab2sharp.csproj.CoreCompileInputs.cache b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/Lab2sharp.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..571d2f5 --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/Lab2sharp.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +595e0cab46c783b9c4ccb0dc83258b0ce6e59d37 diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/Lab2sharp.csproj.FileListAbsolute.txt b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/Lab2sharp.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..a3f45a6 --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/Lab2sharp.csproj.FileListAbsolute.txt @@ -0,0 +1,13 @@ +C:\Users\An-PC\source\repos\Lab2sharp\bin\Debug\netcoreapp3.1\Lab2sharp.exe +C:\Users\An-PC\source\repos\Lab2sharp\bin\Debug\netcoreapp3.1\Lab2sharp.deps.json +C:\Users\An-PC\source\repos\Lab2sharp\bin\Debug\netcoreapp3.1\Lab2sharp.runtimeconfig.json +C:\Users\An-PC\source\repos\Lab2sharp\bin\Debug\netcoreapp3.1\Lab2sharp.runtimeconfig.dev.json +C:\Users\An-PC\source\repos\Lab2sharp\bin\Debug\netcoreapp3.1\Lab2sharp.dll +C:\Users\An-PC\source\repos\Lab2sharp\bin\Debug\netcoreapp3.1\Lab2sharp.pdb +C:\Users\An-PC\source\repos\Lab2sharp\obj\Debug\netcoreapp3.1\Lab2sharp.csprojAssemblyReference.cache +C:\Users\An-PC\source\repos\Lab2sharp\obj\Debug\netcoreapp3.1\Lab2sharp.AssemblyInfoInputs.cache +C:\Users\An-PC\source\repos\Lab2sharp\obj\Debug\netcoreapp3.1\Lab2sharp.AssemblyInfo.cs +C:\Users\An-PC\source\repos\Lab2sharp\obj\Debug\netcoreapp3.1\Lab2sharp.csproj.CoreCompileInputs.cache +C:\Users\An-PC\source\repos\Lab2sharp\obj\Debug\netcoreapp3.1\Lab2sharp.dll +C:\Users\An-PC\source\repos\Lab2sharp\obj\Debug\netcoreapp3.1\Lab2sharp.pdb +C:\Users\An-PC\source\repos\Lab2sharp\obj\Debug\netcoreapp3.1\Lab2sharp.genruntimeconfig.cache diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/Lab2sharp.csprojAssemblyReference.cache b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/Lab2sharp.csprojAssemblyReference.cache new file mode 100644 index 0000000..6dc1d04 Binary files /dev/null and b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/Lab2sharp.csprojAssemblyReference.cache differ diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/Lab2sharp.dll b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/Lab2sharp.dll new file mode 100644 index 0000000..11082af Binary files /dev/null and b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/Lab2sharp.dll differ diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/Lab2sharp.genruntimeconfig.cache b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/Lab2sharp.genruntimeconfig.cache new file mode 100644 index 0000000..2055c81 --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/Lab2sharp.genruntimeconfig.cache @@ -0,0 +1 @@ +51c2af62c7a8784348de774b61ec8377050d38e6 diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/Lab2sharp.pdb b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/Lab2sharp.pdb new file mode 100644 index 0000000..21a7800 Binary files /dev/null and b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/Lab2sharp.pdb differ diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/apphost.exe b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/apphost.exe new file mode 100644 index 0000000..81b73ea Binary files /dev/null and b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Debug/netcoreapp3.1/apphost.exe differ diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Lab2sharp.csproj.nuget.dgspec.json b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Lab2sharp.csproj.nuget.dgspec.json new file mode 100644 index 0000000..6bc0a0c --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Lab2sharp.csproj.nuget.dgspec.json @@ -0,0 +1,62 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\An-PC\\source\\repos\\Lab2sharp\\Lab2sharp.csproj": {} + }, + "projects": { + "C:\\Users\\An-PC\\source\\repos\\Lab2sharp\\Lab2sharp.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\An-PC\\source\\repos\\Lab2sharp\\Lab2sharp.csproj", + "projectName": "Lab2sharp", + "projectPath": "C:\\Users\\An-PC\\source\\repos\\Lab2sharp\\Lab2sharp.csproj", + "packagesPath": "C:\\Users\\An-PC\\.nuget\\packages\\", + "outputPath": "C:\\Users\\An-PC\\source\\repos\\Lab2sharp\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\An-PC\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "netcoreapp3.1" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "netcoreapp3.1", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "netcoreapp3.1", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.102\\RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Lab2sharp.csproj.nuget.g.props b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Lab2sharp.csproj.nuget.g.props new file mode 100644 index 0000000..ae04d61 --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Lab2sharp.csproj.nuget.g.props @@ -0,0 +1,18 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\An-PC\.nuget\packages\ + PackageReference + 5.8.1 + + + + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + + \ No newline at end of file diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Lab2sharp.csproj.nuget.g.targets b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Lab2sharp.csproj.nuget.g.targets new file mode 100644 index 0000000..d212750 --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/Lab2sharp.csproj.nuget.g.targets @@ -0,0 +1,6 @@ + + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + + \ No newline at end of file diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/project.assets.json b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/project.assets.json new file mode 100644 index 0000000..03fe198 --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/project.assets.json @@ -0,0 +1,67 @@ +{ + "version": 3, + "targets": { + ".NETCoreApp,Version=v3.1": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + ".NETCoreApp,Version=v3.1": [] + }, + "packageFolders": { + "C:\\Users\\An-PC\\.nuget\\packages\\": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\An-PC\\source\\repos\\Lab2sharp\\Lab2sharp.csproj", + "projectName": "Lab2sharp", + "projectPath": "C:\\Users\\An-PC\\source\\repos\\Lab2sharp\\Lab2sharp.csproj", + "packagesPath": "C:\\Users\\An-PC\\.nuget\\packages\\", + "outputPath": "C:\\Users\\An-PC\\source\\repos\\Lab2sharp\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\An-PC\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "netcoreapp3.1" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "netcoreapp3.1", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "netcoreapp3.1", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.102\\RuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/project.nuget.cache b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/project.nuget.cache new file mode 100644 index 0000000..f3cb12d --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/Lab2sharp/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "4450zAsNRjHspSk6Uq+z36Zczf/BHUch/XhF5PiqXEKvhb+da5iHOfGIzwRS0hxHgtTk8lrKE8nJw21PRXNkIA==", + "success": true, + "projectFilePath": "C:\\Users\\An-PC\\source\\repos\\Lab2sharp\\Lab2sharp.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/Official.a6af7049.tlog/CL.command.1.tlog b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/Official.a6af7049.tlog/CL.command.1.tlog new file mode 100644 index 0000000..5088282 Binary files /dev/null and b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/Official.a6af7049.tlog/CL.command.1.tlog differ diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/Official.a6af7049.tlog/CL.read.1.tlog b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/Official.a6af7049.tlog/CL.read.1.tlog new file mode 100644 index 0000000..5e06656 Binary files /dev/null and b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/Official.a6af7049.tlog/CL.read.1.tlog differ diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/Official.a6af7049.tlog/CL.write.1.tlog b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/Official.a6af7049.tlog/CL.write.1.tlog new file mode 100644 index 0000000..2d5f98a Binary files /dev/null and b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/Official.a6af7049.tlog/CL.write.1.tlog differ diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/Official.a6af7049.tlog/OfficialLab2Proga.lastbuildstate b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/Official.a6af7049.tlog/OfficialLab2Proga.lastbuildstate new file mode 100644 index 0000000..ec3b2b4 --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/Official.a6af7049.tlog/OfficialLab2Proga.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.28.29333:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|C:\Users\An-PC\source\repos\OfficialLab2Proga\| diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/Official.a6af7049.tlog/link.command.1.tlog b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/Official.a6af7049.tlog/link.command.1.tlog new file mode 100644 index 0000000..f48b7f5 Binary files /dev/null and b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/Official.a6af7049.tlog/link.command.1.tlog differ diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/Official.a6af7049.tlog/link.read.1.tlog b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/Official.a6af7049.tlog/link.read.1.tlog new file mode 100644 index 0000000..2377498 Binary files /dev/null and b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/Official.a6af7049.tlog/link.read.1.tlog differ diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/Official.a6af7049.tlog/link.write.1.tlog b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/Official.a6af7049.tlog/link.write.1.tlog new file mode 100644 index 0000000..b5f886e Binary files /dev/null and b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/Official.a6af7049.tlog/link.write.1.tlog differ diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/OfficialLab2Proga.exe b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/OfficialLab2Proga.exe new file mode 100644 index 0000000..96608af Binary files /dev/null and b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/OfficialLab2Proga.exe differ diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/OfficialLab2Proga.exe.recipe b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/OfficialLab2Proga.exe.recipe new file mode 100644 index 0000000..8840264 --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/OfficialLab2Proga.exe.recipe @@ -0,0 +1,11 @@ + + + + + C:\Users\An-PC\source\repos\OfficialLab2Proga\Debug\OfficialLab2Proga.exe + + + + + + \ No newline at end of file diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/OfficialLab2Proga.ilk b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/OfficialLab2Proga.ilk new file mode 100644 index 0000000..07bbf43 Binary files /dev/null and b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/OfficialLab2Proga.ilk differ diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/OfficialLab2Proga.log b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/OfficialLab2Proga.log new file mode 100644 index 0000000..f44b8ae --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/OfficialLab2Proga.log @@ -0,0 +1,5 @@ + OfficialLab2Proga.cpp +C:\Users\An-PC\source\repos\OfficialLab2Proga\OfficialLab2Proga.cpp(107,20): warning C4018: '<': signed/unsigned mismatch + Source.cpp + Generating Code... + OfficialLab2Proga.vcxproj -> C:\Users\An-PC\source\repos\OfficialLab2Proga\Debug\OfficialLab2Proga.exe diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/OfficialLab2Proga.obj b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/OfficialLab2Proga.obj new file mode 100644 index 0000000..229a155 Binary files /dev/null and b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/OfficialLab2Proga.obj differ diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/OfficialLab2Proga.pdb b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/OfficialLab2Proga.pdb new file mode 100644 index 0000000..d7e5180 Binary files /dev/null and b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/OfficialLab2Proga.pdb differ diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/OfficialLab2Proga.vcxproj.FileListAbsolute.txt b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/OfficialLab2Proga.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..328c77b --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/OfficialLab2Proga.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +C:\Users\An-PC\source\repos\OfficialLab2Proga\Debug\OfficialLab2Proga.exe +C:\Users\An-PC\source\repos\OfficialLab2Proga\Debug\OfficialLab2Proga.pdb diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/Source.obj b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/Source.obj new file mode 100644 index 0000000..bbc5c2b Binary files /dev/null and b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/Source.obj differ diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/vc142.idb b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/vc142.idb new file mode 100644 index 0000000..4e0e735 Binary files /dev/null and b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/vc142.idb differ diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/vc142.pdb b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/vc142.pdb new file mode 100644 index 0000000..8a71498 Binary files /dev/null and b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Debug/vc142.pdb differ diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/OfficialLab2Proga.cpp b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/OfficialLab2Proga.cpp new file mode 100644 index 0000000..890fb2d --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/OfficialLab2Proga.cpp @@ -0,0 +1,112 @@ +#include "Source.h" + +int main() +{ + int size = 0; + char size1[20]; + Text text; + while (size <= 0) { + cout << "how many lines?" << endl; + cin >> size1; + size = atoi(size1); + if (size != (int)size) { + size = 0; + } + } + MyString str1; + string str; + cin.ignore(); + for (int i = 0; i < size; i++) { + getline(cin, str); + char* arr = new char[str.size() + 1]; + arr = ToCharArr(str, arr); + str1 = arr; + delete[] arr; + text.AddStr(str1); + } + menu(text); +} + +void menu(Text& text) { + int temp = 0; + bool flag = true; + cout << "1 - add a line to the text" << endl; + cout << "2 - remove a line from the text" << endl; + cout << "3 - search and delete the dublicated line" << endl; + cout << "4 - get the length of the line" << endl; + cout << "5 - clear the text" << endl; + cout << "6 - menu" << endl; + cout << "7 - finish the program" << endl; + while (flag) { + char temp1[20]; + while (temp <= 7) { + cin >> temp1; + temp = atoi(temp1); + if (temp != (int)temp) { + temp = 0; + } + else { break; } + } + if (temp == 1) { + MyString str; + string str1; + cout << "add the line" << endl; + cin.ignore(); + getline(cin, str1); + char* arr = new char[str1.size() + 1]; + arr = ToCharArr(str1, arr); + str = arr; + delete[] arr; + text.AddStr(str); + text.Cout(); + } + else if (temp == 2) { + int index = 0; + char temp2[20]; + while (index <= 0) { + cout << "write the number of line to delete" << endl; + cin >> temp2; + index = atoi(temp2); + if (index != (int)index) { + index = 0; + } + } + text.RemoveStr(index); + text.Cout(); + } + else if (temp == 3) { + cout << "delete the duplicate lines:" << endl; + text.DeleteCopyStr(0); + text.Cout(); + } + else if (temp == 4) { + int length = text.FullLen(); + cout << "the length of the lines: " << length << endl; + text.Cout(); + } + else if (temp == 5) { + text.Clear(); + text.Cout(); + } + else if (temp == 6) { + cout << "1 - add a line to the text" << endl; + cout << "2 - remove a line from the text" << endl; + cout << "3 - search and delete the dublicated line" << endl; + cout << "4 - get the length of the line" << endl; + cout << "5 - clear the text" << endl; + cout << "6 - menu" << endl; + cout << "7 - finish the program" << endl; + } + else if (temp == 7) { + flag = false; + } + } +} + +char* ToCharArr(string str, char* arr) { + for (int i = 0; i < str.size(); i++) { + arr[i] = str[i]; + } + arr[str.size()] = '\0'; + return arr; +} diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/OfficialLab2Proga.sln b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/OfficialLab2Proga.sln new file mode 100644 index 0000000..2b0ab22 --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/OfficialLab2Proga.sln @@ -0,0 +1,49 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30907.101 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "OfficialLab2Proga", "OfficialLab2Proga.vcxproj", "{A6AF7049-1CC8-4035-A0A8-B5F8254912CD}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lab2sharp", "..\Lab2sharp\Lab2sharp.csproj", "{3FBF08E6-1914-4033-892A-C6B96DA42403}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {A6AF7049-1CC8-4035-A0A8-B5F8254912CD}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {A6AF7049-1CC8-4035-A0A8-B5F8254912CD}.Debug|x64.ActiveCfg = Debug|x64 + {A6AF7049-1CC8-4035-A0A8-B5F8254912CD}.Debug|x64.Build.0 = Debug|x64 + {A6AF7049-1CC8-4035-A0A8-B5F8254912CD}.Debug|x86.ActiveCfg = Debug|Win32 + {A6AF7049-1CC8-4035-A0A8-B5F8254912CD}.Debug|x86.Build.0 = Debug|Win32 + {A6AF7049-1CC8-4035-A0A8-B5F8254912CD}.Release|Any CPU.ActiveCfg = Release|Win32 + {A6AF7049-1CC8-4035-A0A8-B5F8254912CD}.Release|x64.ActiveCfg = Release|x64 + {A6AF7049-1CC8-4035-A0A8-B5F8254912CD}.Release|x64.Build.0 = Release|x64 + {A6AF7049-1CC8-4035-A0A8-B5F8254912CD}.Release|x86.ActiveCfg = Release|Win32 + {A6AF7049-1CC8-4035-A0A8-B5F8254912CD}.Release|x86.Build.0 = Release|Win32 + {3FBF08E6-1914-4033-892A-C6B96DA42403}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3FBF08E6-1914-4033-892A-C6B96DA42403}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3FBF08E6-1914-4033-892A-C6B96DA42403}.Debug|x64.ActiveCfg = Debug|Any CPU + {3FBF08E6-1914-4033-892A-C6B96DA42403}.Debug|x64.Build.0 = Debug|Any CPU + {3FBF08E6-1914-4033-892A-C6B96DA42403}.Debug|x86.ActiveCfg = Debug|Any CPU + {3FBF08E6-1914-4033-892A-C6B96DA42403}.Debug|x86.Build.0 = Debug|Any CPU + {3FBF08E6-1914-4033-892A-C6B96DA42403}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3FBF08E6-1914-4033-892A-C6B96DA42403}.Release|Any CPU.Build.0 = Release|Any CPU + {3FBF08E6-1914-4033-892A-C6B96DA42403}.Release|x64.ActiveCfg = Release|Any CPU + {3FBF08E6-1914-4033-892A-C6B96DA42403}.Release|x64.Build.0 = Release|Any CPU + {3FBF08E6-1914-4033-892A-C6B96DA42403}.Release|x86.ActiveCfg = Release|Any CPU + {3FBF08E6-1914-4033-892A-C6B96DA42403}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {2FE04AF2-7974-48BC-B3E5-5448CA9C7810} + EndGlobalSection +EndGlobal diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/OfficialLab2Proga.vcxproj b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/OfficialLab2Proga.vcxproj new file mode 100644 index 0000000..a9e759e --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/OfficialLab2Proga.vcxproj @@ -0,0 +1,151 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {a6af7049-1cc8-4035-a0a8-b5f8254912cd} + OfficialLab2Proga + 10.0 + + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + false + + + true + + + false + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + + + + \ No newline at end of file diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/OfficialLab2Proga.vcxproj.filters b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/OfficialLab2Proga.vcxproj.filters new file mode 100644 index 0000000..e8b36b2 --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/OfficialLab2Proga.vcxproj.filters @@ -0,0 +1,30 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Source Files + + + Source Files + + + + + Header Files + + + \ No newline at end of file diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/OfficialLab2Proga.vcxproj.user b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/OfficialLab2Proga.vcxproj.user new file mode 100644 index 0000000..0f14913 --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/OfficialLab2Proga.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Source.cpp b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Source.cpp new file mode 100644 index 0000000..5756c9d --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Source.cpp @@ -0,0 +1,171 @@ +#include "Source.h" + +MyString::MyString() { + MyString::str = nullptr; + len = 0; +} +MyString::MyString(const char* str) { + len = strlen(str); + this->str = new char[len + 1]; + + for (int i = 0; i < len; i++) + { + this->str[i] = str[i]; + } + this->str[len] = '\0'; +} +MyString::~MyString() { + delete[] this->str; +} + +MyString::MyString(const MyString& other) { + len = strlen(other.str); + this->str = new char[len + 1]; + + for (int i = 0; i < len; i++) { + this->str[i] = other.str[i]; + } + this->str[len] = '\0'; +} + +MyString& MyString::operator =(const MyString& other) { + if (this->str != nullptr) { + delete[] str; + } + + int len1 = strlen(other.str); + this->str = new char[len1 + 1]; + + for (int i = 0; i < len1; i++) { + this->str[i] = other.str[i]; + } + this->str[len1] = '\0'; + len = strlen(this->str); + return*this; +} + +void MyString::print() { + cout << str; +} + +int MyString::Size() { + return len; +} + + +Text::Text() { + text = nullptr; + size = 0; +} + +Text::Text(MyString* str, int size) { + this->size = size; + this->text = new MyString[size]; + for (int i = 0; i < size; i++) + this->text[i] = str[i]; +} + +void Text::AddStr(MyString& str) { + MyString* copy = Copy(); + delete[] text; + size++; + text = new MyString[size]; + for (int i = 0; i < size - 1; i++) + text[i] = copy[i]; + delete[] copy; + text[size - 1] = str; +} + +void Text::RemoveStr(int index) { + MyString* copy = Copy(); + delete[] text; + size--; + index--; + text = new MyString[size]; + for (int i = 0; i < index; i++) + text[i] = copy[i]; + for (int i = index; i < size; i++) + text[i] = copy[i + 1]; + delete[] copy; +} + +MyString* Text::Copy() { + MyString* text1 = new MyString[size]; + for (int i = 0; i < size; i++) + text1[i] = text[i]; + return text1; +} + +int Text::FullLen() { + int length = 0; + for (int i = 0; i < size; i++) + length += text[i].Size(); + return length; +} + +void Text::Cout() { + cout << "Our lines: " << endl; + for (int i = 0; i < size; i++) { + text[i].print(); + cout << endl; + } +} + +void Text::Clear() { + delete[] text; + text = nullptr; + size = 0; +} + +bool MyString::operator == (const MyString& other) { + if (len == other.len) { + for (int i = 0; i < len; i++) { + if (str[i] != other.str[i]) + return false; + } + return true; + } + else + return false; +} + +void Text::DeleteCopyStr(int index) { + if (index >= 0 && size > 1) { + int counter = 0, + correction = 0; + + MyString basic = text[index]; + for (int i = 0; i < size; i++) { + if (i != index && basic == text[i]) + counter++; + } + + if (counter > 0) { + MyString* lines = new MyString[size]; + for (int i = 0; i < size; i++) + lines[i] = text[i]; + + delete[]text; + + text = new MyString[size - counter]; + int i = 0, + push = 0; + while (i < size) { + if (i != index && basic == lines[i]) + correction++; + else if (push + correction < size) { + text[push] = lines[push + correction]; + push++; + } + i++; + } + delete[]lines; + size = size - counter; + } + } +} + +Text::~Text() +{ + delete[] this->text; +} diff --git a/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Source.h b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Source.h new file mode 100644 index 0000000..9445414 --- /dev/null +++ b/C# Labs 2 semester/Proga2sem_2Lab-master/Proga2sem_2Lab-master/OfficialLab2Proga/Source.h @@ -0,0 +1,47 @@ +#include +#include +#include +#include +#pragma once +using namespace std; + +class MyString +{ +public: + MyString(); + MyString(const char* str); + ~MyString(); + MyString(const MyString& other); + MyString& operator =(const MyString& other); + bool operator == (const MyString& other); + MyString* Copy(); + void print(); + int Size(); + +private: + char* str; + int len; + char _str; +}; + +class Text +{ +public: + Text(); + Text(MyString* str, int size); + void AddStr(MyString& str); + void RemoveStr(int index); + int FullLen(); + MyString* Copy(); + void Cout(); + void Clear(); + void DeleteCopyStr(int index); + ~Text(); + +private: + MyString* text; + int size; +}; + +char* ToCharArr(std::string str, char* arr); +void menu(Text& text); diff --git a/C# Labs 2 semester/Proga_3Lab_2sem-master/MyString.cs b/C# Labs 2 semester/Proga_3Lab_2sem-master/MyString.cs new file mode 100644 index 0000000..78844e5 --- /dev/null +++ b/C# Labs 2 semester/Proga_3Lab_2sem-master/MyString.cs @@ -0,0 +1,82 @@ +using System; + +namespace MyLibrary +{ + class MyString + { + private int NumberOfStrings = 0; + private string[] OurStrings; + + + public int Length + { + get + { + return NumberOfStrings; + } + } + + public void ControlAccess() + { + { + for (int i = OurStrings.Length - 1; i >= 0; i--) + { + Console.WriteLine(OurStrings[i]); + } + Console.WriteLine(); + } + } + + public string this[int index] + { + get + { + return OurStrings[index]; + } + set + { + OurStrings[index] = value; + } + } + + public void AddString(string str) + { + ++NumberOfStrings; + string[] NewStrings = new string[NumberOfStrings]; + NewStrings[NumberOfStrings - 1]=str; + + for (int i = 0; i < NumberOfStrings - 1; i++) + { + NewStrings[i] = OurStrings[i]; + } + + OurStrings = NewStrings; + } + + public void AddString(int PositionInArray, string str) + { + if (PositionInArray >= NumberOfStrings) + { + AddString(str); + } + else + { + ++NumberOfStrings; + string[] NewStrings = new string[NumberOfStrings]; + + for (int i = 0; i < PositionInArray; i++) + { + NewStrings[i] = this.OurStrings[i]; + } + NewStrings[PositionInArray] = str; + + for (int i = PositionInArray + 1; i < NumberOfStrings; i++) + { + NewStrings[i] = this.OurStrings[i - 1]; + } + this.OurStrings = NewStrings; + } + } + + } +} \ No newline at end of file diff --git a/C# Labs 2 semester/Proga_3Lab_2sem-master/Program.cs b/C# Labs 2 semester/Proga_3Lab_2sem-master/Program.cs new file mode 100644 index 0000000..22a016a --- /dev/null +++ b/C# Labs 2 semester/Proga_3Lab_2sem-master/Program.cs @@ -0,0 +1,25 @@ +using System; +using MyLibrary; + +namespace _3Lab_Program_Indexator +{ + class Program + { + static void Main(string[] args) + { + MyString Container = new MyString(); + Container.AddString("Hello"); + Container.AddString("My"); + Container.AddString("Dear"); + + + Container.ControlAccess(); + Container[0] = "0 cell"; + + for (int i = 0; i < Container.Length; i++) + { + Console.WriteLine(Container[i]); + } + } + } +} diff --git a/C# Labs 2 semester/Proga_4Lab_2sem-master/Header.h b/C# Labs 2 semester/Proga_4Lab_2sem-master/Header.h new file mode 100644 index 0000000..47fb6e3 --- /dev/null +++ b/C# Labs 2 semester/Proga_4Lab_2sem-master/Header.h @@ -0,0 +1,17 @@ +#pragma once +class Trapeze +{ +private: + double x1, x2, x3, x4, y1, y2, y3, y4; + +public: + double Side1, Side2, Side3, Side4, Area, Height, Perimeter; + Trapeze(); + Trapeze(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4); + Trapeze(const Trapeze& copy); + void AreaCalculation(); + void PerimeterCalculation(); + + friend Trapeze operator *(Trapeze TR2, Trapeze TR3); + friend Trapeze operator -(Trapeze TR3, int value); +}; diff --git a/C# Labs 2 semester/Proga_4Lab_2sem-master/Lab4Program.cpp b/C# Labs 2 semester/Proga_4Lab_2sem-master/Lab4Program.cpp new file mode 100644 index 0000000..6a90568 --- /dev/null +++ b/C# Labs 2 semester/Proga_4Lab_2sem-master/Lab4Program.cpp @@ -0,0 +1,33 @@ +#include +#include "Header.h" +using namespace std; + +int main() +{ + Trapeze TR1 = Trapeze(); + Trapeze TR2 = Trapeze(10, 20, 40, 50, 10, 40, 40, 10); + Trapeze TR3 = Trapeze(20, 30, 40, 50, -10, 10, 10, -10); + + cout << "TR2:" << endl; + TR2.PerimeterCalculation(); + TR2.AreaCalculation(); + cout << "The sides are:" << TR2.Side1 << "," << TR2.Side2 << "," << TR2.Side3 << "," << TR2.Side4 << endl; + cout << "The perimeter is:" << TR2.Perimeter << endl; + cout << "The Area is:" << TR2.Area << endl; + + cout << "TR3:" << endl; + TR3.PerimeterCalculation(); + TR3.AreaCalculation(); + cout << "The sides are:" << TR3.Side1 << "," << TR3.Side2 << "," << TR3.Side3 << "," << TR3.Side4 << endl; + cout << "The perimeter is:" << TR3.Perimeter << endl; + cout << "The Area is:" << TR3.Area << endl; + + cout << "TR1:" << endl; + TR1 = TR2 * TR3; + cout << "The sides are:" << TR1.Side1 << "," << TR1.Side2 << "," << TR1.Side3 << "," << TR1.Side4 << endl; + + cout << "Subtraction:" << endl; + TR3 = TR3 - 3; + cout << "The sides are:" << TR3.Side1 << "," << TR3.Side2 << "," << TR3.Side3 << "," << TR3.Side4 << endl; +} + diff --git a/C# Labs 2 semester/Proga_4Lab_2sem-master/Program.cs b/C# Labs 2 semester/Proga_4Lab_2sem-master/Program.cs new file mode 100644 index 0000000..e867321 --- /dev/null +++ b/C# Labs 2 semester/Proga_4Lab_2sem-master/Program.cs @@ -0,0 +1,38 @@ +using System; +using MyLibrary; + +namespace Lab4_Programming +{ + class Program + { + static void Main(string[] args) + { + Trapeze TR1 = new Trapeze(); + Trapeze TR2 = new Trapeze(1, 2, 4, 5, 1, 4, 4, 1); + Trapeze TR3 = new Trapeze(2, 3, 4, 5, -1, 1, 1, -1); + + Console.WriteLine("\nTR2:"); + TR2.PerimeterCalculation(); + TR2.AreaCalculation(); + Console.WriteLine($"The sides are: {TR2.Side1:f3},{TR2.Side2:f3},{TR2.Side3:f3},{TR2.Side4:f3}"); + Console.WriteLine($"The perimeter is: {TR2.Perimeter:f3}"); + Console.WriteLine($"The Area is: {TR2.Area:f3}"); + + Console.WriteLine("\nTR3:"); + TR3.PerimeterCalculation(); + TR3.AreaCalculation(); + Console.WriteLine($"The sides are: {TR3.Side1:f3},{TR3.Side2:f3},{TR3.Side3:f3},{TR3.Side4:f3}"); + Console.WriteLine($"The perimeter is: {TR3.Perimeter:f3}"); + Console.WriteLine($"The Area is: {TR3.Area:f3}"); + + Console.WriteLine("\nTR1:"); + TR1 = TR2 * TR3; + Console.WriteLine($"The sides are: {TR1.Side1:f3},{TR1.Side2:f3},{TR1.Side3:f3},{TR1.Side4:f3}"); + + Console.WriteLine("\nSubstraction:"); + TR3 -= 3; + Console.WriteLine($"The sides are: {TR3.Side1:f3},{TR3.Side2:f3},{TR3.Side3:f3},{TR3.Side4:f3}"); + } + + } +} diff --git a/C# Labs 2 semester/Proga_4Lab_2sem-master/Trapeze.cpp b/C# Labs 2 semester/Proga_4Lab_2sem-master/Trapeze.cpp new file mode 100644 index 0000000..d0cead2 --- /dev/null +++ b/C# Labs 2 semester/Proga_4Lab_2sem-master/Trapeze.cpp @@ -0,0 +1,57 @@ +#include "Header.h" +#include +#include +using namespace std; + +Trapeze::Trapeze() +{ +} + +Trapeze::Trapeze(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4) +{ + Side1 = sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2)); + Side2 = sqrt(pow(x3 - x2, 2) + pow(y3 - y2, 2)); + Side3 = sqrt(pow(x4 - x3, 2) + pow(y4 - y3, 2)); + Side4 = sqrt(pow(x4 - x1, 2) + pow(y4 - y1, 2)); + Height = y2 - y1; +} + +Trapeze::Trapeze(const Trapeze& copy) +{ + Side1 = copy.Side1; + Side2 = copy.Side2; + Side3 = copy.Side3; + Side4 = copy.Side4; + Perimeter = copy.Perimeter; + Area = copy.Area; +} + +void Trapeze::PerimeterCalculation() +{ + Perimeter = Side1 + Side2 + Side3 + Side4; +} + +void Trapeze::AreaCalculation() +{ + Area = Height * ((Side1 + Side4) / 2); +} + +Trapeze operator *(Trapeze TR2, Trapeze TR3) +{ + Trapeze TR1 = Trapeze(); + TR1.Side1 = TR2.Side1 * TR3.Side1; + TR1.Side2 = TR2.Side2 * TR3.Side2; + TR1.Side3 = TR2.Side3 * TR3.Side3; + TR1.Side4 = TR2.Side4 * TR3.Side4; + return TR1; +} + +Trapeze operator -(Trapeze TR3, int value) +{ + TR3.Side1 -= value; + TR3.Side2 -= value; + TR3.Side3 -= value; + TR3.Side4 -= value; + + return TR3; +} diff --git a/C# Labs 2 semester/Proga_4Lab_2sem-master/Trapeze.cs b/C# Labs 2 semester/Proga_4Lab_2sem-master/Trapeze.cs new file mode 100644 index 0000000..61e3c1c --- /dev/null +++ b/C# Labs 2 semester/Proga_4Lab_2sem-master/Trapeze.cs @@ -0,0 +1,71 @@ +using System; + +namespace MyLibrary +{ + class Trapeze + { + private double x1, x2, x3, x4, y1, y2, y3, y4; + public double Side1 { get; private set; } + public double Side2 { get; private set; } + public double Side3 { get; private set; } + public double Side4 { get; private set; } + + public double Height { get; private set; } + public double Area { get; private set; } + public double Perimeter { get; private set; } + + public Trapeze() + { + } + + public Trapeze(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4) + { + Side1 = Math.Sqrt(Math.Pow(x2 - x1, 2) + Math.Pow(y2 - y1, 2)); + Side2 = Math.Sqrt(Math.Pow(x3 - x2, 2) + Math.Pow(y3 - y2, 2)); + Side3 = Math.Sqrt(Math.Pow(x4 - x3, 2) + Math.Pow(y4 - y3, 2)); + Side4 = Math.Sqrt(Math.Pow(x4 - x1, 2) + Math.Pow(y4 - y1, 2)); + Height = y2 - y1; + } + + public Trapeze(Trapeze copy) + { + Side1 = copy.Side1; + Side2 = copy.Side2; + Side3 = copy.Side3; + Side4 = copy.Side4; + Perimeter = copy.Perimeter; + Area = copy.Area; + } + + public void PerimeterCalculation() + { + Perimeter = Side1 + Side2 + Side3 + Side4; + } + + public void AreaCalculation() + { + Area = Height * ((Side1 + Side4) / 2); + } + + public static Trapeze operator *(Trapeze TR2, Trapeze TR3) + { + Trapeze TR1 = new Trapeze(); + TR1.Side1 = TR2.Side1 * TR3.Side1; + TR1.Side2 = TR2.Side2 * TR3.Side2; + TR1.Side3 = TR2.Side3 * TR3.Side3; + TR1.Side4 = TR2.Side4 * TR3.Side4; + return TR1; + } + + public static Trapeze operator -(Trapeze TR3, int value) + { + TR3.Side1 -= value; + TR3.Side2 -= value; + TR3.Side3 -= value; + TR3.Side4 -= value; + + return TR3; + } + + } +} diff --git a/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/heh.obj b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/heh.obj new file mode 100644 index 0000000..6ba09e5 Binary files /dev/null and b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/heh.obj differ diff --git a/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.exe b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.exe new file mode 100644 index 0000000..89f2a6c Binary files /dev/null and b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.exe differ diff --git a/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.exe.recipe b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.exe.recipe new file mode 100644 index 0000000..406cca0 --- /dev/null +++ b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.exe.recipe @@ -0,0 +1,11 @@ + + + + + C:\Users\An-PC\source\repos\progaok\Debug\progaok.exe + + + + + + \ No newline at end of file diff --git a/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.ilk b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.ilk new file mode 100644 index 0000000..654a767 Binary files /dev/null and b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.ilk differ diff --git a/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.log b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.log new file mode 100644 index 0000000..9aef597 --- /dev/null +++ b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.log @@ -0,0 +1,2 @@ + heh.cpp + progaok.vcxproj -> C:\Users\An-PC\source\repos\progaok\Debug\progaok.exe diff --git a/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.obj b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.obj new file mode 100644 index 0000000..e01158b Binary files /dev/null and b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.obj differ diff --git a/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.pdb b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.pdb new file mode 100644 index 0000000..4573c81 Binary files /dev/null and b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.pdb differ diff --git a/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.tlog/CL.command.1.tlog b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.tlog/CL.command.1.tlog new file mode 100644 index 0000000..202606b Binary files /dev/null and b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.tlog/CL.command.1.tlog differ diff --git a/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.tlog/CL.read.1.tlog b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.tlog/CL.read.1.tlog new file mode 100644 index 0000000..afb869f Binary files /dev/null and b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.tlog/CL.read.1.tlog differ diff --git a/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.tlog/CL.write.1.tlog b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.tlog/CL.write.1.tlog new file mode 100644 index 0000000..97ae1d8 Binary files /dev/null and b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.tlog/CL.write.1.tlog differ diff --git a/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.tlog/link.command.1.tlog b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.tlog/link.command.1.tlog new file mode 100644 index 0000000..67a5430 Binary files /dev/null and b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.tlog/link.command.1.tlog differ diff --git a/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.tlog/link.read.1.tlog b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.tlog/link.read.1.tlog new file mode 100644 index 0000000..8162e86 Binary files /dev/null and b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.tlog/link.read.1.tlog differ diff --git a/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.tlog/link.write.1.tlog b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.tlog/link.write.1.tlog new file mode 100644 index 0000000..7288943 Binary files /dev/null and b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.tlog/link.write.1.tlog differ diff --git a/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.tlog/progaok.lastbuildstate b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.tlog/progaok.lastbuildstate new file mode 100644 index 0000000..af58303 --- /dev/null +++ b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.tlog/progaok.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.28.29333:TargetPlatformVersion=10.0.18362.0: +Debug|Win32|C:\Users\An-PC\source\repos\progaok\| diff --git a/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.vcxproj.FileListAbsolute.txt b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..9312339 --- /dev/null +++ b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/progaok.vcxproj.FileListAbsolute.txt @@ -0,0 +1,2 @@ +C:\Users\An-PC\source\repos\progaok\Debug\progaok.exe +C:\Users\An-PC\source\repos\progaok\Debug\progaok.pdb diff --git a/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/vc142.idb b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/vc142.idb new file mode 100644 index 0000000..3abfe53 Binary files /dev/null and b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/vc142.idb differ diff --git a/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/vc142.pdb b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/vc142.pdb new file mode 100644 index 0000000..2157047 Binary files /dev/null and b/C# Labs 2 semester/Programming_1Lab-master/progaok/Debug/vc142.pdb differ diff --git a/C# Labs 2 semester/Programming_1Lab-master/progaok/heh.cpp b/C# Labs 2 semester/Programming_1Lab-master/progaok/heh.cpp new file mode 100644 index 0000000..9cefab1 --- /dev/null +++ b/C# Labs 2 semester/Programming_1Lab-master/progaok/heh.cpp @@ -0,0 +1,37 @@ +#include "heh.h" + +void Decreased(int& decr) +{ + int mask = 1; + while ((decr & mask) == 0) + { + decr ^= mask; + mask <<= 1; + } + decr ^= mask; +} + +bool Compare(int num1, int num2) //ôóíêö³ÿ, ùî ïîð³âíþº äâà ö³ëèõ ÷èñëà íà á³òîâîìó ð³âí³ +{ + int size = sizeof(int) * 8 - 1; + int bitN1 = (num1 >> size) & 1, bitN2 = (num2 >> size) & 1; + if (bitN1 == 1 && bitN2 == 0) + return 0; + else if (bitN1 == 0 && bitN2 == 1) + return 1; + else + { + for (int i = size; i >= 0; i--) + { + bitN1 = (num1 >> i) & 1; + bitN2 = (num2 >> i) & 1; + if (bitN1 != bitN2 && bitN1 == 1) + return 1; + else if (bitN1 != bitN2) + return 0; + } + } + return 0; +} + + diff --git a/C# Labs 2 semester/Programming_1Lab-master/progaok/heh.h b/C# Labs 2 semester/Programming_1Lab-master/progaok/heh.h new file mode 100644 index 0000000..ca1166f --- /dev/null +++ b/C# Labs 2 semester/Programming_1Lab-master/progaok/heh.h @@ -0,0 +1,9 @@ +#pragma once +#include +#include +#include +#include +using namespace std; + +void Decreased(int&); +bool Compare(int, int); diff --git a/C# Labs 2 semester/Programming_1Lab-master/progaok/progaok.cpp b/C# Labs 2 semester/Programming_1Lab-master/progaok/progaok.cpp new file mode 100644 index 0000000..d35bddf --- /dev/null +++ b/C# Labs 2 semester/Programming_1Lab-master/progaok/progaok.cpp @@ -0,0 +1,27 @@ +#include "heh.h" + +int main() +{ + setlocale(LC_ALL, "rus"); + int decr; + cin >> decr; + Decreased(decr); + cout << decr << endl; + + int num1, num2; + cin >> num1 >> num2; + int comparison; + comparison = Compare(num1, num2); + if (comparison == 0) + { + cout << num1 << " < " << num2 << endl; + cout << "True"; + } + else + { + cout << num1 << " < " << num2 << endl; + cout << "False"; + } + system("pause"); +} + diff --git a/C# Labs 2 semester/Programming_1Lab-master/progaok/progaok.sln b/C# Labs 2 semester/Programming_1Lab-master/progaok/progaok.sln new file mode 100644 index 0000000..ffd22dc --- /dev/null +++ b/C# Labs 2 semester/Programming_1Lab-master/progaok/progaok.sln @@ -0,0 +1,49 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30907.101 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "progaok", "progaok.vcxproj", "{954B7BA1-9DDC-4A38-BC02-E801A7DEE673}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "progasharp1", "..\progasharp1\progasharp1.csproj", "{FF16AF51-F643-4D36-AD37-A011D1551488}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {954B7BA1-9DDC-4A38-BC02-E801A7DEE673}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {954B7BA1-9DDC-4A38-BC02-E801A7DEE673}.Debug|x64.ActiveCfg = Debug|x64 + {954B7BA1-9DDC-4A38-BC02-E801A7DEE673}.Debug|x64.Build.0 = Debug|x64 + {954B7BA1-9DDC-4A38-BC02-E801A7DEE673}.Debug|x86.ActiveCfg = Debug|Win32 + {954B7BA1-9DDC-4A38-BC02-E801A7DEE673}.Debug|x86.Build.0 = Debug|Win32 + {954B7BA1-9DDC-4A38-BC02-E801A7DEE673}.Release|Any CPU.ActiveCfg = Release|Win32 + {954B7BA1-9DDC-4A38-BC02-E801A7DEE673}.Release|x64.ActiveCfg = Release|x64 + {954B7BA1-9DDC-4A38-BC02-E801A7DEE673}.Release|x64.Build.0 = Release|x64 + {954B7BA1-9DDC-4A38-BC02-E801A7DEE673}.Release|x86.ActiveCfg = Release|Win32 + {954B7BA1-9DDC-4A38-BC02-E801A7DEE673}.Release|x86.Build.0 = Release|Win32 + {FF16AF51-F643-4D36-AD37-A011D1551488}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FF16AF51-F643-4D36-AD37-A011D1551488}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FF16AF51-F643-4D36-AD37-A011D1551488}.Debug|x64.ActiveCfg = Debug|Any CPU + {FF16AF51-F643-4D36-AD37-A011D1551488}.Debug|x64.Build.0 = Debug|Any CPU + {FF16AF51-F643-4D36-AD37-A011D1551488}.Debug|x86.ActiveCfg = Debug|Any CPU + {FF16AF51-F643-4D36-AD37-A011D1551488}.Debug|x86.Build.0 = Debug|Any CPU + {FF16AF51-F643-4D36-AD37-A011D1551488}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FF16AF51-F643-4D36-AD37-A011D1551488}.Release|Any CPU.Build.0 = Release|Any CPU + {FF16AF51-F643-4D36-AD37-A011D1551488}.Release|x64.ActiveCfg = Release|Any CPU + {FF16AF51-F643-4D36-AD37-A011D1551488}.Release|x64.Build.0 = Release|Any CPU + {FF16AF51-F643-4D36-AD37-A011D1551488}.Release|x86.ActiveCfg = Release|Any CPU + {FF16AF51-F643-4D36-AD37-A011D1551488}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {70D383FB-8DC3-4C8E-BB4E-F02B6D184B6E} + EndGlobalSection +EndGlobal diff --git a/C# Labs 2 semester/Programming_1Lab-master/progaok/progaok.vcxproj b/C# Labs 2 semester/Programming_1Lab-master/progaok/progaok.vcxproj new file mode 100644 index 0000000..254074a --- /dev/null +++ b/C# Labs 2 semester/Programming_1Lab-master/progaok/progaok.vcxproj @@ -0,0 +1,151 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {954b7ba1-9ddc-4a38-bc02-e801a7dee673} + progaok + 10.0 + + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + false + + + true + + + false + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + + + + \ No newline at end of file diff --git a/C# Labs 2 semester/Programming_1Lab-master/progaok/progaok.vcxproj.filters b/C# Labs 2 semester/Programming_1Lab-master/progaok/progaok.vcxproj.filters new file mode 100644 index 0000000..69a8925 --- /dev/null +++ b/C# Labs 2 semester/Programming_1Lab-master/progaok/progaok.vcxproj.filters @@ -0,0 +1,30 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Source Files + + + Source Files + + + + + Header Files + + + \ No newline at end of file diff --git a/C# Labs 2 semester/Programming_1Lab-master/progaok/progaok.vcxproj.user b/C# Labs 2 semester/Programming_1Lab-master/progaok/progaok.vcxproj.user new file mode 100644 index 0000000..0f14913 --- /dev/null +++ b/C# Labs 2 semester/Programming_1Lab-master/progaok/progaok.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/C# Labs 2 semester/Programming_1Lab-master/progasharp1/Program.cs b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/Program.cs new file mode 100644 index 0000000..8442f56 --- /dev/null +++ b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/Program.cs @@ -0,0 +1,65 @@ +using System; + +namespace progasharp1 +{ + class Program + { + static void Decreased(ref int decr) + { + int mask = 1; + while ((decr & mask) == 0) + { + decr ^= mask; + mask <<= 1; + } + decr ^= mask; + } + + static int Compare(int num1, int num2) + { + int size = sizeof(int) * 8 - 1; + int bitN1 = (num1 >> size) & 1, bitN2 = (num2 >> size) & 1; + if (bitN1 == 1 && bitN2 == 0) + return 0; + else if (bitN1 == 0 && bitN2 == 1) + return 1; + else + { + for (int i = size; i >= 0; i--) + { + bitN1 = (num1 >> i) & 1; + bitN2 = (num2 >> i) & 1; + if (bitN1 != bitN2 && bitN1 == 1) + return 1; + else if (bitN1 != bitN2) + return 0; + } + } + return 0; + } + + static void Main(string[] args) + { + int decr = Convert.ToInt32(Console.ReadLine()); + Decreased(ref decr); + Console.WriteLine(decr); + + + int num1 = Convert.ToInt32(Console.ReadLine()); + int num2 = Convert.ToInt32(Console.ReadLine()); + + int result = Compare(num1, num2); + if (result == 0) + { + Console.WriteLine(num1 + " < " + num2); + Console.WriteLine("True"); + } + else + { + Console.WriteLine(num1 + " < " + num2); + Console.WriteLine("False"); + } + Console.ReadKey(); + } + } +} \ No newline at end of file diff --git a/C# Labs 2 semester/Programming_1Lab-master/progasharp1/bin/Debug/netcoreapp3.1/progasharp1.deps.json b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/bin/Debug/netcoreapp3.1/progasharp1.deps.json new file mode 100644 index 0000000..b8481fd --- /dev/null +++ b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/bin/Debug/netcoreapp3.1/progasharp1.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v3.1", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v3.1": { + "progasharp1/1.0.0": { + "runtime": { + "progasharp1.dll": {} + } + } + } + }, + "libraries": { + "progasharp1/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/C# Labs 2 semester/Programming_1Lab-master/progasharp1/bin/Debug/netcoreapp3.1/progasharp1.dll b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/bin/Debug/netcoreapp3.1/progasharp1.dll new file mode 100644 index 0000000..dbcb94c Binary files /dev/null and b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/bin/Debug/netcoreapp3.1/progasharp1.dll differ diff --git a/C# Labs 2 semester/Programming_1Lab-master/progasharp1/bin/Debug/netcoreapp3.1/progasharp1.exe b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/bin/Debug/netcoreapp3.1/progasharp1.exe new file mode 100644 index 0000000..a1e2c97 Binary files /dev/null and b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/bin/Debug/netcoreapp3.1/progasharp1.exe differ diff --git a/C# Labs 2 semester/Programming_1Lab-master/progasharp1/bin/Debug/netcoreapp3.1/progasharp1.pdb b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/bin/Debug/netcoreapp3.1/progasharp1.pdb new file mode 100644 index 0000000..ae839ae Binary files /dev/null and b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/bin/Debug/netcoreapp3.1/progasharp1.pdb differ diff --git a/C# Labs 2 semester/Programming_1Lab-master/progasharp1/bin/Debug/netcoreapp3.1/progasharp1.runtimeconfig.dev.json b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/bin/Debug/netcoreapp3.1/progasharp1.runtimeconfig.dev.json new file mode 100644 index 0000000..a7ae1f7 --- /dev/null +++ b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/bin/Debug/netcoreapp3.1/progasharp1.runtimeconfig.dev.json @@ -0,0 +1,8 @@ +{ + "runtimeOptions": { + "additionalProbingPaths": [ + "C:\\Users\\An-PC\\.dotnet\\store\\|arch|\\|tfm|", + "C:\\Users\\An-PC\\.nuget\\packages" + ] + } +} \ No newline at end of file diff --git a/C# Labs 2 semester/Programming_1Lab-master/progasharp1/bin/Debug/netcoreapp3.1/progasharp1.runtimeconfig.json b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/bin/Debug/netcoreapp3.1/progasharp1.runtimeconfig.json new file mode 100644 index 0000000..48b8c87 --- /dev/null +++ b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/bin/Debug/netcoreapp3.1/progasharp1.runtimeconfig.json @@ -0,0 +1,9 @@ +{ + "runtimeOptions": { + "tfm": "netcoreapp3.1", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "3.1.0" + } + } +} \ No newline at end of file diff --git a/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/apphost.exe b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/apphost.exe new file mode 100644 index 0000000..a1e2c97 Binary files /dev/null and b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/apphost.exe differ diff --git a/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/progasharp1.AssemblyInfo.cs b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/progasharp1.AssemblyInfo.cs new file mode 100644 index 0000000..b0d6009 --- /dev/null +++ b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/progasharp1.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// 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. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("progasharp1")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("progasharp1")] +[assembly: System.Reflection.AssemblyTitleAttribute("progasharp1")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/progasharp1.AssemblyInfoInputs.cache b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/progasharp1.AssemblyInfoInputs.cache new file mode 100644 index 0000000..d2c9755 --- /dev/null +++ b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/progasharp1.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +63bb2c7df6594142a1d2ec542c38cdbe9e160ed3 diff --git a/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/progasharp1.assets.cache b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/progasharp1.assets.cache new file mode 100644 index 0000000..fe59c4a Binary files /dev/null and b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/progasharp1.assets.cache differ diff --git a/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/progasharp1.csproj.CoreCompileInputs.cache b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/progasharp1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..9f3ec4f --- /dev/null +++ b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/progasharp1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +9af70c8b7d0fbc9b958de4a94260911d6eae9cd1 diff --git a/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/progasharp1.csproj.FileListAbsolute.txt b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/progasharp1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..99846d4 --- /dev/null +++ b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/progasharp1.csproj.FileListAbsolute.txt @@ -0,0 +1,13 @@ +C:\Users\An-PC\source\repos\progasharp1\bin\Debug\netcoreapp3.1\progasharp1.exe +C:\Users\An-PC\source\repos\progasharp1\bin\Debug\netcoreapp3.1\progasharp1.deps.json +C:\Users\An-PC\source\repos\progasharp1\bin\Debug\netcoreapp3.1\progasharp1.runtimeconfig.json +C:\Users\An-PC\source\repos\progasharp1\bin\Debug\netcoreapp3.1\progasharp1.runtimeconfig.dev.json +C:\Users\An-PC\source\repos\progasharp1\bin\Debug\netcoreapp3.1\progasharp1.dll +C:\Users\An-PC\source\repos\progasharp1\bin\Debug\netcoreapp3.1\progasharp1.pdb +C:\Users\An-PC\source\repos\progasharp1\obj\Debug\netcoreapp3.1\progasharp1.csprojAssemblyReference.cache +C:\Users\An-PC\source\repos\progasharp1\obj\Debug\netcoreapp3.1\progasharp1.AssemblyInfoInputs.cache +C:\Users\An-PC\source\repos\progasharp1\obj\Debug\netcoreapp3.1\progasharp1.AssemblyInfo.cs +C:\Users\An-PC\source\repos\progasharp1\obj\Debug\netcoreapp3.1\progasharp1.csproj.CoreCompileInputs.cache +C:\Users\An-PC\source\repos\progasharp1\obj\Debug\netcoreapp3.1\progasharp1.dll +C:\Users\An-PC\source\repos\progasharp1\obj\Debug\netcoreapp3.1\progasharp1.pdb +C:\Users\An-PC\source\repos\progasharp1\obj\Debug\netcoreapp3.1\progasharp1.genruntimeconfig.cache diff --git a/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/progasharp1.csprojAssemblyReference.cache b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/progasharp1.csprojAssemblyReference.cache new file mode 100644 index 0000000..09f733c Binary files /dev/null and b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/progasharp1.csprojAssemblyReference.cache differ diff --git a/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/progasharp1.dll b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/progasharp1.dll new file mode 100644 index 0000000..dbcb94c Binary files /dev/null and b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/progasharp1.dll differ diff --git a/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/progasharp1.genruntimeconfig.cache b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/progasharp1.genruntimeconfig.cache new file mode 100644 index 0000000..c029a18 --- /dev/null +++ b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/progasharp1.genruntimeconfig.cache @@ -0,0 +1 @@ +1ec46da1547607fca71f86e8cb6e256ea75d41d1 diff --git a/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/progasharp1.pdb b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/progasharp1.pdb new file mode 100644 index 0000000..ae839ae Binary files /dev/null and b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/Debug/netcoreapp3.1/progasharp1.pdb differ diff --git a/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/progasharp1.csproj.nuget.dgspec.json b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/progasharp1.csproj.nuget.dgspec.json new file mode 100644 index 0000000..812537c --- /dev/null +++ b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/progasharp1.csproj.nuget.dgspec.json @@ -0,0 +1,62 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\An-PC\\source\\repos\\progasharp1\\progasharp1.csproj": {} + }, + "projects": { + "C:\\Users\\An-PC\\source\\repos\\progasharp1\\progasharp1.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\An-PC\\source\\repos\\progasharp1\\progasharp1.csproj", + "projectName": "progasharp1", + "projectPath": "C:\\Users\\An-PC\\source\\repos\\progasharp1\\progasharp1.csproj", + "packagesPath": "C:\\Users\\An-PC\\.nuget\\packages\\", + "outputPath": "C:\\Users\\An-PC\\source\\repos\\progasharp1\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\An-PC\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "netcoreapp3.1" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "netcoreapp3.1", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "netcoreapp3.1", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.102\\RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/progasharp1.csproj.nuget.g.props b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/progasharp1.csproj.nuget.g.props new file mode 100644 index 0000000..ae04d61 --- /dev/null +++ b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/progasharp1.csproj.nuget.g.props @@ -0,0 +1,18 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\An-PC\.nuget\packages\ + PackageReference + 5.8.1 + + + + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + + \ No newline at end of file diff --git a/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/progasharp1.csproj.nuget.g.targets b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/progasharp1.csproj.nuget.g.targets new file mode 100644 index 0000000..d212750 --- /dev/null +++ b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/progasharp1.csproj.nuget.g.targets @@ -0,0 +1,6 @@ + + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + + \ No newline at end of file diff --git a/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/project.assets.json b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/project.assets.json new file mode 100644 index 0000000..b3bb4a6 --- /dev/null +++ b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/project.assets.json @@ -0,0 +1,67 @@ +{ + "version": 3, + "targets": { + ".NETCoreApp,Version=v3.1": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + ".NETCoreApp,Version=v3.1": [] + }, + "packageFolders": { + "C:\\Users\\An-PC\\.nuget\\packages\\": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\An-PC\\source\\repos\\progasharp1\\progasharp1.csproj", + "projectName": "progasharp1", + "projectPath": "C:\\Users\\An-PC\\source\\repos\\progasharp1\\progasharp1.csproj", + "packagesPath": "C:\\Users\\An-PC\\.nuget\\packages\\", + "outputPath": "C:\\Users\\An-PC\\source\\repos\\progasharp1\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\An-PC\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "netcoreapp3.1" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "netcoreapp3.1", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "netcoreapp3.1", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.102\\RuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/project.nuget.cache b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/project.nuget.cache new file mode 100644 index 0000000..6788c95 --- /dev/null +++ b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "X13c3T3EjS1v2GVcGhrPnlvd2aPg5Fj80n3OL22T71INAs+EJi28Jvn9cYpNdWEtxkmyOvcACaMswahO6ZyH+w==", + "success": true, + "projectFilePath": "C:\\Users\\An-PC\\source\\repos\\progasharp1\\progasharp1.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file diff --git a/C# Labs 2 semester/Programming_1Lab-master/progasharp1/progasharp1.csproj b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/progasharp1.csproj new file mode 100644 index 0000000..d453e9a --- /dev/null +++ b/C# Labs 2 semester/Programming_1Lab-master/progasharp1/progasharp1.csproj @@ -0,0 +1,8 @@ + + + + Exe + netcoreapp3.1 + + +