You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
637 B

//
// File.swift
// Calculator
//
// Created by etudiant on 23/05/2023.
//
import Foundation
struct Matieres: Identifiable, Equatable{
static func == (lhs: Matieres, rhs: Matieres) -> Bool {
lhs.id == rhs.id
}
let id : UUID
var name: String
var coef : Int
var note : Double
public init(name: String, coef: Int, note: Double) {
self.id = UUID()
self.name = name
self.coef = coef
self.note = note
}
public init(name: String,note: Double,coef:Int) {
self.id = UUID()
self.name = name
self.note = note
self.coef=coef
}
}