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