Skip to content

Commit 9507079

Browse files
authored
Add files via upload
1 parent 1b1b32b commit 9507079

30 files changed

+350
-0
lines changed

PhoneBook/Debug/Ex1.exe

33 KB
Binary file not shown.

PhoneBook/Debug/Ex1.ilk

234 KB
Binary file not shown.

PhoneBook/Debug/Ex1.pdb

451 KB
Binary file not shown.

PhoneBook/Ex1.sdf

3.06 MB
Binary file not shown.

PhoneBook/Ex1.sln

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2013
4+
VisualStudioVersion = 12.0.21005.1
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Ex1", "Ex1\Ex1.vcxproj", "{83CD0184-2F2A-4E2D-B0C7-026915A41F0F}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Win32 = Debug|Win32
11+
Release|Win32 = Release|Win32
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{83CD0184-2F2A-4E2D-B0C7-026915A41F0F}.Debug|Win32.ActiveCfg = Debug|Win32
15+
{83CD0184-2F2A-4E2D-B0C7-026915A41F0F}.Debug|Win32.Build.0 = Debug|Win32
16+
{83CD0184-2F2A-4E2D-B0C7-026915A41F0F}.Release|Win32.ActiveCfg = Release|Win32
17+
{83CD0184-2F2A-4E2D-B0C7-026915A41F0F}.Release|Win32.Build.0 = Release|Win32
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
EndGlobal

PhoneBook/Ex1.v12.suo

20.5 KB
Binary file not shown.

PhoneBook/Ex1/Debug/Ex1.log

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Build started 3/7/2020 3:53:29 PM.
2+
1>Project "F:\Обектно-ориентирано програмиране\Ex1\Ex1\Ex1.vcxproj" on node 2 (Build target(s)).
3+
1>ClCompile:
4+
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c /ZI /nologo /W3 /WX- /sdl /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _LIB /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Yc"stdafx.h" /Fp"Debug\Ex1.pch" /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:prompt stdafx.cpp
5+
stdafx.cpp
6+
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c /ZI /nologo /W3 /WX- /sdl /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _LIB /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Yu"stdafx.h" /Fp"Debug\Ex1.pch" /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:prompt Ex1.cpp
7+
Ex1.cpp
8+
1>f:\обектно-ориентирано програмиране\ex1\ex1\ex1.cpp(77): warning C4101: 'y' : unreferenced local variable
9+
1>f:\обектно-ориентирано програмиране\ex1\ex1\ex1.cpp(77): warning C4101: 'x' : unreferenced local variable
10+
Link:
11+
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"F:\Обектно-ориентирано програмиране\Ex1\Debug\Ex1.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"F:\Обектно-ориентирано програмиране\Ex1\Debug\Ex1.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"F:\Обектно-ориентирано програмиране\Ex1\Debug\Ex1.lib" /MACHINE:X86 Debug\Ex1.obj
12+
Debug\stdafx.obj
13+
LINK : F:\Обектно-ориентирано програмиране\Ex1\Debug\Ex1.exe not found or not built by the last incremental link; performing full link
14+
Ex1.vcxproj -> F:\Обектно-ориентирано програмиране\Ex1\Debug\Ex1.exe
15+
1>Done Building Project "F:\Обектно-ориентирано програмиране\Ex1\Ex1\Ex1.vcxproj" (Build target(s)).
16+
17+
Build succeeded.
18+
19+
Time Elapsed 00:00:27.05

PhoneBook/Ex1/Debug/Ex1.obj

15.5 KB
Binary file not shown.

PhoneBook/Ex1/Debug/Ex1.pch

1.69 MB
Binary file not shown.
6.42 KB
Binary file not shown.
2.02 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit
2+
Debug|Win32|F:\Обектно-ориентирано програмиране\Ex1\|
2.76 KB
Binary file not shown.
2.49 KB
Binary file not shown.
5.81 KB
Binary file not shown.
1.08 KB
Binary file not shown.

PhoneBook/Ex1/Debug/stdafx.obj

11.8 KB
Binary file not shown.

PhoneBook/Ex1/Debug/vc120.idb

107 KB
Binary file not shown.

PhoneBook/Ex1/Debug/vc120.pdb

148 KB
Binary file not shown.

PhoneBook/Ex1/Ex1.cpp

+105
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
// Ex1.cpp : Defines the entry point for the console application.
2+
//
3+
4+
#include "stdafx.h"
5+
#include <stdio.h>
6+
#include <string.h>
7+
#include <stdlib.h>
8+
#define EOT -1
9+
#define BOT -1
10+
11+
struct BelRow
12+
{
13+
char Name[12];
14+
char Fam[15];
15+
unsigned long Tel;
16+
};
17+
class Bel
18+
{
19+
BelRow Table[100];
20+
int TableEnd;
21+
int CurrentRecord;
22+
public:
23+
Bel(void) { TableEnd = 0; }
24+
int Append(char *Name, char *Fam, unsigned long Tel);
25+
int Append(BelRow *ARow);
26+
BelRow *FindRowByName(char *Name);
27+
void First(void) { CurrentRecord = 0; }
28+
int Next(void);
29+
int Prev(void);
30+
void Last(void) { CurrentRecord = TableEnd - 1; }
31+
BelRow *Get(void);
32+
};
33+
int Bel::Append(char *Name, char *Fam, unsigned long Tel)
34+
{
35+
if (TableEnd >= 100) return 0;
36+
strcpy_s(Table[TableEnd].Name, Name);
37+
strcpy_s(Table[TableEnd].Fam, Fam);
38+
Table[TableEnd].Tel = Tel;
39+
TableEnd++;
40+
return 1;
41+
}
42+
int Bel::Append(BelRow *ARow)
43+
{
44+
if (TableEnd >= 100) return 0;
45+
memcpy(&Table[TableEnd], ARow, sizeof(BelRow));
46+
TableEnd++;
47+
return 1;
48+
}
49+
BelRow *Bel::FindRowByName(char *Name)
50+
{
51+
for (int i = 0; i < TableEnd; i++)
52+
if (!strcmp(Table[i].Name, Name)) return &Table[i];
53+
return NULL;
54+
}
55+
int Bel::Next(void)
56+
{
57+
int NextRecord = CurrentRecord++;
58+
if (TableEnd >= 100 - 1) return EOT;
59+
return NextRecord;
60+
}
61+
int Bel::Prev(void)
62+
{
63+
int PrevRecord = CurrentRecord--;
64+
if (CurrentRecord <= 0) return BOT;
65+
return PrevRecord;
66+
}
67+
BelRow *Bel::Get(void)
68+
{
69+
return &Table[CurrentRecord];
70+
}
71+
void printBelRow(BelRow *ARow)
72+
{
73+
printf("\nName = %s, Fam = %s, Tel = %lu\n", ARow->Name, ARow->Fam, ARow->Tel);
74+
}
75+
int main(void)
76+
{
77+
int x, y;
78+
Bel Tef1;
79+
Tef1.Append("Ivan", "Petrov", 342123L);
80+
Tef1.Append("Stefan", "Stojanov", 547323L);
81+
Tef1.Append("Milena", "Angelova", 126598L);
82+
Tef1.Append("Georgi", "Georgiev", 447619L);
83+
Tef1.Append("Minka", "Hadjieva", 983234L);
84+
85+
printf("\tFirst is:");
86+
Tef1.First();
87+
Tef1.Get();
88+
printBelRow(Tef1.Get());
89+
for (int i = 1; i < 5; i++)
90+
{
91+
printf("\tNext is:");
92+
Tef1.Next();
93+
printBelRow(Tef1.Get());
94+
}
95+
printf("\tLast is:");
96+
Tef1.Last();
97+
Tef1.Get();
98+
printBelRow(Tef1.Get());
99+
printf("\tPrevious is:");
100+
Tef1.Prev();
101+
Tef1.Get();
102+
printBelRow(Tef1.Get());
103+
104+
return 0;
105+
}

PhoneBook/Ex1/Ex1.vcxproj

+95
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="12.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+
</ItemGroup>
13+
<PropertyGroup Label="Globals">
14+
<ProjectGuid>{83CD0184-2F2A-4E2D-B0C7-026915A41F0F}</ProjectGuid>
15+
<Keyword>Win32Proj</Keyword>
16+
<RootNamespace>Ex1</RootNamespace>
17+
</PropertyGroup>
18+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
19+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
20+
<ConfigurationType>Application</ConfigurationType>
21+
<UseDebugLibraries>true</UseDebugLibraries>
22+
<PlatformToolset>v120</PlatformToolset>
23+
<CharacterSet>Unicode</CharacterSet>
24+
</PropertyGroup>
25+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
26+
<ConfigurationType>Application</ConfigurationType>
27+
<UseDebugLibraries>false</UseDebugLibraries>
28+
<PlatformToolset>v120</PlatformToolset>
29+
<WholeProgramOptimization>true</WholeProgramOptimization>
30+
<CharacterSet>Unicode</CharacterSet>
31+
</PropertyGroup>
32+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
33+
<ImportGroup Label="ExtensionSettings">
34+
</ImportGroup>
35+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
36+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
37+
</ImportGroup>
38+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
39+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
40+
</ImportGroup>
41+
<PropertyGroup Label="UserMacros" />
42+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
43+
<LinkIncremental>true</LinkIncremental>
44+
</PropertyGroup>
45+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
46+
<LinkIncremental>false</LinkIncremental>
47+
</PropertyGroup>
48+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
49+
<ClCompile>
50+
<PrecompiledHeader>Use</PrecompiledHeader>
51+
<WarningLevel>Level3</WarningLevel>
52+
<Optimization>Disabled</Optimization>
53+
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
54+
<SDLCheck>true</SDLCheck>
55+
</ClCompile>
56+
<Link>
57+
<SubSystem>Console</SubSystem>
58+
<GenerateDebugInformation>true</GenerateDebugInformation>
59+
</Link>
60+
</ItemDefinitionGroup>
61+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
62+
<ClCompile>
63+
<WarningLevel>Level3</WarningLevel>
64+
<PrecompiledHeader>Use</PrecompiledHeader>
65+
<Optimization>MaxSpeed</Optimization>
66+
<FunctionLevelLinking>true</FunctionLevelLinking>
67+
<IntrinsicFunctions>true</IntrinsicFunctions>
68+
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
69+
<SDLCheck>true</SDLCheck>
70+
</ClCompile>
71+
<Link>
72+
<SubSystem>Console</SubSystem>
73+
<GenerateDebugInformation>true</GenerateDebugInformation>
74+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
75+
<OptimizeReferences>true</OptimizeReferences>
76+
</Link>
77+
</ItemDefinitionGroup>
78+
<ItemGroup>
79+
<Text Include="ReadMe.txt" />
80+
</ItemGroup>
81+
<ItemGroup>
82+
<ClInclude Include="stdafx.h" />
83+
<ClInclude Include="targetver.h" />
84+
</ItemGroup>
85+
<ItemGroup>
86+
<ClCompile Include="Ex1.cpp" />
87+
<ClCompile Include="stdafx.cpp">
88+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
89+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
90+
</ClCompile>
91+
</ItemGroup>
92+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
93+
<ImportGroup Label="ExtensionTargets">
94+
</ImportGroup>
95+
</Project>

PhoneBook/Ex1/Ex1.vcxproj.filters

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
<Text Include="ReadMe.txt" />
19+
</ItemGroup>
20+
<ItemGroup>
21+
<ClInclude Include="stdafx.h">
22+
<Filter>Header Files</Filter>
23+
</ClInclude>
24+
<ClInclude Include="targetver.h">
25+
<Filter>Header Files</Filter>
26+
</ClInclude>
27+
</ItemGroup>
28+
<ItemGroup>
29+
<ClCompile Include="stdafx.cpp">
30+
<Filter>Source Files</Filter>
31+
</ClCompile>
32+
<ClCompile Include="Ex1.cpp">
33+
<Filter>Source Files</Filter>
34+
</ClCompile>
35+
</ItemGroup>
36+
</Project>

PhoneBook/Ex1/ReadMe.txt

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
========================================================================
2+
CONSOLE APPLICATION : Ex1 Project Overview
3+
========================================================================
4+
5+
AppWizard has created this Ex1 application for you.
6+
7+
This file contains a summary of what you will find in each of the files that
8+
make up your Ex1 application.
9+
10+
11+
Ex1.vcxproj
12+
This is the main project file for VC++ projects generated using an Application Wizard.
13+
It contains information about the version of Visual C++ that generated the file, and
14+
information about the platforms, configurations, and project features selected with the
15+
Application Wizard.
16+
17+
Ex1.vcxproj.filters
18+
This is the filters file for VC++ projects generated using an Application Wizard.
19+
It contains information about the association between the files in your project
20+
and the filters. This association is used in the IDE to show grouping of files with
21+
similar extensions under a specific node (for e.g. ".cpp" files are associated with the
22+
"Source Files" filter).
23+
24+
Ex1.cpp
25+
This is the main application source file.
26+
27+
/////////////////////////////////////////////////////////////////////////////
28+
Other standard files:
29+
30+
StdAfx.h, StdAfx.cpp
31+
These files are used to build a precompiled header (PCH) file
32+
named Ex1.pch and a precompiled types file named StdAfx.obj.
33+
34+
/////////////////////////////////////////////////////////////////////////////
35+
Other notes:
36+
37+
AppWizard uses "TODO:" comments to indicate parts of the source code you
38+
should add to or customize.
39+
40+
/////////////////////////////////////////////////////////////////////////////

PhoneBook/Ex1/stdafx.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// stdafx.cpp : source file that includes just the standard includes
2+
// Ex1.pch will be the pre-compiled header
3+
// stdafx.obj will contain the pre-compiled type information
4+
5+
#include "stdafx.h"
6+
7+
// TODO: reference any additional headers you need in STDAFX.H
8+
// and not in this file

PhoneBook/Ex1/stdafx.h

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// stdafx.h : include file for standard system include files,
2+
// or project specific include files that are used frequently, but
3+
// are changed infrequently
4+
//
5+
6+
#pragma once
7+
8+
#include "targetver.h"
9+
10+
#include <stdio.h>
11+
#include <tchar.h>
12+
13+
14+
15+
// TODO: reference additional headers your program requires here

PhoneBook/Ex1/targetver.h

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#pragma once
2+
3+
// Including SDKDDKVer.h defines the highest available Windows platform.
4+
5+
// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and
6+
// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h.
7+
8+
#include <SDKDDKVer.h>
2.94 MB
Binary file not shown.
2.94 MB
Binary file not shown.
2.94 MB
Binary file not shown.
2.94 MB
Binary file not shown.

0 commit comments

Comments
 (0)