-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lab6 7 #528
Lab6 7 #528
Conversation
Вам была дана возможность переделать все с нуля, доказать, что можете справиться сами без ChatGPT. Могу предложить только 0 баллов за 6 лабораторную. По поводу 7 оставлю комментарии отдельно |
golang/lab7/structs.go
Outdated
type Laptop struct { | ||
Model string | ||
Price float64 | ||
ROM float64 | ||
} | ||
|
||
func (l *Laptop) SetModel(Model string) { | ||
l.Model = Model | ||
} | ||
func (l *Laptop) GetModel() string { | ||
return l.Model | ||
} | ||
func (l *Laptop) SetPrice(Price float64) { | ||
l.Price = Price | ||
} | ||
func (l *Laptop) GetPrice() float64 { | ||
return l.Price | ||
} | ||
|
||
func (l *Laptop) SetROM(ROM float64) { | ||
l.ROM = ROM | ||
} | ||
|
||
func (l *Laptop) SetDiscount(percent float64) { | ||
l.Price -= (l.Price / 100) * percent | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Создайте отдельные файлы под каждую структуру. Хранить все в одном файле - неверно
7 лабораторную зачел. Что будем делать с 6 лабораторной? Если хотите баллы по ней - сделайте новую структуру. Персонаж игры (класс, уровень) |
golang/lab6/lab6.go
Outdated
@@ -0,0 +1,41 @@ | |||
package lab6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Если сделали эту лабу в другом реквесте, то тут нужно удалить
No description provided.