I got it working!!!!
Atleast, i can start to create a doubly linked list in my insert function now..
Problem is the book doesnt really cover initializer list and the teacher has little notes on it.
Thanks for everyones help! Sorry i didint "Get it" sooner...
Code:
list::node::node(const winery &winery) : item(winery.getName(), winery.getLocation(), winery.getAcres(), winery.getRating())
{
item = winery;
nextByName = NULL;
nextByRating = NULL;
}
Code:
void list::insert(const winery& winery)
{
node* newNode = new node(winery);