Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Никита Амелин
I_O streams and STL
Commits
6ed88b0a
Commit
6ed88b0a
authored
3 years ago
by
Илья Богданов
Browse files
Options
Download
Patches
Plain Diff
Замечания по Functions.h
parent
b17d8670
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Part 2/Functions.h
+6
-0
Part 2/Functions.h
with
6 additions
and
0 deletions
+6
-0
Part 2/Functions.h
+
6
−
0
View file @
6ed88b0a
...
@@ -94,6 +94,8 @@ void Replace_Account(int accNum, const BAccount& acc, const std::string& bFilePa
...
@@ -94,6 +94,8 @@ void Replace_Account(int accNum, const BAccount& acc, const std::string& bFilePa
void
Search_by_Number
(
const
int
num
,
const
std
::
string
&
mainBPath
,
const
std
::
string
&
newBPath
)
void
Search_by_Number
(
const
int
num
,
const
std
::
string
&
mainBPath
,
const
std
::
string
&
newBPath
)
{
{
//!!! По заданию нужно использовать алгоритмы
std
::
map
<
int
,
BAccount
>
map
;
std
::
map
<
int
,
BAccount
>
map
;
Create_Map
(
map
,
mainBPath
);
Create_Map
(
map
,
mainBPath
);
std
::
vector
<
BAccount
>
res
;
std
::
vector
<
BAccount
>
res
;
...
@@ -113,6 +115,8 @@ void Search_by_Number(const int num, const std::string& mainBPath, const std::st
...
@@ -113,6 +115,8 @@ void Search_by_Number(const int num, const std::string& mainBPath, const std::st
void
Search_by_Code
(
const
long
AccCode
,
const
std
::
string
&
mainBPath
,
const
std
::
string
&
newBPath
)
void
Search_by_Code
(
const
long
AccCode
,
const
std
::
string
&
mainBPath
,
const
std
::
string
&
newBPath
)
{
{
//!!! По заданию нужно использовать алгоритмы
std
::
map
<
int
,
BAccount
>
map
;
std
::
map
<
int
,
BAccount
>
map
;
Create_Map
(
map
,
mainBPath
);
Create_Map
(
map
,
mainBPath
);
std
::
vector
<
BAccount
>
res
;
std
::
vector
<
BAccount
>
res
;
...
@@ -132,6 +136,8 @@ void Search_by_Code(const long AccCode, const std::string& mainBPath, const std:
...
@@ -132,6 +136,8 @@ void Search_by_Code(const long AccCode, const std::string& mainBPath, const std:
void
Search_by_Surname
(
const
std
::
string
&
surn
,
const
std
::
string
&
mainBPath
,
const
std
::
string
&
newBPath
)
void
Search_by_Surname
(
const
std
::
string
&
surn
,
const
std
::
string
&
mainBPath
,
const
std
::
string
&
newBPath
)
{
{
//!!! По заданию нужно использовать алгоритмы
std
::
map
<
int
,
BAccount
>
map
;
std
::
map
<
int
,
BAccount
>
map
;
Create_Map
(
map
,
mainBPath
);
Create_Map
(
map
,
mainBPath
);
std
::
vector
<
BAccount
>
res
;
std
::
vector
<
BAccount
>
res
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets