Exemplo n.º 1
0
int main()
{
   float nota;
   printf("Ingrese nota : ");
   scanf("%f",&nota);
   printf("El concepto es %c\n",concepto(nota));
}
Exemplo n.º 2
0
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);
    }
}
Exemplo n.º 3
0
void mapa::agregarConcepto(concepto concep){
    numConceptos++;
    listaConceptos.push_back(concepto(concep.getTexto(),concep.getPosX(),concep.getPosY(),numConceptos));
}