summaryrefslogtreecommitdiffstats
path: root/2022-2/L8/mitsuo/LAB08_PREG01/main.cpp
diff options
context:
space:
mode:
authorMitsuo Tokumori <[email protected]>2022-11-27 13:57:46 -0500
committerMitsuo Tokumori <[email protected]>2022-11-27 13:57:46 -0500
commit337c2e523dc1a849804e0749fc85e2fb8bfa53a3 (patch)
tree50d9c41d7eec8695079f8d0b26661c79e0de2bef /2022-2/L8/mitsuo/LAB08_PREG01/main.cpp
parent2202706efaf7a067af0495d531998b8ad8b86a92 (diff)
downloadLP1-337c2e523dc1a849804e0749fc85e2fb8bfa53a3.tar.gz
LP1-337c2e523dc1a849804e0749fc85e2fb8bfa53a3.tar.bz2
LP1-337c2e523dc1a849804e0749fc85e2fb8bfa53a3.zip
Add enunciados, add sol to L8
Diffstat (limited to '2022-2/L8/mitsuo/LAB08_PREG01/main.cpp')
-rw-r--r--2022-2/L8/mitsuo/LAB08_PREG01/main.cpp41
1 files changed, 41 insertions, 0 deletions
diff --git a/2022-2/L8/mitsuo/LAB08_PREG01/main.cpp b/2022-2/L8/mitsuo/LAB08_PREG01/main.cpp
new file mode 100644
index 0000000..b506498
--- /dev/null
+++ b/2022-2/L8/mitsuo/LAB08_PREG01/main.cpp
@@ -0,0 +1,41 @@
+/*
+ * File: main.cpp
+ * Author: mitsuo
+ * timestamps:
+ * - 11:15 (start)
+ * - 11:35 read enunciado
+ * - 11:58 boilerplate classes done
+ * - 12:23 read medicos (slow)
+ * - 13:24 read sinreceta and conreceta (also print test)
+ * - 13:28 print report
+ * - 13:40 search medicamento name
+ * - 13:43 search medico specialty (end pregunta1)
+ * - 13:48 copy project (end pregunta2) (literally the same)
+ *
+ * total time: 2h 33m
+ *
+ * Created on 27 November 2022, 11:32
+ */
+
+#include <iostream>
+#include <cstdlib>
+#include "Farmacia.h"
+
+using namespace std;
+
+/* - Leer medicos
+ * - Leer recetas (dependiendo del primer digito del medicamento,
+ * sera con receta o sin receta)
+ * - Buscar nombre de medicamento en medicamentos.csv
+ * - Si es con receta busca en lmedicos (medicoId, medicoEsp)
+ * - Imprimir sinreceta y luego conreceta.
+ */
+int main(int argc, char** argv) {
+ Farmacia ofarma;
+
+ ofarma.cargaMedico();
+ ofarma.leeReceta();
+ ofarma.imprimirReceta();
+ return 0;
+}
+