]> git.llucax.com Git - z.facultad/75.29/susanita.git/blobdiff - src/parser.cpp
Agrega script para correr pruebas.
[z.facultad/75.29/susanita.git] / src / parser.cpp
index fa2b16ab09dddbd084024c21800b03d85c9e1435..c4453ccdc074fec79b8df1ee5aa5fa50d8a7db67 100644 (file)
@@ -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;