But when I compile I get an unndefined error to this function
in the main function on lines of "cout << list1;
and cout <<list2;
In other words the lists never get printed.
Here is part of main()
[code]
int main!()
{
doublyLinkedList<int> list1, list2;
int num;
count<<"Enter integers ending with -999"<<endl;
cin >> num;
while(num != -999)
{
list1.insertNode(num);
cin >> num;
}
cout<<endl;
count<<"List1: " <<List1 <<endl;
list2 = List1;
cout<<"List2: " << list2 <<endl;
}
The undefined error only occurs on the lines that should print the list.
You're verging on being a troll with your silly typos.
> But when I compile I get an unndefined error to this function
Yeah, and it would also tell you the NAME of the thing that was undefined.
Most commonly, it's an inability to spell correctly.