void* init(int budge) {
    Festival* f;
    f = new Festival(budge) ;
    return (void*)f;
}

you should make a constracor for Festival...
for example
class Festival {
   private:
   tree<bands_sorted_by_id>* tree_of_bands_by_id
   .
   .
   .
   public:
  // this is the ctor
   Festival(): tree_of_bands_by_id(new tree<bands_sorted_by_id>) ,
............{}
   ~Festival(): {
       // this is the dtor
      if (bands_by_id != NULL) {
          delete bands_by_id ;
         .
         .
      }
 }

so now you need a good d'tor for tree... and so on

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Technion References" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/reference-technion?hl=en
-~----------~----~----~----~------~----~------~--~---

לענות