Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include "Baum.h"
- int main()
- {
- fstream einlesen;
- string tmp;
- CBaum Liste;
- einlesen.open("Testdaten.txt",ios::in);
- if(einlesen.is_open())
- {
- while(!einlesen.eof())
- {
- getline(einlesen,tmp);
- Liste.einfuegenKnoten(new CKnoten(tmp));
- }
- }
- einlesen.close();
- Liste.ausgabeBaum(Liste.getWurzel(),0);
- cout<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement