Here is some code that works that has no flaws. I would like to be challenged to do something with it because it is too small.
/*Written by Edward T. Tisdale
domain: www.edwardtisdale.com linked to Geocities
with help from THE C++ STANDARD LIBRARY A Tutorial and Reference by Nicolai M. Josuttis.
using namespace std;
/*void printLists (const list<int>& L)
cout << "Two files do not belong. Put all files with code 4 away." << endl << endl;
cout << "Code:" << array[i] << endl;
cout << "Put in?(y/n)" << endl;
cin >> response;
else if(response=='n') i++;
else cout << "That is not a correct response." <<endl;
cout << "If all values you put in come from this list, then this is a correctly working linear linked list." << endl;
cout << "Here is the list from the front:" << endl;
copy (L.begin(),L.end(), ostream_iterator<int> (cout," "));
cout << endl << endl;