//linklistMain #include"node.h" #include"linklist.h" #define THEMAIN_CPP #ifdef THEMAIN_CPP int main() { ofstream outfile("linklistout.txt"); ifstream infile("linklistinput.txt"); //all constructor/destructor data will go to the screen //other output will go to "linklistout.txt" linklist mylist; outfile << mylist << endl; //should print empty list mylist.insert(3); mylist.insert(15); outfile << mylist << endl; //print list with two elements outfile << "Output of list with data from file added." << endl; cout << "Output for input function." << endl; infile >> mylist; outfile << mylist << endl; return 0; }//end main #endif