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/ConReceta.cpp | 49 ----------------------------- 1 file changed, 49 deletions(-) delete mode 100644 2022-2/L8/mitsuo/LAB08_PREG01/ConReceta.cpp (limited to '2022-2/L8/mitsuo/LAB08_PREG01/ConReceta.cpp') diff --git a/2022-2/L8/mitsuo/LAB08_PREG01/ConReceta.cpp b/2022-2/L8/mitsuo/LAB08_PREG01/ConReceta.cpp deleted file mode 100644 index 4e03ba8..0000000 --- a/2022-2/L8/mitsuo/LAB08_PREG01/ConReceta.cpp +++ /dev/null @@ -1,49 +0,0 @@ -/* - * File: ConReceta.cpp - * Author: mitsuo - * - * Created on 27 November 2022, 11:51 - */ - -#include -#include -#include "ConReceta.h" -#include "aux.h" - -using namespace std; - -ConReceta::ConReceta() { - this->especialidad = new char [MAXLEN]; -} - -ConReceta::ConReceta(const ConReceta& orig) { -} - -ConReceta::~ConReceta() { - delete [] this->especialidad; -} - -void ConReceta::SetEspecialidad(const char* especialidad) { - strcpy(this->especialidad, especialidad); -} - -char* ConReceta::GetEspecialidad() const { - return especialidad; -} - -void ConReceta::SetCodmed(int codmed) { - this->codmed = codmed; -} - -int ConReceta::GetCodmed() const { - return codmed; -} - -void ConReceta::write(std::ostream & output) { - output << WL(12) << this->GetCodigo(); - output << WL(40) << this->GetNombre(); - output << WR(8) << this->GetCantidad(); - output << WL(12) << this->codmed; - output << WL(20) << this->especialidad; - output << '\n'; -} -- cgit v1.2.3