Skip to content

Commit aa70b36

Browse files
committed
first
0 parents  commit aa70b36

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+665
-0
lines changed

Binary.sln

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.27130.2027
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Binary", "Binary\Binary.vcxproj", "{1DF94FDB-DCBC-429F-B7B6-6B0254579EE7}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|x64 = Debug|x64
11+
Debug|x86 = Debug|x86
12+
Release|x64 = Release|x64
13+
Release|x86 = Release|x86
14+
EndGlobalSection
15+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16+
{1DF94FDB-DCBC-429F-B7B6-6B0254579EE7}.Debug|x64.ActiveCfg = Debug|x64
17+
{1DF94FDB-DCBC-429F-B7B6-6B0254579EE7}.Debug|x64.Build.0 = Debug|x64
18+
{1DF94FDB-DCBC-429F-B7B6-6B0254579EE7}.Debug|x86.ActiveCfg = Debug|Win32
19+
{1DF94FDB-DCBC-429F-B7B6-6B0254579EE7}.Debug|x86.Build.0 = Debug|Win32
20+
{1DF94FDB-DCBC-429F-B7B6-6B0254579EE7}.Release|x64.ActiveCfg = Release|x64
21+
{1DF94FDB-DCBC-429F-B7B6-6B0254579EE7}.Release|x64.Build.0 = Release|x64
22+
{1DF94FDB-DCBC-429F-B7B6-6B0254579EE7}.Release|x86.ActiveCfg = Release|Win32
23+
{1DF94FDB-DCBC-429F-B7B6-6B0254579EE7}.Release|x86.Build.0 = Release|Win32
24+
EndGlobalSection
25+
GlobalSection(SolutionProperties) = preSolution
26+
HideSolutionNode = FALSE
27+
EndGlobalSection
28+
GlobalSection(ExtensibilityGlobals) = postSolution
29+
SolutionGuid = {7FE72F09-D66D-4C56-943D-19F6563CDD6D}
30+
EndGlobalSection
31+
EndGlobal

Binary/Binary.cpp

6.35 KB
Binary file not shown.

Binary/Binary.vcxproj

+169
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Release|Win32">
9+
<Configuration>Release</Configuration>
10+
<Platform>Win32</Platform>
11+
</ProjectConfiguration>
12+
<ProjectConfiguration Include="Debug|x64">
13+
<Configuration>Debug</Configuration>
14+
<Platform>x64</Platform>
15+
</ProjectConfiguration>
16+
<ProjectConfiguration Include="Release|x64">
17+
<Configuration>Release</Configuration>
18+
<Platform>x64</Platform>
19+
</ProjectConfiguration>
20+
</ItemGroup>
21+
<PropertyGroup Label="Globals">
22+
<VCProjectVersion>15.0</VCProjectVersion>
23+
<ProjectGuid>{1DF94FDB-DCBC-429F-B7B6-6B0254579EE7}</ProjectGuid>
24+
<Keyword>Win32Proj</Keyword>
25+
<RootNamespace>Binary</RootNamespace>
26+
<WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>
27+
</PropertyGroup>
28+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
29+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
30+
<ConfigurationType>Application</ConfigurationType>
31+
<UseDebugLibraries>true</UseDebugLibraries>
32+
<PlatformToolset>v141</PlatformToolset>
33+
<CharacterSet>Unicode</CharacterSet>
34+
</PropertyGroup>
35+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
36+
<ConfigurationType>Application</ConfigurationType>
37+
<UseDebugLibraries>false</UseDebugLibraries>
38+
<PlatformToolset>v141</PlatformToolset>
39+
<WholeProgramOptimization>true</WholeProgramOptimization>
40+
<CharacterSet>Unicode</CharacterSet>
41+
</PropertyGroup>
42+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
43+
<ConfigurationType>Application</ConfigurationType>
44+
<UseDebugLibraries>true</UseDebugLibraries>
45+
<PlatformToolset>v141</PlatformToolset>
46+
<CharacterSet>Unicode</CharacterSet>
47+
</PropertyGroup>
48+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
49+
<ConfigurationType>Application</ConfigurationType>
50+
<UseDebugLibraries>false</UseDebugLibraries>
51+
<PlatformToolset>v141</PlatformToolset>
52+
<WholeProgramOptimization>true</WholeProgramOptimization>
53+
<CharacterSet>Unicode</CharacterSet>
54+
</PropertyGroup>
55+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
56+
<ImportGroup Label="ExtensionSettings">
57+
</ImportGroup>
58+
<ImportGroup Label="Shared">
59+
</ImportGroup>
60+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
61+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
62+
</ImportGroup>
63+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
64+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
65+
</ImportGroup>
66+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
67+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
68+
</ImportGroup>
69+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
70+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
71+
</ImportGroup>
72+
<PropertyGroup Label="UserMacros" />
73+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
74+
<LinkIncremental>true</LinkIncremental>
75+
</PropertyGroup>
76+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
77+
<LinkIncremental>true</LinkIncremental>
78+
</PropertyGroup>
79+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
80+
<LinkIncremental>false</LinkIncremental>
81+
</PropertyGroup>
82+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
83+
<LinkIncremental>false</LinkIncremental>
84+
</PropertyGroup>
85+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
86+
<ClCompile>
87+
<PrecompiledHeader>Use</PrecompiledHeader>
88+
<WarningLevel>Level3</WarningLevel>
89+
<Optimization>Disabled</Optimization>
90+
<SDLCheck>true</SDLCheck>
91+
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
92+
<ConformanceMode>true</ConformanceMode>
93+
</ClCompile>
94+
<Link>
95+
<SubSystem>Console</SubSystem>
96+
<GenerateDebugInformation>true</GenerateDebugInformation>
97+
</Link>
98+
</ItemDefinitionGroup>
99+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
100+
<ClCompile>
101+
<PrecompiledHeader>Use</PrecompiledHeader>
102+
<WarningLevel>Level3</WarningLevel>
103+
<Optimization>Disabled</Optimization>
104+
<SDLCheck>true</SDLCheck>
105+
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
106+
<ConformanceMode>true</ConformanceMode>
107+
</ClCompile>
108+
<Link>
109+
<SubSystem>Console</SubSystem>
110+
<GenerateDebugInformation>true</GenerateDebugInformation>
111+
</Link>
112+
</ItemDefinitionGroup>
113+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
114+
<ClCompile>
115+
<PrecompiledHeader>Use</PrecompiledHeader>
116+
<WarningLevel>Level3</WarningLevel>
117+
<Optimization>MaxSpeed</Optimization>
118+
<FunctionLevelLinking>true</FunctionLevelLinking>
119+
<IntrinsicFunctions>true</IntrinsicFunctions>
120+
<SDLCheck>true</SDLCheck>
121+
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
122+
<ConformanceMode>true</ConformanceMode>
123+
</ClCompile>
124+
<Link>
125+
<SubSystem>Console</SubSystem>
126+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
127+
<OptimizeReferences>true</OptimizeReferences>
128+
<GenerateDebugInformation>true</GenerateDebugInformation>
129+
</Link>
130+
</ItemDefinitionGroup>
131+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
132+
<ClCompile>
133+
<PrecompiledHeader>Use</PrecompiledHeader>
134+
<WarningLevel>Level3</WarningLevel>
135+
<Optimization>MaxSpeed</Optimization>
136+
<FunctionLevelLinking>true</FunctionLevelLinking>
137+
<IntrinsicFunctions>true</IntrinsicFunctions>
138+
<SDLCheck>true</SDLCheck>
139+
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
140+
<ConformanceMode>true</ConformanceMode>
141+
</ClCompile>
142+
<Link>
143+
<SubSystem>Console</SubSystem>
144+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
145+
<OptimizeReferences>true</OptimizeReferences>
146+
<GenerateDebugInformation>true</GenerateDebugInformation>
147+
</Link>
148+
</ItemDefinitionGroup>
149+
<ItemGroup>
150+
<ClInclude Include="Node.h" />
151+
<ClInclude Include="stdafx.h" />
152+
<ClInclude Include="targetver.h" />
153+
<ClInclude Include="Tree.h" />
154+
</ItemGroup>
155+
<ItemGroup>
156+
<ClCompile Include="Binary.cpp" />
157+
<ClCompile Include="Node.cpp" />
158+
<ClCompile Include="stdafx.cpp">
159+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
160+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
161+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
162+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
163+
</ClCompile>
164+
<ClCompile Include="Tree.cpp" />
165+
</ItemGroup>
166+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
167+
<ImportGroup Label="ExtensionTargets">
168+
</ImportGroup>
169+
</Project>

Binary/Binary.vcxproj.filters

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<Filter Include="Source Files">
5+
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6+
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7+
</Filter>
8+
<Filter Include="Header Files">
9+
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10+
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
11+
</Filter>
12+
<Filter Include="Resource Files">
13+
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
14+
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
15+
</Filter>
16+
</ItemGroup>
17+
<ItemGroup>
18+
<ClInclude Include="stdafx.h">
19+
<Filter>Header Files</Filter>
20+
</ClInclude>
21+
<ClInclude Include="targetver.h">
22+
<Filter>Header Files</Filter>
23+
</ClInclude>
24+
<ClInclude Include="Node.h">
25+
<Filter>Header Files</Filter>
26+
</ClInclude>
27+
<ClInclude Include="Tree.h">
28+
<Filter>Header Files</Filter>
29+
</ClInclude>
30+
</ItemGroup>
31+
<ItemGroup>
32+
<ClCompile Include="stdafx.cpp">
33+
<Filter>Source Files</Filter>
34+
</ClCompile>
35+
<ClCompile Include="Binary.cpp">
36+
<Filter>Source Files</Filter>
37+
</ClCompile>
38+
<ClCompile Include="Node.cpp">
39+
<Filter>Source Files</Filter>
40+
</ClCompile>
41+
<ClCompile Include="Tree.cpp">
42+
<Filter>Source Files</Filter>
43+
</ClCompile>
44+
</ItemGroup>
45+
</Project>

Binary/Binary.vcxproj.user

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup />
4+
</Project>
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
c:\users\olga turcan\desktop\ubb\sem 2\oop\lab3\binary\debug\binary.pch
2+
c:\users\olga turcan\desktop\ubb\sem 2\oop\lab3\binary\debug\vc141.pdb
3+
c:\users\olga turcan\desktop\ubb\sem 2\oop\lab3\binary\debug\vc141.idb
4+
c:\users\olga turcan\desktop\ubb\sem 2\oop\lab3\binary\debug\stdafx.obj
5+
c:\users\olga turcan\desktop\ubb\sem 2\oop\lab3\binary\debug\binary.obj
6+
c:\users\olga turcan\desktop\ubb\sem 2\oop\lab3\binary\debug\node.obj
7+
c:\users\olga turcan\desktop\ubb\sem 2\oop\lab3\binary\debug\tree.obj
8+
c:\users\olga turcan\desktop\ubb\sem 2\oop\lab3\debug\binary.exe
9+
c:\users\olga turcan\desktop\ubb\sem 2\oop\lab3\debug\binary.ilk
10+
c:\users\olga turcan\desktop\ubb\sem 2\oop\lab3\debug\binary.pdb
11+
c:\users\olga turcan\desktop\ubb\sem 2\oop\lab3\binary\debug\tree.obj.enc
12+
c:\users\olga turcan\desktop\ubb\sem 2\oop\lab3\binary\debug\binary.tlog\cl.command.1.tlog
13+
c:\users\olga turcan\desktop\ubb\sem 2\oop\lab3\binary\debug\binary.tlog\cl.read.1.tlog
14+
c:\users\olga turcan\desktop\ubb\sem 2\oop\lab3\binary\debug\binary.tlog\cl.write.1.tlog
15+
c:\users\olga turcan\desktop\ubb\sem 2\oop\lab3\binary\debug\binary.tlog\link.command.1.tlog
16+
c:\users\olga turcan\desktop\ubb\sem 2\oop\lab3\binary\debug\binary.tlog\link.read.1.tlog
17+
c:\users\olga turcan\desktop\ubb\sem 2\oop\lab3\binary\debug\binary.tlog\link.write.1.tlog

Binary/Debug/Binary.log

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
 stdafx.cpp
2+
Binary.cpp
3+
Node.cpp
4+
Tree.cpp
5+
d:\ubb\sem 2\oop\lab3\binary\tree.cpp(233): warning C4244: 'initializing': conversion from 'double' to 'int', possible loss of data
6+
d:\ubb\sem 2\oop\lab3\binary\tree.cpp(234): warning C4244: 'initializing': conversion from 'double' to 'int', possible loss of data
7+
d:\ubb\sem 2\oop\lab3\binary\tree.cpp(240): warning C4018: '<': signed/unsigned mismatch
8+
d:\ubb\sem 2\oop\lab3\binary\tree.cpp(283): warning C4244: 'initializing': conversion from 'double' to 'int', possible loss of data
9+
Generating Code...
10+
Binary.vcxproj -> D:\UBB\Sem 2\OOP\Lab3\Debug\Binary.exe

Binary/Debug/Binary.obj

147 KB
Binary file not shown.

Binary/Debug/Binary.pch

2.88 MB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#TargetFrameworkVersion=v4.0:PlatformToolSet=v141:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0.16299.0
2+
Debug|Win32|D:\UBB\Sem 2\OOP\Lab3\|
6.2 KB
Binary file not shown.
71.2 KB
Binary file not shown.
4.51 KB
Binary file not shown.
3.1 KB
Binary file not shown.
8.56 KB
Binary file not shown.
1.54 KB
Binary file not shown.

Binary/Debug/Node.obj

4.93 KB
Binary file not shown.

Binary/Debug/Tree.obj

292 KB
Binary file not shown.

Binary/Debug/stdafx.obj

5.75 KB
Binary file not shown.

Binary/Debug/vc141.idb

571 KB
Binary file not shown.

Binary/Debug/vc141.pdb

580 KB
Binary file not shown.

Binary/Node.cpp

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#include "stdafx.h"
2+
#include "Node.h"
3+
4+
5+
Node::Node()
6+
{
7+
this->left = NULL;
8+
this->right = NULL;
9+
}
10+
11+
12+
Node::~Node()
13+
{
14+
delete this->left;
15+
delete this->right;
16+
}

Binary/Node.h

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#pragma once
2+
3+
class Node
4+
{
5+
private:
6+
int key; //key value
7+
Node *left; //left subtree
8+
Node *right; //right subtree
9+
10+
friend class Tree; //class Tree can access private members of class Node
11+
12+
public:
13+
Node();
14+
//Node(int key);
15+
~Node();
16+
};
17+

Binary/Release/Binary.log

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
 stdafx.cpp
2+
Binary.cpp
3+
Node.cpp
4+
Tree.cpp
5+
Tree.cpp(232): warning C4244: 'initializing': conversion from 'double' to 'int', possible loss of data
6+
Tree.cpp(233): warning C4244: 'initializing': conversion from 'double' to 'int', possible loss of data
7+
Tree.cpp(239): warning C4018: '<': signed/unsigned mismatch
8+
Tree.cpp(282): warning C4244: 'initializing': conversion from 'double' to 'int', possible loss of data
9+
Generating code
10+
All 232 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
11+
Finished generating code
12+
Binary.vcxproj -> C:\Users\Olga Turcan\Desktop\UBB\Sem 2\OOP\Lab3\Release\Binary.exe

Binary/Release/Binary.obj

922 KB
Binary file not shown.

Binary/Release/Binary.pch

2.63 MB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#TargetFrameworkVersion=v4.0:PlatformToolSet=v141:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0.16299.0
2+
Release|Win32|C:\Users\Olga Turcan\Desktop\UBB\Sem 2\OOP\Lab3\|
422 Bytes
Binary file not shown.
3.38 KB
Binary file not shown.
35.3 KB
Binary file not shown.
2.36 KB
Binary file not shown.
1.85 KB
Binary file not shown.
4.92 KB
Binary file not shown.
862 Bytes
Binary file not shown.

Binary/Release/Node.obj

3.09 KB
Binary file not shown.

Binary/Release/Tree.obj

980 KB
Binary file not shown.

Binary/Release/stdafx.obj

104 KB
Binary file not shown.

Binary/Release/vc141.pdb

444 KB
Binary file not shown.

0 commit comments

Comments
 (0)