void winerys::info(winerys & wine)
{
ofstream outfile("page.txt");
node *temp;
temp = new node;
cout << "please enter date the winery went into business" << endl;
cin >> temp->start;
cout << "please enter the loaction of winery" << endl;
cin >> temp->name;
cout << "plese enter the name of winery occupies" << endl;
cin >> temp->area;
cout << "please enter the overall success of winery, good or bad," << endl;
cin >> temp->rating;
cout << "please enter the num of acres the winery" << endl;
cin >> temp->num;
temp->nxt = NULL;
outfile << temp->start <<';' <<temp->name <<';'<< temp->area
<<';' << temp->rating<<';' << temp->num <<';'<< endl;
outfile.close();
}
list::list(char * fileName)
{
ifstream infile("page.txt");
headByName = new lnode;
headByName->item = curr->item;
wine = winerys( curr->str,curr->nam,curr->are,curr->rat,curr->nu);
infile.close();
insert(wine);
}
i cant seem to load a linked list "double threaded" in the list class , from the winery class. and then pass "wine" -Which hold all of the info about the winery::::