Ejemplo n.º 1
0
void House::flipFirstCard(){

	Card* card = pop_first();
	card->flip();
	push_first(card);

}
Ejemplo n.º 2
0
/* GRAPH FUNCTIONS*/
void dfs(Nod *head, int numberNodes, int root, int adiacentMatrix[100][100], int vectorVisit[100]){
    int i, j;
    push_first(head, root);

    while(head->next != NULL){
        root = pop_first(head);
        vectorVisit[root] = 1;
        printf(" %d ", root);

        for(i = numberNodes; i >= 1; i--){
            if(adiacentMatrix[root][i] == 1 && vectorVisit[i] == 0){
                push_first(head, i);
            }
        }
    }
    for(i = numberNodes; i >= 1; i--){
        vectorVisit[i] = 0;
    }
}