Exemplo n.º 1
0
void printListSites(Site *listSites, int option){
    int c = 0;
    for(Site *tempSites = listSites; tempSites!=NULL;tempSites = tempSites->sig){
        if(option == 0){
            cout<<c<<"- ";
            tempSites->print();
            c++;
        }
        else if(option == 1){
            tempSites->printAll();
        }
    }
}