diff --git a/HomeTask's_C++/C++T1/.vs/C++T1/v16/.suo b/HomeTask's_C++/C++T1/.vs/C++T1/v16/.suo
new file mode 100644
index 0000000..fe6d1f8
Binary files /dev/null and b/HomeTask's_C++/C++T1/.vs/C++T1/v16/.suo differ
diff --git a/HomeTask's_C++/C++T1/.vs/C++T1/v16/Browse.VC.db b/HomeTask's_C++/C++T1/.vs/C++T1/v16/Browse.VC.db
new file mode 100644
index 0000000..25ffa76
Binary files /dev/null and b/HomeTask's_C++/C++T1/.vs/C++T1/v16/Browse.VC.db differ
diff --git a/HomeTask's_C++/C++T1/.vs/C++T1/v16/ipch/AutoPCH/6450d28e09eb9458/MAIN.ipch b/HomeTask's_C++/C++T1/.vs/C++T1/v16/ipch/AutoPCH/6450d28e09eb9458/MAIN.ipch
new file mode 100644
index 0000000..23e97a3
Binary files /dev/null and b/HomeTask's_C++/C++T1/.vs/C++T1/v16/ipch/AutoPCH/6450d28e09eb9458/MAIN.ipch differ
diff --git a/HomeTask's_C++/C++T1/.vs/C++T1/v16/ipch/AutoPCH/d73e4f691043637/MAIN.ipch b/HomeTask's_C++/C++T1/.vs/C++T1/v16/ipch/AutoPCH/d73e4f691043637/MAIN.ipch
new file mode 100644
index 0000000..020621c
Binary files /dev/null and b/HomeTask's_C++/C++T1/.vs/C++T1/v16/ipch/AutoPCH/d73e4f691043637/MAIN.ipch differ
diff --git a/HomeTask's_C++/C++T1/.vs/C++T1/v16/ipch/AutoPCH/f20045948275fda2/MAIN.ipch b/HomeTask's_C++/C++T1/.vs/C++T1/v16/ipch/AutoPCH/f20045948275fda2/MAIN.ipch
new file mode 100644
index 0000000..1989169
Binary files /dev/null and b/HomeTask's_C++/C++T1/.vs/C++T1/v16/ipch/AutoPCH/f20045948275fda2/MAIN.ipch differ
diff --git a/HomeTask's_C++/C++T1/.vs/ProjectSettings.json b/HomeTask's_C++/C++T1/.vs/ProjectSettings.json
new file mode 100644
index 0000000..4e72f3b
--- /dev/null
+++ b/HomeTask's_C++/C++T1/.vs/ProjectSettings.json
@@ -0,0 +1,3 @@
+{
+ "CurrentProjectSetting": "Нет конфигураций"
+}
\ No newline at end of file
diff --git a/HomeTask's_C++/C++T1/.vs/VSWorkspaceState.json b/HomeTask's_C++/C++T1/.vs/VSWorkspaceState.json
new file mode 100644
index 0000000..0da1ab6
--- /dev/null
+++ b/HomeTask's_C++/C++T1/.vs/VSWorkspaceState.json
@@ -0,0 +1,7 @@
+{
+ "ExpandedNodes": [
+ ""
+ ],
+ "SelectedNode": "\\C++T1.sln",
+ "PreviewInSolutionExplorer": false
+}
\ No newline at end of file
diff --git a/HomeTask's_C++/C++T1/.vs/slnx.sqlite b/HomeTask's_C++/C++T1/.vs/slnx.sqlite
new file mode 100644
index 0000000..62e8916
Binary files /dev/null and b/HomeTask's_C++/C++T1/.vs/slnx.sqlite differ
diff --git a/HomeTask's_C++/C++T1/C++T1.sln b/HomeTask's_C++/C++T1/C++T1.sln
new file mode 100644
index 0000000..8a1ce09
--- /dev/null
+++ b/HomeTask's_C++/C++T1/C++T1.sln
@@ -0,0 +1,31 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.31624.102
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "C++T1", "C++T1\C++T1.vcxproj", "{8CF07834-930D-408B-9384-A87248110411}"
+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
+ {8CF07834-930D-408B-9384-A87248110411}.Debug|x64.ActiveCfg = Debug|x64
+ {8CF07834-930D-408B-9384-A87248110411}.Debug|x64.Build.0 = Debug|x64
+ {8CF07834-930D-408B-9384-A87248110411}.Debug|x86.ActiveCfg = Debug|Win32
+ {8CF07834-930D-408B-9384-A87248110411}.Debug|x86.Build.0 = Debug|Win32
+ {8CF07834-930D-408B-9384-A87248110411}.Release|x64.ActiveCfg = Release|x64
+ {8CF07834-930D-408B-9384-A87248110411}.Release|x64.Build.0 = Release|x64
+ {8CF07834-930D-408B-9384-A87248110411}.Release|x86.ActiveCfg = Release|Win32
+ {8CF07834-930D-408B-9384-A87248110411}.Release|x86.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {4D7EDE19-A41B-49A8-B654-12ABF1782A3F}
+ EndGlobalSection
+EndGlobal
diff --git a/HomeTask's_C++/C++T1/C++T1/C++T1.vcxproj b/HomeTask's_C++/C++T1/C++T1/C++T1.vcxproj
new file mode 100644
index 0000000..e6df301
--- /dev/null
+++ b/HomeTask's_C++/C++T1/C++T1/C++T1.vcxproj
@@ -0,0 +1,147 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+ Debug
+ x64
+
+
+ Release
+ x64
+
+
+
+ 16.0
+ Win32Proj
+ {8cf07834-930d-408b-9384-a87248110411}
+ CT1
+ 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/HomeTask's_C++/C++T1/C++T1/C++T1.vcxproj.filters b/HomeTask's_C++/C++T1/C++T1/C++T1.vcxproj.filters
new file mode 100644
index 0000000..e8deb3d
--- /dev/null
+++ b/HomeTask's_C++/C++T1/C++T1/C++T1.vcxproj.filters
@@ -0,0 +1,22 @@
+
+
+
+
+ {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
+
+
+
+
+ Исходные файлы
+
+
+
\ No newline at end of file
diff --git a/HomeTask's_C++/C++T1/C++T1/C++T1.vcxproj.user b/HomeTask's_C++/C++T1/C++T1/C++T1.vcxproj.user
new file mode 100644
index 0000000..88a5509
--- /dev/null
+++ b/HomeTask's_C++/C++T1/C++T1/C++T1.vcxproj.user
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/HomeTask's_C++/C++T1/C++T1/main.cpp b/HomeTask's_C++/C++T1/C++T1/main.cpp
new file mode 100644
index 0000000..abca112
--- /dev/null
+++ b/HomeTask's_C++/C++T1/C++T1/main.cpp
@@ -0,0 +1,95 @@
+// .. 2 ( ).
+
+#include
+#include
+using namespace std;
+
+class Vector3D
+{
+ private:
+ int x, y, z;
+
+ public:
+ //friend std::ostream& operator << (std::ostream& out, const Vector3D &vector);
+
+ Vector3D(int _x = 0, int _y = 0, int _z = 0)
+ {
+ x = _x;
+ y = _y;
+ z = _z;
+ };
+ void set_coord(int a, int b, int c)
+ {
+ x = a;
+ y = b;
+ z = c;
+ };
+
+ void get_coord()
+ {
+ cout << " Coord x - " << x << " Coord y - " << y << " Coord z - " << z << endl;
+ };
+
+ int getx() const { return x; }
+ int gety() const { return y; }
+ int getz() const { return z; }
+
+ Vector3D operator =(const Vector3D& other)
+ {
+ Vector3D equal;
+ equal.x = this->x = other.x;
+ equal.y = this->y = other.y;
+ equal.z = this->z = other.z;
+ return equal;
+ };
+
+ Vector3D operator +(const Vector3D& other)
+ {
+ Vector3D sum;
+ sum.x = this->x + other.x;
+ sum.y = this->y + other.y;
+ sum.z = this->z + other.z;
+ return sum;
+ };
+
+ Vector3D operator -(const Vector3D& other)
+ {
+ Vector3D dif;
+ dif.x = this->x - other.x;
+ dif.y = this->y - other.y;
+ dif.z = this->z - other.z;
+ return dif;
+ };
+
+};
+
+//std::ostream& operator << (std::ostream& out, const Vector3D &vector);
+
+int main(int argc, const char * argv[]) {
+
+ setlocale(LC_ALL, "Russian");
+
+ int p1, p2, p3, p4, p5, p6;
+ cout << "Enter a first vector coord's:" << endl;
+ cin >> p1 >> p2 >> p3;
+ cout << "Enter a second vector coord's:" << endl;
+ cin >> p4 >> p5 >> p6;
+ Vector3D vector1;
+ vector1.set_coord(p1, p2, p3);
+ vector1.get_coord();
+ Vector3D vector2;
+ vector2.set_coord(p4, p5, p6);
+ vector2.get_coord();
+
+ Vector3D vectorsum = vector1.operator+(vector2);
+ std::cout << "Vector sum is = " << vectorsum.getx() << " " << vectorsum.gety() << " " << vectorsum.getz() << endl;
+
+ Vector3D vectordif = vector1.operator-(vector2);
+ std::cout << "Vector diff is = " << vectordif.getx() << " " << vectordif.gety() << " " << vectordif.getz() << endl;
+
+ Vector3D vectoreq = vector1.operator=(vector2);
+ std::cout << "Vector equal is = " << vectoreq.getx() << " " << vectoreq.gety() << " " << vectoreq.getz() << endl;
+
+ system("pause");
+ return 0;
+}
\ No newline at end of file
diff --git a/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.exe.recipe b/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.exe.recipe
new file mode 100644
index 0000000..66e0f94
--- /dev/null
+++ b/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.exe.recipe
@@ -0,0 +1,11 @@
+
+
+
+
+ D:\University\GitHub\Alexander1\TemplateWithClasses\HomeTask's_C++\C++T1\x64\Debug\C++T1.exe
+
+
+
+
+
+
\ No newline at end of file
diff --git a/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.ilk b/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.ilk
new file mode 100644
index 0000000..d749524
Binary files /dev/null and b/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.ilk differ
diff --git a/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.log b/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.log
new file mode 100644
index 0000000..9eaec8d
--- /dev/null
+++ b/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.log
@@ -0,0 +1,2 @@
+ main.cpp
+ C++T1.vcxproj -> D:\University\GitHub\Alexander1\TemplateWithClasses\HomeTask's_C++\C++T1\x64\Debug\C++T1.exe
diff --git a/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.tlog/C++T1.lastbuildstate b/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.tlog/C++T1.lastbuildstate
new file mode 100644
index 0000000..06794cb
--- /dev/null
+++ b/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.tlog/C++T1.lastbuildstate
@@ -0,0 +1,2 @@
+PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.29.30133:TargetPlatformVersion=10.0.19041.0:
+Debug|x64|D:\University\GitHub\Alexander1\TemplateWithClasses\HomeTask's_C++\C++T1\|
diff --git a/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.tlog/CL.command.1.tlog b/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.tlog/CL.command.1.tlog
new file mode 100644
index 0000000..cdb0aeb
Binary files /dev/null and b/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.tlog/CL.command.1.tlog differ
diff --git a/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.tlog/CL.read.1.tlog b/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.tlog/CL.read.1.tlog
new file mode 100644
index 0000000..78ae6cf
Binary files /dev/null and b/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.tlog/CL.read.1.tlog differ
diff --git a/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.tlog/CL.write.1.tlog b/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.tlog/CL.write.1.tlog
new file mode 100644
index 0000000..495b10c
Binary files /dev/null and b/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.tlog/CL.write.1.tlog differ
diff --git a/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.tlog/link.command.1.tlog b/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.tlog/link.command.1.tlog
new file mode 100644
index 0000000..0221d79
Binary files /dev/null and b/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.tlog/link.command.1.tlog differ
diff --git a/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.tlog/link.read.1.tlog b/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.tlog/link.read.1.tlog
new file mode 100644
index 0000000..53c0d90
Binary files /dev/null and b/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.tlog/link.read.1.tlog differ
diff --git a/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.tlog/link.write.1.tlog b/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.tlog/link.write.1.tlog
new file mode 100644
index 0000000..eab7ae5
Binary files /dev/null and b/HomeTask's_C++/C++T1/C++T1/x64/Debug/C++T1.tlog/link.write.1.tlog differ
diff --git a/HomeTask's_C++/C++T1/C++T1/x64/Debug/main.obj b/HomeTask's_C++/C++T1/C++T1/x64/Debug/main.obj
new file mode 100644
index 0000000..8b38b17
Binary files /dev/null and b/HomeTask's_C++/C++T1/C++T1/x64/Debug/main.obj differ
diff --git a/HomeTask's_C++/C++T1/C++T1/x64/Debug/vc142.idb b/HomeTask's_C++/C++T1/C++T1/x64/Debug/vc142.idb
new file mode 100644
index 0000000..9c4d94a
Binary files /dev/null and b/HomeTask's_C++/C++T1/C++T1/x64/Debug/vc142.idb differ
diff --git a/HomeTask's_C++/C++T1/C++T1/x64/Debug/vc142.pdb b/HomeTask's_C++/C++T1/C++T1/x64/Debug/vc142.pdb
new file mode 100644
index 0000000..7140e70
Binary files /dev/null and b/HomeTask's_C++/C++T1/C++T1/x64/Debug/vc142.pdb differ
diff --git a/HomeTask's_C++/C++T1/x64/Debug/C++T1.exe b/HomeTask's_C++/C++T1/x64/Debug/C++T1.exe
new file mode 100644
index 0000000..634804f
Binary files /dev/null and b/HomeTask's_C++/C++T1/x64/Debug/C++T1.exe differ
diff --git a/HomeTask's_C++/C++T1/x64/Debug/C++T1.pdb b/HomeTask's_C++/C++T1/x64/Debug/C++T1.pdb
new file mode 100644
index 0000000..de559b9
Binary files /dev/null and b/HomeTask's_C++/C++T1/x64/Debug/C++T1.pdb differ
diff --git a/HomeTask's_C++/C++_T2.var4/.vs/C++_T2.var4/v16/.suo b/HomeTask's_C++/C++_T2.var4/.vs/C++_T2.var4/v16/.suo
new file mode 100644
index 0000000..2a064b9
Binary files /dev/null and b/HomeTask's_C++/C++_T2.var4/.vs/C++_T2.var4/v16/.suo differ
diff --git a/HomeTask's_C++/C++_T2.var4/.vs/C++_T2.var4/v16/Browse.VC.db b/HomeTask's_C++/C++_T2.var4/.vs/C++_T2.var4/v16/Browse.VC.db
new file mode 100644
index 0000000..ccdd6d3
Binary files /dev/null and b/HomeTask's_C++/C++_T2.var4/.vs/C++_T2.var4/v16/Browse.VC.db differ
diff --git a/HomeTask's_C++/C++_T2.var4/.vs/C++_T2.var4/v16/ipch/AutoPCH/d38d546736e5bb0c/MAIN.ipch b/HomeTask's_C++/C++_T2.var4/.vs/C++_T2.var4/v16/ipch/AutoPCH/d38d546736e5bb0c/MAIN.ipch
new file mode 100644
index 0000000..8b2fad6
Binary files /dev/null and b/HomeTask's_C++/C++_T2.var4/.vs/C++_T2.var4/v16/ipch/AutoPCH/d38d546736e5bb0c/MAIN.ipch differ
diff --git a/HomeTask's_C++/C++_T2.var4/C++_T2.var4.sln b/HomeTask's_C++/C++_T2.var4/C++_T2.var4.sln
new file mode 100644
index 0000000..83a7ed3
--- /dev/null
+++ b/HomeTask's_C++/C++_T2.var4/C++_T2.var4.sln
@@ -0,0 +1,31 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.31624.102
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "C++_T2.var4", "C++_T2.var4\C++_T2.var4.vcxproj", "{A00FE698-1438-441B-96CA-E8C01C430DFB}"
+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
+ {A00FE698-1438-441B-96CA-E8C01C430DFB}.Debug|x64.ActiveCfg = Debug|x64
+ {A00FE698-1438-441B-96CA-E8C01C430DFB}.Debug|x64.Build.0 = Debug|x64
+ {A00FE698-1438-441B-96CA-E8C01C430DFB}.Debug|x86.ActiveCfg = Debug|Win32
+ {A00FE698-1438-441B-96CA-E8C01C430DFB}.Debug|x86.Build.0 = Debug|Win32
+ {A00FE698-1438-441B-96CA-E8C01C430DFB}.Release|x64.ActiveCfg = Release|x64
+ {A00FE698-1438-441B-96CA-E8C01C430DFB}.Release|x64.Build.0 = Release|x64
+ {A00FE698-1438-441B-96CA-E8C01C430DFB}.Release|x86.ActiveCfg = Release|Win32
+ {A00FE698-1438-441B-96CA-E8C01C430DFB}.Release|x86.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {0442A353-23BA-4B2F-80B3-00CE08FFB194}
+ EndGlobalSection
+EndGlobal
diff --git a/HomeTask's_C++/C++_T2.var4/C++_T2.var4/C++_T2.var4.vcxproj b/HomeTask's_C++/C++_T2.var4/C++_T2.var4/C++_T2.var4.vcxproj
new file mode 100644
index 0000000..6babfb1
--- /dev/null
+++ b/HomeTask's_C++/C++_T2.var4/C++_T2.var4/C++_T2.var4.vcxproj
@@ -0,0 +1,147 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+ Debug
+ x64
+
+
+ Release
+ x64
+
+
+
+ 16.0
+ Win32Proj
+ {a00fe698-1438-441b-96ca-e8c01c430dfb}
+ CT2var4
+ 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/HomeTask's_C++/C++_T2.var4/C++_T2.var4/C++_T2.var4.vcxproj.filters b/HomeTask's_C++/C++_T2.var4/C++_T2.var4/C++_T2.var4.vcxproj.filters
new file mode 100644
index 0000000..e8deb3d
--- /dev/null
+++ b/HomeTask's_C++/C++_T2.var4/C++_T2.var4/C++_T2.var4.vcxproj.filters
@@ -0,0 +1,22 @@
+
+
+
+
+ {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
+
+
+
+
+ Исходные файлы
+
+
+
\ No newline at end of file
diff --git a/HomeTask's_C++/C++_T2.var4/C++_T2.var4/C++_T2.var4.vcxproj.user b/HomeTask's_C++/C++_T2.var4/C++_T2.var4/C++_T2.var4.vcxproj.user
new file mode 100644
index 0000000..88a5509
--- /dev/null
+++ b/HomeTask's_C++/C++_T2.var4/C++_T2.var4/C++_T2.var4.vcxproj.user
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/HomeTask's_C++/C++_T2.var4/C++_T2.var4/input.txt b/HomeTask's_C++/C++_T2.var4/C++_T2.var4/input.txt
new file mode 100644
index 0000000..e69de29
diff --git a/HomeTask's_C++/C++_T2.var4/C++_T2.var4/main.cpp b/HomeTask's_C++/C++_T2.var4/C++_T2.var4/main.cpp
new file mode 100644
index 0000000..a252206
--- /dev/null
+++ b/HomeTask's_C++/C++_T2.var4/C++_T2.var4/main.cpp
@@ -0,0 +1,212 @@
+// .. 2. 4.
+
+#include
+#include
+#include
+#include //Read from file's and wtite to file's
+#include
+using namespace std;
+
+class Octal
+{
+ unsigned int number;
+ int size;
+ unsigned char* str;
+
+public:
+ friend ifstream& operator >>(ifstream& fileinput, Octal& result);
+ friend ofstream& operator <<(ofstream& fileout, Octal& result);
+
+ // ~Octal() {}; //;
+
+ unsigned int getNum() //. ( );
+ {
+ return number;
+ };
+
+ Octal() //, ;
+ {
+ str = new unsigned char[1000 - 7];
+ };
+
+ // 1 , . char:
+ void char_arr(unsigned int number) // unsigned char;
+ {
+ stringstream write;
+ string temp;
+ write << oct << number;
+ write >> temp;
+ size = temp.size();
+ str = new unsigned char[size];
+ for (int i = 0; i < size; i++) {
+ str[i] = temp[size - i];
+ }
+ };
+ // endl;
+
+ //:
+
+ // 1: + -:
+
+ Octal operator +(const Octal& oct)
+ {
+ Octal POresult;
+ POresult.number = this->number + oct.number;
+ POresult.char_arr(POresult.number); // char_arr POres.num;
+ cout << POresult.number << endl;
+ return POresult;
+ };
+
+ Octal operator -(const Octal& oct)
+ {
+ Octal MOresult;
+ MOresult.number = this->number - oct.number;
+ MOresult.char_arr(MOresult.number); // char_arr MOres.num;
+ cout << MOresult.number << endl;
+ return MOresult;
+ };
+
+ // 2: :
+
+ bool operator ==(const Octal& oct)
+ {
+ bool temp = this->number = oct.number ? true : false;
+ cout << temp << endl;
+ return temp;
+ };
+
+ bool operator!=(const Octal& oct)
+ {
+ bool temp = this->number != oct.number ? true : false;
+ cout << temp << endl;
+ return temp;
+ };
+
+ bool operator>(const Octal& oct)
+ {
+ bool temp = this->number > oct.number ? true : false;
+ cout << temp << endl;
+ return temp;
+ };
+
+ bool operator<(const Octal& oct)
+ {
+ bool temp = this->number < oct.number ? true : false;
+ cout << temp << endl;
+ return temp;
+ };
+
+ bool operator <=(const Octal& oct)
+ {
+ bool temp = this->number <= oct.number ? true : false;
+ cout << temp << endl;
+ return temp;
+ };
+
+ bool operator >=(const Octal& oct)
+ {
+ bool temp = this->number >= oct.number ? true : false;
+ cout << temp << endl;
+ return temp;
+ };
+
+ // 3: :
+ Octal operator *(Octal& oct)
+ {
+ Octal PR_result;
+ PR_result.number = this->number * oct.number;
+ PR_result.char_arr(PR_result.number);
+ cout << PR_result.number << endl;
+ return PR_result;
+ };
+
+ // 4: :
+
+ Octal operator =(Octal& oct)
+ {
+ this->number = oct.number;
+ int temp = this->number;
+ cout << temp << endl;
+ };
+
+ // 5: :
+
+ unsigned char operator [](int i)
+ {
+ if (i >= size) {
+ cout << " " << endl;
+ return '\0';
+ }
+ return str[i];
+ };
+
+
+ Octal(string number)
+ {
+ stringstream write;
+ write << oct << number;
+ write >> this->number;
+ };
+
+ void char_input() //, int;
+ {
+ string temp = "";
+ for (int i = 0; i < Octal::size; i++) {
+ temp += Octal::str[i];
+ }
+ Octal::number = stoi(temp);
+ };
+};
+
+// 6: ifstream + ofstream:
+
+ofstream& operator <<(ofstream& fileout, Octal& result)
+{
+ fileout << oct << result.getNum() << endl;
+ return fileout;
+}
+
+ifstream& operator >>(ifstream& fileinput, Octal& result)
+{
+ fileinput >> result.str;
+ result.char_input();
+ return fileinput;
+}
+
+int main() {
+ setlocale(LC_ALL, "russian");
+
+ string chislo1, chislo2;
+ //string way = "input.txt";
+ //FILE.open(way, fstream in | fstream out | fstream app);
+ fstream FILEin;
+ FILEin.open("input.txt");
+ ofstream FILEout;
+ FILEout.open("output.txt");
+ if (!FILEin.is_open())
+ {
+ cout << " " << endl;
+ }
+ else
+ {
+ cout << " " << endl;
+ }
+
+ cout << " :" << endl;
+ SetConsoleCP(1251); // , ( );
+ cin >> chislo1 >> chislo2;
+ FILEin << chislo1 << "\n" << chislo2 << "\n";
+ SetConsoleCP(866); // , ;
+
+ Octal out_chislo1(chislo1);
+ Octal out_chislo2(chislo2);
+
+ FILEout << out_chislo1 << out_chislo2;
+
+
+ FILEin.close();
+ FILEout.close();
+ return 0;
+}
+
+
diff --git a/HomeTask's_C++/C++_T2.var4/C++_T2.var4/output.txt b/HomeTask's_C++/C++_T2.var4/C++_T2.var4/output.txt
new file mode 100644
index 0000000..e69de29
diff --git a/HomeTask's_C++/T2C++ACT/.vs/T2C++ACT/v16/.suo b/HomeTask's_C++/T2C++ACT/.vs/T2C++ACT/v16/.suo
new file mode 100644
index 0000000..20847fc
Binary files /dev/null and b/HomeTask's_C++/T2C++ACT/.vs/T2C++ACT/v16/.suo differ
diff --git a/HomeTask's_C++/T2C++ACT/.vs/T2C++ACT/v16/Browse.VC.db b/HomeTask's_C++/T2C++ACT/.vs/T2C++ACT/v16/Browse.VC.db
new file mode 100644
index 0000000..bad15ad
Binary files /dev/null and b/HomeTask's_C++/T2C++ACT/.vs/T2C++ACT/v16/Browse.VC.db differ
diff --git a/HomeTask's_C++/T2C++ACT/.vs/T2C++ACT/v16/ipch/AutoPCH/e129940b1e2a0aca/MAIN.ipch b/HomeTask's_C++/T2C++ACT/.vs/T2C++ACT/v16/ipch/AutoPCH/e129940b1e2a0aca/MAIN.ipch
new file mode 100644
index 0000000..f1588fe
Binary files /dev/null and b/HomeTask's_C++/T2C++ACT/.vs/T2C++ACT/v16/ipch/AutoPCH/e129940b1e2a0aca/MAIN.ipch differ
diff --git a/HomeTask's_C++/T2C++ACT/T2C++ACT.sln b/HomeTask's_C++/T2C++ACT/T2C++ACT.sln
new file mode 100644
index 0000000..e99cc53
--- /dev/null
+++ b/HomeTask's_C++/T2C++ACT/T2C++ACT.sln
@@ -0,0 +1,31 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.31624.102
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "T2C++ACT", "T2C++ACT\T2C++ACT.vcxproj", "{89944621-F564-4ABA-857B-E1645293A476}"
+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
+ {89944621-F564-4ABA-857B-E1645293A476}.Debug|x64.ActiveCfg = Debug|x64
+ {89944621-F564-4ABA-857B-E1645293A476}.Debug|x64.Build.0 = Debug|x64
+ {89944621-F564-4ABA-857B-E1645293A476}.Debug|x86.ActiveCfg = Debug|Win32
+ {89944621-F564-4ABA-857B-E1645293A476}.Debug|x86.Build.0 = Debug|Win32
+ {89944621-F564-4ABA-857B-E1645293A476}.Release|x64.ActiveCfg = Release|x64
+ {89944621-F564-4ABA-857B-E1645293A476}.Release|x64.Build.0 = Release|x64
+ {89944621-F564-4ABA-857B-E1645293A476}.Release|x86.ActiveCfg = Release|Win32
+ {89944621-F564-4ABA-857B-E1645293A476}.Release|x86.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {26F760D5-DD43-4D24-9B88-07B7BB45EAD5}
+ EndGlobalSection
+EndGlobal
diff --git a/HomeTask's_C++/T2C++ACT/T2C++ACT/T2C++ACT.vcxproj b/HomeTask's_C++/T2C++ACT/T2C++ACT/T2C++ACT.vcxproj
new file mode 100644
index 0000000..b092284
--- /dev/null
+++ b/HomeTask's_C++/T2C++ACT/T2C++ACT/T2C++ACT.vcxproj
@@ -0,0 +1,147 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+ Debug
+ x64
+
+
+ Release
+ x64
+
+
+
+ 16.0
+ Win32Proj
+ {89944621-f564-4aba-857b-e1645293a476}
+ T2CACT
+ 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/HomeTask's_C++/T2C++ACT/T2C++ACT/T2C++ACT.vcxproj.filters b/HomeTask's_C++/T2C++ACT/T2C++ACT/T2C++ACT.vcxproj.filters
new file mode 100644
index 0000000..e8deb3d
--- /dev/null
+++ b/HomeTask's_C++/T2C++ACT/T2C++ACT/T2C++ACT.vcxproj.filters
@@ -0,0 +1,22 @@
+
+
+
+
+ {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
+
+
+
+
+ Исходные файлы
+
+
+
\ No newline at end of file
diff --git a/HomeTask's_C++/T2C++ACT/T2C++ACT/T2C++ACT.vcxproj.user b/HomeTask's_C++/T2C++ACT/T2C++ACT/T2C++ACT.vcxproj.user
new file mode 100644
index 0000000..88a5509
--- /dev/null
+++ b/HomeTask's_C++/T2C++ACT/T2C++ACT/T2C++ACT.vcxproj.user
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/HomeTask's_C++/T2C++ACT/T2C++ACT/main.cpp b/HomeTask's_C++/T2C++ACT/T2C++ACT/main.cpp
new file mode 100644
index 0000000..85117e3
--- /dev/null
+++ b/HomeTask's_C++/T2C++ACT/T2C++ACT/main.cpp
@@ -0,0 +1,211 @@
+//Bakhtiarov A. V. : Group 3821B1PR2, Task #2 Variant 4.
+
+#include
+#include
+#include
+#include //Read from file's and wtite to file's
+#include //Console
+using namespace std;
+
+ enum MyEnum
+{
+ quit = 0, // exit from prog
+ assignment = 1, // x1 = x2 (Prisvoit)
+ plus_oct = 2, // +
+ minus_oct = 3, // -
+ multiply_oct = 4, // *
+ index = 5, // index checker
+ assimilate = 6, // Sravnenie
+ equal_oct = 7, // =
+ not_equal_oct = 8, // !=
+ equal_larg_oct = 9, // >=
+ equal_less_oct = 10, // <=
+ larger_oct = 11, // >
+ less_oct = 12 // <
+};
+
+class Octal {
+private:
+ unsigned char* octal;
+ unsigned int oct;
+ int arr_size;
+public:
+ Octal(); //Constr default
+
+ Octal(std::string str); // Constr initialize
+
+ Octal(const Octal& number); // Constr copy
+
+ ~Octal(); // Destruct
+
+ void operator = (const Octal& number) {
+ this->oct = number.oct;
+ }
+ void operator += (Octal& number) {
+ this->oct += number.oct;
+ }
+ void operator -= (Octal& number) {
+ this->oct -= number.oct;
+ }
+ void operator *= (Octal& number) {
+ this->oct *= number.oct;
+ }
+ bool operator == (Octal& number) {
+ return this->oct == number.oct;
+ }
+ bool operator != (Octal& number) {
+ return this->oct != number.oct;
+ }
+ bool operator >= (Octal& number) {
+ return this->oct >= number.oct;
+ }
+ bool operator <= (Octal& number) {
+ return this->oct <= number.oct;
+ }
+ bool operator > (Octal& number) {
+ return this->oct > number.oct;
+ }
+ bool operator < (Octal& number) {
+ return this->oct < number.oct;
+ }
+
+ friend std::ostream& operator << (std::ostream& out, Octal& number);
+ friend std::ofstream& operator << (std::ofstream& out, Octal& number);
+
+ char operator[](int index);
+
+ void toChar(unsigned int oct) {
+ stringstream ss;
+ string temp;
+ ss << oct << oct;
+ ss >> temp;
+ arr_size = temp.size();
+ octal = new unsigned char[arr_size];
+ for (int i = 0; i < arr_size; i++) {
+ octal[i] = temp[arr_size - 1];
+ }
+ }
+};
+
+std::ostream& operator << (std::ostream& out, Octal& number)
+{
+ out << "Octal: " << number.octal;
+ return out;
+}
+
+std::ofstream& operator << (std::ofstream& out, Octal& number)
+{
+ out << number.octal;
+ return out;
+}
+
+char Octal::operator[](int index)
+{
+ if (index > arr_size) { return '\0'; }
+ return octal[index];
+}
+
+Octal::Octal() // Constr default
+{
+ octal = 0;
+}
+
+Octal::Octal(std::string str) // Constr Initial.
+{
+ stringstream ss;
+ ss << oct << str;
+ ss >> this->oct;
+ toChar(this->oct);
+}
+
+Octal::Octal(const Octal& number) // Constr copy
+{
+ octal = number.octal;
+}
+
+Octal::~Octal() {} //Destruct
+
+/*_____________________________________________________________________________________________________________________________________________________*/
+//Functions:
+void assimilate_oct(int choose, Octal oct_first, Octal oct_second)
+{
+ if (choose == equal_oct) {
+ if (oct_first == oct_second) { std::cout << "Operation (" << oct_first << " == " << oct_second << ") True\n"; }
+ else { std::cout << "Operation (" << oct_first << " == " << oct_second << ") True\n"; }
+ }
+ if (choose == not_equal_oct) {
+ if (oct_first != oct_second) { std::cout << "Operation (" << oct_first << " != " << oct_second << ") True\n"; }
+ else { std::cout << "Operation (" << oct_first << " != " << oct_second << ") True\n"; }
+ }
+ if (choose == equal_larg_oct) {
+ if (oct_first >= oct_second) { std::cout << "Operation (" << oct_first << " >= " << oct_second << ") True\n"; }
+ else { std::cout << "Operation (" << oct_first << " >= " << oct_second << ") True\n"; }
+ }
+ if (choose == equal_less_oct) {
+ if (oct_first <= oct_second) { std::cout << "Operation (" << oct_first << " <= " << oct_second << ") True\n"; }
+ else { std::cout << "Operation (" << oct_first << " <= " << oct_second << ") True\n"; }
+ }
+ if (choose == larger_oct) {
+ if (oct_first > oct_second) { std::cout << "Operation (" << oct_first << " > " << oct_second << ") True\n"; }
+ else { std::cout << "Operation (" << oct_first << " > " << oct_second << ") True\n"; }
+ }
+ if (choose == less_oct) {
+ if (oct_first < oct_second) { std::cout << "Operation (" << oct_first << " < " << oct_second << ") True\n"; }
+ else { std::cout << "Operation (" << oct_first << " < " << oct_second << ") True\n"; }
+ }
+}
+
+void working_operation(int operation, Octal oct_first, Octal oct_second)
+{
+ int choose;
+ if (operation == assignment) { oct_first = oct_second; }
+ else if (operation == plus_oct) { oct_first += oct_second; }
+ else if (operation == minus_oct) { oct_first -= oct_second; }
+ else if (operation == multiply_oct) { oct_first *= oct_second; }
+ else if (operation == assimilate)
+ {
+ std::cout << "Choose operation: \n" << "1 - '=='\n" << "2 - '!='\n" << "3 - '>='\n" << "4 - '<='\n" << "1 - '>'\n" << "1 - '<'\n";
+ std::cin >> choose;
+ system("cls");
+ assimilate_oct(choose, oct_first, oct_second);
+ }
+}
+
+
+int main() {
+ setlocale(LC_ALL, "russian");
+
+ int operation, indexs;
+ std::string str;
+
+ // Number from keyboard
+ std::cout << "Hello!";
+ std::cout << "Enter your octal number #1: ";
+ std::cin.ignore();
+ getline(std::cin, str);
+
+ // Create first Octal object:
+ Octal oct_first(str);
+ std::cout << "Enter operation: \n" << "1 - assignment\n" << "2 - plus octal\n" << "3 - minus octal\n" << "4 - multiply octal\n" << "5 - index\n" << "6 - assimilate\n" << "0 - exit\n";
+ std::cin >> operation;
+
+ //Enum operation's:
+ if (operation == quit) {
+ std::cout << "Exit";
+ exit(0);
+ }
+ if (operation == index) {
+ std::cout << "Enter index: " << std::endl;
+ std::cin >> indexs;
+ std::string res;
+ if (oct_first[indexs] == '\0') { res = "Error, index does not exist"; }
+ else { res = oct_first[indexs]; }
+ std::cout << "Index[" << indexs << "] = " << res << std::endl;
+ }
+ else if (operation != index) {
+ std::cout << "Enter your octal number #2: ";
+ std::cin.ignore();
+ getline(std::cin, str);
+ Octal oct_second(str);
+ }
+}
\ No newline at end of file
diff --git a/HomeTask's_C++/Task3-VAR3/.vs/Task3-VAR3/v16/.suo b/HomeTask's_C++/Task3-VAR3/.vs/Task3-VAR3/v16/.suo
new file mode 100644
index 0000000..439c74b
Binary files /dev/null and b/HomeTask's_C++/Task3-VAR3/.vs/Task3-VAR3/v16/.suo differ
diff --git a/HomeTask's_C++/Task3-VAR3/.vs/Task3-VAR3/v16/Browse.VC.db b/HomeTask's_C++/Task3-VAR3/.vs/Task3-VAR3/v16/Browse.VC.db
new file mode 100644
index 0000000..bc2b305
Binary files /dev/null and b/HomeTask's_C++/Task3-VAR3/.vs/Task3-VAR3/v16/Browse.VC.db differ
diff --git a/HomeTask's_C++/Task3-VAR3/.vs/Task3-VAR3/v16/ipch/AutoPCH/8d6e3bbe3a85bad2/MAIN.ipch b/HomeTask's_C++/Task3-VAR3/.vs/Task3-VAR3/v16/ipch/AutoPCH/8d6e3bbe3a85bad2/MAIN.ipch
new file mode 100644
index 0000000..0ce9345
Binary files /dev/null and b/HomeTask's_C++/Task3-VAR3/.vs/Task3-VAR3/v16/ipch/AutoPCH/8d6e3bbe3a85bad2/MAIN.ipch differ
diff --git a/HomeTask's_C++/Task3-VAR3/Debug/Task3-VAR3.exe b/HomeTask's_C++/Task3-VAR3/Debug/Task3-VAR3.exe
new file mode 100644
index 0000000..97b717c
Binary files /dev/null and b/HomeTask's_C++/Task3-VAR3/Debug/Task3-VAR3.exe differ
diff --git a/HomeTask's_C++/Task3-VAR3/Debug/Task3-VAR3.pdb b/HomeTask's_C++/Task3-VAR3/Debug/Task3-VAR3.pdb
new file mode 100644
index 0000000..64482ef
Binary files /dev/null and b/HomeTask's_C++/Task3-VAR3/Debug/Task3-VAR3.pdb differ
diff --git a/HomeTask's_C++/Task3-VAR3/Task3-VAR3.sln b/HomeTask's_C++/Task3-VAR3/Task3-VAR3.sln
new file mode 100644
index 0000000..4d190cb
--- /dev/null
+++ b/HomeTask's_C++/Task3-VAR3/Task3-VAR3.sln
@@ -0,0 +1,31 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.31624.102
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Task3-VAR3", "Task3-VAR3\Task3-VAR3.vcxproj", "{E5A7FD0F-861F-4611-9258-A24E1CCB83C9}"
+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
+ {E5A7FD0F-861F-4611-9258-A24E1CCB83C9}.Debug|x64.ActiveCfg = Debug|x64
+ {E5A7FD0F-861F-4611-9258-A24E1CCB83C9}.Debug|x64.Build.0 = Debug|x64
+ {E5A7FD0F-861F-4611-9258-A24E1CCB83C9}.Debug|x86.ActiveCfg = Debug|Win32
+ {E5A7FD0F-861F-4611-9258-A24E1CCB83C9}.Debug|x86.Build.0 = Debug|Win32
+ {E5A7FD0F-861F-4611-9258-A24E1CCB83C9}.Release|x64.ActiveCfg = Release|x64
+ {E5A7FD0F-861F-4611-9258-A24E1CCB83C9}.Release|x64.Build.0 = Release|x64
+ {E5A7FD0F-861F-4611-9258-A24E1CCB83C9}.Release|x86.ActiveCfg = Release|Win32
+ {E5A7FD0F-861F-4611-9258-A24E1CCB83C9}.Release|x86.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {ACB3F5C7-DDC2-4A5C-97D9-B92E058B65C2}
+ EndGlobalSection
+EndGlobal
diff --git a/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.exe.recipe b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.exe.recipe
new file mode 100644
index 0000000..12a8e58
--- /dev/null
+++ b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.exe.recipe
@@ -0,0 +1,11 @@
+
+
+
+
+ D:\University\GitHub\Alexander1\TemplateWithClasses\HomeTask's_C++\Task3-VAR3\Debug\Task3-VAR3.exe
+
+
+
+
+
+
\ No newline at end of file
diff --git a/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.ilk b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.ilk
new file mode 100644
index 0000000..f1cc1c5
Binary files /dev/null and b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.ilk differ
diff --git a/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.log b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.log
new file mode 100644
index 0000000..f64234d
--- /dev/null
+++ b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.log
@@ -0,0 +1,2 @@
+ main.cpp
+ Task3-VAR3.vcxproj -> D:\University\GitHub\Alexander1\TemplateWithClasses\HomeTask's_C++\Task3-VAR3\Debug\Task3-VAR3.exe
diff --git a/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.tlog/CL.command.1.tlog b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.tlog/CL.command.1.tlog
new file mode 100644
index 0000000..4faa097
Binary files /dev/null and b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.tlog/CL.command.1.tlog differ
diff --git a/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.tlog/CL.read.1.tlog b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.tlog/CL.read.1.tlog
new file mode 100644
index 0000000..1e44d97
Binary files /dev/null and b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.tlog/CL.read.1.tlog differ
diff --git a/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.tlog/CL.write.1.tlog b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.tlog/CL.write.1.tlog
new file mode 100644
index 0000000..e68ab03
Binary files /dev/null and b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.tlog/CL.write.1.tlog differ
diff --git a/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.tlog/Task3-VAR3.lastbuildstate b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.tlog/Task3-VAR3.lastbuildstate
new file mode 100644
index 0000000..630e0f9
--- /dev/null
+++ b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.tlog/Task3-VAR3.lastbuildstate
@@ -0,0 +1,2 @@
+PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.29.30133:TargetPlatformVersion=10.0.19041.0:
+Debug|Win32|D:\University\GitHub\Alexander1\TemplateWithClasses\HomeTask's_C++\Task3-VAR3\|
diff --git a/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.tlog/link.command.1.tlog b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.tlog/link.command.1.tlog
new file mode 100644
index 0000000..0d7f0f1
Binary files /dev/null and b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.tlog/link.command.1.tlog differ
diff --git a/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.tlog/link.read.1.tlog b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.tlog/link.read.1.tlog
new file mode 100644
index 0000000..c6b8618
Binary files /dev/null and b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.tlog/link.read.1.tlog differ
diff --git a/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.tlog/link.write.1.tlog b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.tlog/link.write.1.tlog
new file mode 100644
index 0000000..33f1f05
Binary files /dev/null and b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/Task3-VAR3.tlog/link.write.1.tlog differ
diff --git a/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/main.obj b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/main.obj
new file mode 100644
index 0000000..68e51bb
Binary files /dev/null and b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/main.obj differ
diff --git a/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/vc142.idb b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/vc142.idb
new file mode 100644
index 0000000..469f42b
Binary files /dev/null and b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/vc142.idb differ
diff --git a/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/vc142.pdb b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/vc142.pdb
new file mode 100644
index 0000000..26a005d
Binary files /dev/null and b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Debug/vc142.pdb differ
diff --git a/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Task3-VAR3.vcxproj b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Task3-VAR3.vcxproj
new file mode 100644
index 0000000..3e1328c
--- /dev/null
+++ b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Task3-VAR3.vcxproj
@@ -0,0 +1,147 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+ Debug
+ x64
+
+
+ Release
+ x64
+
+
+
+ 16.0
+ Win32Proj
+ {e5a7fd0f-861f-4611-9258-a24e1ccb83c9}
+ Task3VAR3
+ 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/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Task3-VAR3.vcxproj.filters b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Task3-VAR3.vcxproj.filters
new file mode 100644
index 0000000..e8deb3d
--- /dev/null
+++ b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Task3-VAR3.vcxproj.filters
@@ -0,0 +1,22 @@
+
+
+
+
+ {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
+
+
+
+
+ Исходные файлы
+
+
+
\ No newline at end of file
diff --git a/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Task3-VAR3.vcxproj.user b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Task3-VAR3.vcxproj.user
new file mode 100644
index 0000000..88a5509
--- /dev/null
+++ b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/Task3-VAR3.vcxproj.user
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/HomeTask's_C++/Task3-VAR3/Task3-VAR3/main.cpp b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/main.cpp
new file mode 100644
index 0000000..09bcaa4
--- /dev/null
+++ b/HomeTask's_C++/Task3-VAR3/Task3-VAR3/main.cpp
@@ -0,0 +1,87 @@
+// Bakhtiarov A. V. Group: 3821B1PR2
+
+#pragma once
+#include
+#include
+#include
+#include
+#include
+using namespace std;
+
+class Taylor {
+protected:
+ vector< long double> coff;
+ double eps = 0.0001;
+ double x = 10;
+ int N = 100;
+ std::string formula;
+public:
+ Taylor() {
+
+ }
+
+ ~Taylor();
+
+ void set_eps(double _eps) {
+ eps = _eps;
+ }
+ void set_x(double _x) {
+ x = _x;
+ }
+ void set_N(int _N) {
+ N = _N;
+ }
+
+ double get_eps() {
+ return eps;
+ }
+ double get_x() {
+ return x;
+ }
+ int get_N() {
+ return N;
+ }
+
+ // Factorial
+ long double factorial(double n) {
+ if (n < 0) return 0;
+ if (n == 1 || n == 0) return 1;
+ return n * factorial(n - 1);
+ }
+
+ // Operation SinT
+ long double sinT(double x, double eps, int N, int i) {
+ double etalon = sin(x), different;
+ long double result = 0, coeff = 0;
+ int count = 0;
+
+ for (i = 1; i < N; i++) {
+ result += pow(-1, i + 1) * pow(x, 2 * i - 1) / factorial(2 * i - 1);
+ coeff = pow(-1, i + 1) * pow(x, 2 * i - 1) / factorial(2 * i - 1);
+ if (fabs(etalon - result) < eps) break;
+ coff.push_back(coeff);
+ }
+ different = fabs(etalon - result);
+ count = i - 1;
+ }
+};
+
+int main() {
+ std::cout << "Hello, programm started! \n";
+
+ double epsT, xT;
+ int Nt;
+
+ Taylor taylor = Taylor();
+
+ std::cout << "Enter eps: \n";
+ std::cin >> epsT;
+ std::cout << "Enter x: \n";
+ std::cin >> xT;
+ std::cout << "Enter N: \n";
+ std::cin >> Nt;
+
+ taylor.set_eps(epsT);
+ taylor.set_x(xT);
+ taylor.set_N(Nt);
+}
\ No newline at end of file
diff --git a/HomeTask's_C++/TaskINClass(03.03)/.vs/TaskINClass(03.03)/v16/.suo b/HomeTask's_C++/TaskINClass(03.03)/.vs/TaskINClass(03.03)/v16/.suo
new file mode 100644
index 0000000..4fee62f
Binary files /dev/null and b/HomeTask's_C++/TaskINClass(03.03)/.vs/TaskINClass(03.03)/v16/.suo differ
diff --git a/HomeTask's_C++/TaskINClass(03.03)/.vs/TaskINClass(03.03)/v16/Browse.VC.db b/HomeTask's_C++/TaskINClass(03.03)/.vs/TaskINClass(03.03)/v16/Browse.VC.db
new file mode 100644
index 0000000..47b8c7f
Binary files /dev/null and b/HomeTask's_C++/TaskINClass(03.03)/.vs/TaskINClass(03.03)/v16/Browse.VC.db differ
diff --git a/HomeTask's_C++/TaskINClass(03.03)/.vs/TaskINClass(03.03)/v16/ipch/AutoPCH/410fc96a4493068c/MAIN.ipch b/HomeTask's_C++/TaskINClass(03.03)/.vs/TaskINClass(03.03)/v16/ipch/AutoPCH/410fc96a4493068c/MAIN.ipch
new file mode 100644
index 0000000..283a32a
Binary files /dev/null and b/HomeTask's_C++/TaskINClass(03.03)/.vs/TaskINClass(03.03)/v16/ipch/AutoPCH/410fc96a4493068c/MAIN.ipch differ
diff --git a/HomeTask's_C++/TaskINClass(03.03)/TaskINClass(03.03).sln b/HomeTask's_C++/TaskINClass(03.03)/TaskINClass(03.03).sln
new file mode 100644
index 0000000..d847118
--- /dev/null
+++ b/HomeTask's_C++/TaskINClass(03.03)/TaskINClass(03.03).sln
@@ -0,0 +1,31 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.31624.102
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TaskINClass(03.03)", "TaskINClass(03.03)\TaskINClass(03.03).vcxproj", "{6C1CE43F-BF13-49A5-A244-9AA3260E3B41}"
+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
+ {6C1CE43F-BF13-49A5-A244-9AA3260E3B41}.Debug|x64.ActiveCfg = Debug|x64
+ {6C1CE43F-BF13-49A5-A244-9AA3260E3B41}.Debug|x64.Build.0 = Debug|x64
+ {6C1CE43F-BF13-49A5-A244-9AA3260E3B41}.Debug|x86.ActiveCfg = Debug|Win32
+ {6C1CE43F-BF13-49A5-A244-9AA3260E3B41}.Debug|x86.Build.0 = Debug|Win32
+ {6C1CE43F-BF13-49A5-A244-9AA3260E3B41}.Release|x64.ActiveCfg = Release|x64
+ {6C1CE43F-BF13-49A5-A244-9AA3260E3B41}.Release|x64.Build.0 = Release|x64
+ {6C1CE43F-BF13-49A5-A244-9AA3260E3B41}.Release|x86.ActiveCfg = Release|Win32
+ {6C1CE43F-BF13-49A5-A244-9AA3260E3B41}.Release|x86.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {5E874343-E696-4954-B6F5-AFFE6BB6BB28}
+ EndGlobalSection
+EndGlobal
diff --git a/HomeTask's_C++/TaskINClass(03.03)/TaskINClass(03.03)/TaskINClass(03.03).vcxproj b/HomeTask's_C++/TaskINClass(03.03)/TaskINClass(03.03)/TaskINClass(03.03).vcxproj
new file mode 100644
index 0000000..5dfbfa5
--- /dev/null
+++ b/HomeTask's_C++/TaskINClass(03.03)/TaskINClass(03.03)/TaskINClass(03.03).vcxproj
@@ -0,0 +1,147 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+ Debug
+ x64
+
+
+ Release
+ x64
+
+
+
+ 16.0
+ Win32Proj
+ {6c1ce43f-bf13-49a5-a244-9aa3260e3b41}
+ TaskINClass0303
+ 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/HomeTask's_C++/TaskINClass(03.03)/TaskINClass(03.03)/TaskINClass(03.03).vcxproj.filters b/HomeTask's_C++/TaskINClass(03.03)/TaskINClass(03.03)/TaskINClass(03.03).vcxproj.filters
new file mode 100644
index 0000000..e8deb3d
--- /dev/null
+++ b/HomeTask's_C++/TaskINClass(03.03)/TaskINClass(03.03)/TaskINClass(03.03).vcxproj.filters
@@ -0,0 +1,22 @@
+
+
+
+
+ {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
+
+
+
+
+ Исходные файлы
+
+
+
\ No newline at end of file
diff --git a/HomeTask's_C++/TaskINClass(03.03)/TaskINClass(03.03)/TaskINClass(03.03).vcxproj.user b/HomeTask's_C++/TaskINClass(03.03)/TaskINClass(03.03)/TaskINClass(03.03).vcxproj.user
new file mode 100644
index 0000000..88a5509
--- /dev/null
+++ b/HomeTask's_C++/TaskINClass(03.03)/TaskINClass(03.03)/TaskINClass(03.03).vcxproj.user
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/HomeTask's_C++/TaskINClass(03.03)/TaskINClass(03.03)/main.cpp b/HomeTask's_C++/TaskINClass(03.03)/TaskINClass(03.03)/main.cpp
new file mode 100644
index 0000000..3b20c3f
--- /dev/null
+++ b/HomeTask's_C++/TaskINClass(03.03)/TaskINClass(03.03)/main.cpp
@@ -0,0 +1,131 @@
+#include
+#include
+using namespace std;
+
+class Weight
+{
+ int gramm;
+
+public:
+ void set_weight(int _gramm)
+ {
+ gramm = _gramm;
+ }
+ void get_weight()
+ {
+ cout << "Weight is: " << gramm << " " << "gramm" << endl;
+ }
+ Weight operator +(const Weight& other)
+ {
+ Weight sum;
+ sum.gramm = this->gramm + other.gramm;
+ return sum;
+ }
+ Weight operator -(const Weight& other)
+ {
+ Weight min;
+ if (this->gramm < other.gramm) {
+ min.gramm = other.gramm - this->gramm;
+ return min;
+ }
+ else {
+ min.gramm = this->gramm - other.gramm;
+ return min;
+ }
+ }
+ Weight operator *(const Weight& other)
+ {
+ Weight prod;
+ prod.gramm = this->gramm * other.gramm;
+ return prod;
+ }
+ Weight operator =(const Weight& other)
+ {
+ Weight equal;
+ equal.gramm = this->gramm = other.gramm;
+ return equal;
+ }
+ bool operator ==(const Weight& other)
+ {
+ return this->gramm == other.gramm;
+ }
+ bool operator !=(const Weight& other)
+ {
+ return this->gramm != other.gramm;
+ }
+ bool operator >(const Weight& other)
+ {
+ return this->gramm > other.gramm;
+ }
+
+ friend ostream& operator <<(ostream& output, Weight other);
+};
+
+ostream& operator <<(ostream& output, Weight other)
+{
+ output << other.gramm << endl;
+ return output;
+}
+
+int main(int argc, const char * argv[])
+{
+ setlocale(LC_ALL, "russian");
+ int wght1, wght2;
+ cout << "Enter the 1st weight(in gramm's):" << endl;
+ cin >> wght1;
+ cout << "Enter the 2nd weight(in gramm's):" << endl;
+ cin >> wght2;
+
+ Weight weight1;
+ weight1.set_weight(wght1);
+ weight1.get_weight();
+ Weight weight2;
+ weight2.set_weight(wght2);
+ weight2.get_weight();
+
+ Weight sum = weight1 + weight2;
+ std::cout << "Weight summ is: " << sum << " " << "gramm's" << endl;
+ Weight min = weight1 - weight2;
+ std::cout << "Weight diff is: " << min << " " << "gramm's" << endl;
+ Weight prod = weight1 * weight2;
+ std::cout << "Weight prod is: " << prod << " " << "gramm's" << endl;
+ Weight equal = weight1 = weight2;
+ std::cout << "Latest weight is: " << equal << " " << "gramm's" << endl;
+
+ bool sravn_rav = wght1 == wght2;
+ if (sravn_rav == 1) {
+ cout << "1st Weight = 2nd weight" << endl;
+ }
+ else {
+ cout << "1st weight != 2nd weight" << endl;
+ }
+ //cout << sravn_rav << endl;
+ bool sravn_nerav = wght1 != wght2;
+ //cout << sravn_nerav << endl;
+ bool value_check = wght1 > wght2;
+ if (value_check == 1) {
+ cout << "1st weight > 2nd weight" << endl;
+ }
+ else {
+ cout << "1st weight < 2nd weight" << endl;
+ }
+
+ float to_pounds(); { // 1 pound = 453,592 gramm's;
+ float pound1 = 0, pound2 = 0;
+ float pound_val = 453.592;
+ pound1 = (wght1 / pound_val);
+ pound2 = (wght2 / pound_val);
+
+ cout << "1st weight = " << pound1 << " " << "pound's" << "\n" << "2nd weight = " << pound2 << " " << "pound's" << endl;
+ }
+ float to_kg(); { // 1kg = 1000gramm's;
+ float kg1 = 0, kg2 = 0;
+ float kg_val = 1000;
+ kg1 = (wght1 / kg_val);
+ kg2 = (wght2 / kg_val);
+
+ cout << "1st weight = " << kg1 << " " << "kg's" << "\n" << "2nd weight = " << kg2 << " " << "kg's" << endl;
+ }
+ system("pause");
+ return 0;
+}
\ No newline at end of file