From e283be2be6910d8378c35056937d46c1b54297b0 Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Mon, 18 Sep 2023 15:47:57 -0500 Subject: Very smol update --- 2023-2/L00/mitsuo/main.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 2023-2/L00/mitsuo/main.cpp (limited to '2023-2/L00/mitsuo/main.cpp') 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 +#include // 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; +} + -- cgit v1.2.3