summaryrefslogtreecommitdiffstats
path: root/2023-2/L00/mitsuo/main.cpp
diff options
context:
space:
mode:
authorMitsuo Tokumori <[email protected]>2023-09-18 15:47:57 -0500
committerMitsuo Tokumori <[email protected]>2023-09-18 15:47:57 -0500
commite283be2be6910d8378c35056937d46c1b54297b0 (patch)
treed23b462f7b8d6082a2b152b0d350fc95fcd82d4c /2023-2/L00/mitsuo/main.cpp
parentbe34531e5a29be4d4c0a313e23aaf36850e4eb62 (diff)
downloadLP1-e283be2be6910d8378c35056937d46c1b54297b0.tar.gz
LP1-e283be2be6910d8378c35056937d46c1b54297b0.tar.bz2
LP1-e283be2be6910d8378c35056937d46c1b54297b0.zip
Very smol update
Diffstat (limited to '2023-2/L00/mitsuo/main.cpp')
-rw-r--r--2023-2/L00/mitsuo/main.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/2023-2/L00/mitsuo/main.cpp b/2023-2/L00/mitsuo/main.cpp
new file mode 100644
index 0000000..fc150df
--- /dev/null
+++ b/2023-2/L00/mitsuo/main.cpp
@@ -0,0 +1,21 @@
+// Just an example of I/O with files for INF281
+// Compile with: clang++ -g main.cpp fun.cpp && ./a.out
+// Mitsuo 2023-08-17
+
+#include <iostream>
+#include <fstream> // archivos
+
+#include "fun.h"
+
+using namespace std;
+
+int main(int argc, char ** argv) {
+ ifstream in("Libros.csv");
+ if (!in) {
+ cerr << "Error: No se pudo abrir archivo\n";
+ }
+ ofstream out("reporte.txt");
+ leer_datos_escribir_reporte(in, out);
+ return 0;
+}
+