Example #1
0
/*!
 *Funkcja pomocnicza do testowania algorytmu
 */
void Drzewo::Proba(){
  /*
  Dodaj(18);
  Dodaj(97);
  Dodaj(69);
  Dodaj(68);
  Dodaj(30);
  Dodaj(55);
  Dodaj(67);
  Dodaj(81);
  Dodaj(28);
  Dodaj(40);
  
  Wyswietl();
  */
  srand(time(NULL));
  int pom;

  for(int i=0;i<100;i++){
    pom=rand()%100+1;
    cout<<"-----------------------------"<<endl;
    cout<<"     "<<pom<<endl;
    cout<<"-----------------------------"<<endl;
    Dodaj(pom);
    //Wyswietl();
  }
  
  //Wyswietl();
}
Example #2
0
 TListaNode<T>* Dodaj(const T &Pod)
 {
 return Dodaj((T&)Pod);
 }
Example #3
0
	int Dodaj(const T &Pod)
	{
		return Dodaj((T&)Pod);
	}