Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while(linea!=VACIO){
- Lista<std::string>*datosCultivo;
- cultivos.datosLista(linea, datosCultivo);
- cargarCultivosJugador(datosCultivo);
- datosCultivo=NULL;
- }
- void Jugador::cargarCultivosJugador(Lista<std::string>*datos){
- std::string tipoSemilla=datos->obtener(1).c_str();
- std::cout<<tipoSemilla<<std::endl;
- if(tipoSemilla=="A"){
- //this->cultivos->tipoA->agregarInfo(datos);
- }
- else if(tipoSemilla=="B"){
- this->cultivos->tipoB->agregarInfo(datos);
- }
- else if(tipoSemilla=="C"){
- this->cultivos->tipoC->agregarInfo(datos);
- }
- else{
- std::cout<<"No se cargaron los cultivos..."<<std::endl;
- }
- }
Add Comment
Please, Sign In to add comment