Hello i want to declare a new file for each class as a variable.
eg.
1 2 3 4 5 6 7 8 9 10 11
class bst
{
node *root;
ofstream out("out.txt"); //i want to do someting like this
public:
int num_elem;
bst(){root=NULL; num_elem=0;}
void insert(int value);
void inorder();
void print_inorder(node *curr,int i);
};