Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    [C] Deallocare un quad tree

    Come dealloco un albero con 4 figli?

    codice:
    typedef struct qtnode {
    int cx;
    int cy;
    int mol;
    struct qtnode *nord;
    struct qtnode *sud;
    struct qtnode *ovest;
    struct qtnode *est;
    }qtnode;
    typedef struct qtnode* tree;
    Grazie

  2. #2
    Utente di HTML.it L'avatar di Stoicenko
    Registrato dal
    Feb 2004
    Messaggi
    2,254
    prima deallochi i figli e poi il nodo padre

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.