Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- list* readoutbinarfile(list* l,list* r)
- {
- int d = 0;
- ifstream in("2.txt",ios::in ,ios::binary);
- in.seekg(ios_base::beg);
- list* t = new list,
- *t1 = new list;
- t->next = NULL;
- t->pre = NULL;
- l = 0;
- while (in.read((char*)& t->inf, sizeof(t->inf)) )
- {
- d++;
- if (d == 1)
- {
- l = t;
- t1 = l;
- r = t;
- }
- else
- {
- t->pre = r;
- r->next = t;
- r = t;
- }
- };
- in.close();
- return l;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement