Skip to content
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

Closed
wants to merge 9 commits into from
Closed

Lab6 7 #528

wants to merge 9 commits into from

Conversation

xsssvake
Copy link

No description provided.

@FeLL1kS
Copy link
Collaborator

FeLL1kS commented Dec 23, 2024

Вам была дана возможность переделать все с нуля, доказать, что можете справиться сами без ChatGPT. Могу предложить только 0 баллов за 6 лабораторную. По поводу 7 оставлю комментарии отдельно

Comment on lines 15 to 40
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
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Создайте отдельные файлы под каждую структуру. Хранить все в одном файле - неверно

@FeLL1kS
Copy link
Collaborator

FeLL1kS commented Dec 25, 2024

7 лабораторную зачел. Что будем делать с 6 лабораторной? Если хотите баллы по ней - сделайте новую структуру.

Персонаж игры (класс, уровень)

@@ -0,0 +1,41 @@
package lab6
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Если сделали эту лабу в другом реквесте, то тут нужно удалить

@xsssvake xsssvake closed this Dec 28, 2024
@xsssvake xsssvake deleted the lab6-7 branch December 28, 2024 11:06
@xsssvake xsssvake restored the lab6-7 branch December 28, 2024 11:34
@xsssvake xsssvake deleted the lab6-7 branch December 28, 2024 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants