Commit e5c3190d authored by Илья Богданов's avatar Илья Богданов
Browse files

Замечания по medic.h

parent 3939b80d
No related merge requests found
Showing with 7 additions and 7 deletions
+7 -7
...@@ -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&);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment