Guest User

Untitled

a guest
May 25th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. while(linea!=VACIO){
  2. Lista<std::string>*datosCultivo;
  3. cultivos.datosLista(linea, datosCultivo);
  4. cargarCultivosJugador(datosCultivo);
  5. datosCultivo=NULL;
  6. }
  7. void Jugador::cargarCultivosJugador(Lista<std::string>*datos){
  8. std::string tipoSemilla=datos->obtener(1).c_str();
  9. std::cout<<tipoSemilla<<std::endl;
  10. if(tipoSemilla=="A"){
  11. //this->cultivos->tipoA->agregarInfo(datos);
  12. }
  13. else if(tipoSemilla=="B"){
  14. this->cultivos->tipoB->agregarInfo(datos);
  15. }
  16. else if(tipoSemilla=="C"){
  17. this->cultivos->tipoC->agregarInfo(datos);
  18. }
  19. else{
  20. std::cout<<"No se cargaron los cultivos..."<<std::endl;
  21. }
  22. }
Add Comment
Please, Sign In to add comment