Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- inst= new GrupoInstalaciones;
- inst->i = new Instalaciones;
- this->inst = (GrupoInstalaciones*)malloc(sizeof(GrupoInstalaciones*));
- inst->tamanyo = 1;
- inst->i = (Instalaciones*)malloc(sizeof(Instalaciones*)*inst->tamanyo +1);
- inst->i->HORAS_DISPONIBLES = (int*)malloc(sizeof(int*)* 7 +1);
- inst->i->HORAS_DISPONIBLES[0] = 0;
- inst->i->HORAS_DISPONIBLES[1] = 14;
- inst->i->HORAS_DISPONIBLES[2] = 15;
- inst->i->HORAS_DISPONIBLES[3] = 16;
- inst->i->HORAS_DISPONIBLES[4] = 17;
- inst->i->HORAS_DISPONIBLES[5] = 18;
- inst->i->HORAS_DISPONIBLES[6] = 19;
- cout <<"5"<<endl;
- inst->i->HORA_APERTURA = 13;
- cout <<"5"<<endl;
- inst->i->HORA_CIERRE = 20;
- inst->i->NOMBRE = (char*)malloc(sizeof(char*)+1);
- inst->i->NOMBRE = (char*)"Polideportivo mis huevos";
- inst->i->TAMANYO_HORAS_DISPONIBLES = (int)malloc(sizeof(int));
- inst->i->TAMANYO_HORAS_DISPONIBLES = 7;
- cout << inst->i->HORAS_DISPONIBLES[0] <<"ssajsalijdsailjdaisj"<<endl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement