File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 128
128
129
129
Napisz klasę ` Player ` , która posiadać będzie 3 pola:
130
130
131
- * ` std::shared_ptr<Ship> ship_ ` (dla chętnych, spróbój użyć std::unique_ptr<>)
131
+ * ` std::shared_ptr<Ship> ship_ ` (dla chętnych, spróbuj użyć ` std::unique_ptr<> ` )
132
132
* ` money_ `
133
133
* ` availableSpace_ `
134
134
Original file line number Diff line number Diff line change 48
48
49
49
## Zadanie 4
50
50
51
- Utwórz klasę ` Cargo ` , która posiadać będzie 3 pola:
51
+ Utwórz klasę ` Cargo ` . Ma ona reprezentować 1 typ towaru na statku. Będzie ona posiadać 3 pola:
52
52
53
53
* ` name_ ` - nazwa towaru
54
54
* ` amount_ ` - ilość towaru
55
55
* ` basePrice_ ` - bazowa cena towaru
56
56
57
- Następnie napisz w klasie statku ` Cargo ` :
57
+ Następnie napisz w klasie ` Cargo ` :
58
58
59
- * ` Cargo& operator+=(const size_t) ` , który będzie dodawać towar do statku
60
- * ` Cargo& operator-=(const size_t) ` , który będzie odejmował towar
59
+ * ` Cargo& operator+=(const size_t) ` , który będzie dodawać podaną ilość towaru
60
+ * ` Cargo& operator-=(const size_t) ` , który będzie odejmował podaną ilość towaru
61
61
62
- Zastanów się także jak rozwiążesz problem przechowywania towaru na statku.
62
+ Zastanów się także jak będziesz przechowywać towary na statku.
63
63
64
64
___
65
65
You can’t perform that action at this time.
0 commit comments