From 49d4392ca1972c8d66b1015f2cdda414d94812b8 Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Fri, 18 Aug 2023 01:56:52 -0500 Subject: Fix naming. Add leading 0 to lab names --- 2022-2/L8/mitsuo/LAB08_PREG01/SinReceta.cpp | 49 ----------------------------- 1 file changed, 49 deletions(-) delete mode 100644 2022-2/L8/mitsuo/LAB08_PREG01/SinReceta.cpp (limited to '2022-2/L8/mitsuo/LAB08_PREG01/SinReceta.cpp') diff --git a/2022-2/L8/mitsuo/LAB08_PREG01/SinReceta.cpp b/2022-2/L8/mitsuo/LAB08_PREG01/SinReceta.cpp deleted file mode 100644 index 5fdd043..0000000 --- a/2022-2/L8/mitsuo/LAB08_PREG01/SinReceta.cpp +++ /dev/null @@ -1,49 +0,0 @@ -/* - * File: SinReceta.cpp - * Author: mitsuo - * - * Created on 27 November 2022, 11:53 - */ - -#include -#include -#include "SinReceta.h" -#include "aux.h" - -using namespace std; - -SinReceta::SinReceta() { - this->nombre = new char [MAXLEN]; -} - -SinReceta::SinReceta(const SinReceta& orig) { -} - -SinReceta::~SinReceta() { - delete [] this->nombre; -} - -void SinReceta::SetPacienteNombre(const char* nombre) { - strcpy(this->nombre, nombre); -} - -char* SinReceta::GetPacienteNombre() const { - return nombre; -} - -void SinReceta::SetDni(int dni) { - this->dni = dni; -} - -int SinReceta::GetDni() const { - return dni; -} - -void SinReceta::write(std::ostream & output) { - output << WL(12) << this->GetCodigo(); - output << WL(40) << this->GetNombre(); - output << WR(8) << this->GetCantidad(); - output << WL(12) << this->dni; - output << WL(20) << this->nombre; - output << '\n'; -} -- cgit v1.2.3