X-Git-Url: https://git.llucax.com/z.facultad/75.29/susanita.git/blobdiff_plain/9d34215ecaec19da3d96f812c72f146c0e332a55..08496388378e6399c127cf6c569f411add13e9a7:/src/parser.cpp?ds=inline 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;