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