summaryrefslogtreecommitdiffstats
path: root/2022-2/L10/mitsuo/Medicamento.h
diff options
context:
space:
mode:
authorMitsuo Tokumori <[email protected]>2022-12-04 23:13:28 -0500
committerMitsuo Tokumori <[email protected]>2022-12-04 23:13:28 -0500
commit8e01ba134a230e47e8b80351dd8abc8c3b72e683 (patch)
tree3f0e174c80cc4a6e4a2aa2b5351f4dad66b49d89 /2022-2/L10/mitsuo/Medicamento.h
parentce58d6504665422a0817cf0ddb38fc533d0de33e (diff)
downloadLP1-8e01ba134a230e47e8b80351dd8abc8c3b72e683.tar.gz
LP1-8e01ba134a230e47e8b80351dd8abc8c3b72e683.tar.bz2
LP1-8e01ba134a230e47e8b80351dd8abc8c3b72e683.zip
Add my solution for L10
Diffstat (limited to '2022-2/L10/mitsuo/Medicamento.h')
-rw-r--r--2022-2/L10/mitsuo/Medicamento.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/2022-2/L10/mitsuo/Medicamento.h b/2022-2/L10/mitsuo/Medicamento.h
new file mode 100644
index 0000000..46ad4dc
--- /dev/null
+++ b/2022-2/L10/mitsuo/Medicamento.h
@@ -0,0 +1,34 @@
+/*
+ * File: Medicamento.h
+ * Author: mitsuo
+ *
+ * Created on 02 December 2022, 12:31
+ */
+
+#ifndef MEDICAMENTO_H
+#define MEDICAMENTO_H
+
+#include <iostream>
+
+class Medicamento {
+public:
+ Medicamento();
+ Medicamento(const Medicamento& orig);
+ virtual ~Medicamento();
+ void setPrecio(double precio);
+ double getPrecio() const;
+
+ int getCodigo() const;
+
+ virtual int lee(std::istream &input);
+ virtual void imprime(std::ostream &output);
+ virtual void actualiza(std::istream &input);
+private:
+ int codigo;
+ char * nombre;
+ int stock;
+ double precio;
+};
+
+#endif /* MEDICAMENTO_H */
+