Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void i_freq(const T& x, node_arbreGen* node, int&num) const{
- if(node != NULL){
- if(node->info == x) ++num;
- for(int i=0; i<node->seg.size(); ++i){
- i_freq(x,node->seg[i],num);
- }
- }
- }
- int freq(const T& x) const{
- int n=0;
- i_freq(x, this->primer_node, n);
- return n;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement