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
Хаписов Малик
Streams and STL
Commits
b91fe701
Commit
b91fe701
authored
3 years ago
by
Илья Богданов
Browse files
Options
Download
Patches
Plain Diff
Замечания по TravelCompany.h
parent
7a5964a0
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Streams and STL/TravelCompany.h
+3
-1
Streams and STL/TravelCompany.h
with
3 additions
and
1 deletion
+3
-1
Streams and STL/TravelCompany.h
+
3
−
1
View file @
b91fe701
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
class
TravelCompany
{
class
TravelCompany
{
private:
private:
struct
Data
{
struct
Data
{
std
::
string
tour_name
;
std
::
string
tour_name
;
//!!! Для корректной работы с бинарными файлами нужно использовать статические массивы char name[64], например.
std
::
string
surname
;
std
::
string
surname
;
int
price
;
int
price
;
int
days
;
int
days
;
...
@@ -47,6 +47,8 @@ private:
...
@@ -47,6 +47,8 @@ private:
bool
operator
==
(
const
Data
&
data
)
{
bool
operator
==
(
const
Data
&
data
)
{
//!!! Убрать лишние this
return
(
this
->
tour_name
==
data
.
tour_name
&&
return
(
this
->
tour_name
==
data
.
tour_name
&&
this
->
surname
==
data
.
surname
&&
this
->
surname
==
data
.
surname
&&
this
->
price
==
data
.
price
&&
this
->
price
==
data
.
price
&&
...
...
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