Esempio n. 1
0
double tower_height(const Tower& t){
  Tower::const_iterator it;
  double res = 0;
  for(it=t.begin(); it!=t.end(); it++){
    res += it->height();
  }    
  return res;
}
Esempio n. 2
0
void show_tower(const Tower& t){
  Tower::const_iterator it;
  for(it=t.begin(); it!=t.end(); it++){
    it->show();
  }
}