summaryrefslogtreecommitdiffstats
path: root/2023-2/L00/mitsuo/main.cpp
blob: fc150dfe6c61a80e3155160efcd663c1667ce801 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
}