Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int get_first()
- {
- float x;
- node* first = NewNode();
- ifstream inFile;
- inFile.open("test.txt");
- if (!inFile) {
- cout << "Unable to open file";
- std::cin.get();
- exit(1); // terminate with error
- }
- inFile >> x;
- return(x);
- }
- int main()
- {
- int n;
- get_first() = n;
- node* point = insert();
- inserting();
- printTree(point);
- std::cin.get();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement