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
Даниил Парамонов
Homework1
Commits
e5c3190d
Commit
e5c3190d
authored
3 years ago
by
Илья Богданов
Browse files
Options
Download
Patches
Plain Diff
Замечания по medic.h
parent
3939b80d
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dz1.2(var 32)/medic.h
+7
-7
dz1.2(var 32)/medic.h
with
7 additions
and
7 deletions
+7
-7
dz1.2(var 32)/medic.h
+
7
−
7
View file @
e5c3190d
...
@@ -8,15 +8,15 @@
...
@@ -8,15 +8,15 @@
struct
drug
struct
drug
{
{
int
pharmacy
;
//
int
pharmacy
;
//
std
::
string
name
;
//
std
::
string
name
;
//
!!! При работе с бинарными файлами некорректно использовать string - нужно char name [...]
int
quantity
;
//
int
quantity
;
//
double
price
;
//
double
price
;
//
std
::
string
date
;
//
std
::
string
date
;
//
!!! При работе с бинарными файлами некорректно использовать string - нужно char date [...]
int
storage_time
;
//
int
storage_time
;
//
drug
()
=
default
;
drug
()
=
default
;
drug
(
int
,
std
::
string
,
int
,
double
,
std
::
string
,
int
);
drug
(
int
,
std
::
string
,
int
,
double
,
std
::
string
,
int
);
//!!! Почему строки передаются по значению?
friend
std
::
istream
&
operator
>>
(
std
::
istream
&
,
drug
&
);
friend
std
::
istream
&
operator
>>
(
std
::
istream
&
,
drug
&
);
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
,
drug
&
);
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
,
drug
&
);
...
...
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