diff options
| author | Mitsuo Tokumori <[email protected]> | 2023-08-18 01:57:48 -0500 |
|---|---|---|
| committer | Mitsuo Tokumori <[email protected]> | 2023-08-18 01:57:48 -0500 |
| commit | 387642ff612de7d0ebf09410cd8e39a4765c877a (patch) | |
| tree | 38c6160cca0ba4cfae966a74d839dd18efdf099a /2023-2/L00/main.cpp | |
| parent | 49d4392ca1972c8d66b1015f2cdda414d94812b8 (diff) | |
| download | LP1-387642ff612de7d0ebf09410cd8e39a4765c877a.tar.gz LP1-387642ff612de7d0ebf09410cd8e39a4765c877a.tar.bz2 LP1-387642ff612de7d0ebf09410cd8e39a4765c877a.zip | |
Fix naming. Add leading 0 to lab names
Diffstat (limited to '2023-2/L00/main.cpp')
| -rw-r--r-- | 2023-2/L00/main.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/2023-2/L00/main.cpp b/2023-2/L00/main.cpp new file mode 100644 index 0000000..fc150df --- /dev/null +++ b/2023-2/L00/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; +} + |
