diff options
Diffstat (limited to '2022-2/L8/mitsuo/LAB08_PREG01/Medicamento.cpp')
| -rw-r--r-- | 2022-2/L8/mitsuo/LAB08_PREG01/Medicamento.cpp | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/2022-2/L8/mitsuo/LAB08_PREG01/Medicamento.cpp b/2022-2/L8/mitsuo/LAB08_PREG01/Medicamento.cpp deleted file mode 100644 index b2ef540..0000000 --- a/2022-2/L8/mitsuo/LAB08_PREG01/Medicamento.cpp +++ /dev/null @@ -1,46 +0,0 @@ -/* - * File: Medicamento.cpp - * Author: mitsuo - * - * Created on 27 November 2022, 11:49 - */ - -#include <cstring> -#include "Medicamento.h" -#include "aux.h" - -Medicamento::Medicamento() { - this->codigo = -1; - this->nombre = new char [MAXLEN]; -} - -Medicamento::Medicamento(const Medicamento& orig) { -} - -Medicamento::~Medicamento() { - delete [] this->nombre; -} - -void Medicamento::SetCantidad(int cantidad) { - this->cantidad = cantidad; -} - -int Medicamento::GetCantidad() const { - return cantidad; -} - -void Medicamento::SetNombre(const char* nombre) { - strcpy(this->nombre, nombre); -} - -char* Medicamento::GetNombre() const { - return nombre; -} - -void Medicamento::SetCodigo(int codigo) { - this->codigo = codigo; -} - -int Medicamento::GetCodigo() const { - return codigo; -} |
