X-Git-Url: https://git.llucax.com/z.facultad/75.29/susanita.git/blobdiff_plain/9d34215ecaec19da3d96f812c72f146c0e332a55..9e8e3ba3417b7d29636391e701ec505ff9aa0080:/src/parser.cpp diff --git a/src/parser.cpp b/src/parser.cpp index fa2b16a..c4453cc 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -75,7 +75,7 @@ input(const std::string& filename) susanita.add_persona(pp); } - Persona::prefs_type prefs; + int count = 0; while (ss) { std::string nombre = get_hasta(ss, ','); @@ -90,6 +90,8 @@ input(const std::string& filename) susanita.add_persona(ppp); } pp->prefs.push_back(ppp); + pp->prefs_hash[ppp->nombre] = count; + count++; } } return true;