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

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

parent 7a5964a0
No related merge requests found
Showing with 3 additions and 1 deletion
+3 -1
...@@ -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 &&
......
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