int main() { float nota; printf("Ingrese nota : "); scanf("%f",¬a); printf("El concepto es %c\n",concepto(nota)); }
concepto mapa::getConceptoNum(int num)const{ QListIterator <concepto> i(listaConceptos); i.toFront(); //iteradorConceptos=listaConceptos.begin(); while(i.hasNext() && i.peekNext().getNumConcepto()!=num){//iteradorConceptos->getNumConcepto()!=num){ i.next(); } if(i.peekNext().getNumConcepto()==num){ return i.peekNext(); } else{ return concepto ("nulo",0,0); } }
void mapa::agregarConcepto(concepto concep){ numConceptos++; listaConceptos.push_back(concepto(concep.getTexto(),concep.getPosX(),concep.getPosY(),numConceptos)); }