#include #include #include "apvector.h" #include "listNode2.h" //using namespace main_savitch_5; int main(){ node< apvector > * head_ptr = NULL; apvector temp; for(int i = 1; i <= 10; i++){ temp.resize(i); for(int j = 1; j <= i; j++) temp[j-1] = i*j; for(int j = 0; j < i; j++) cout << temp[j] << " "; cout << endl; list_head_insert(head_ptr, temp); } while(head_ptr != NULL){ apvector temp; temp = head_ptr->data(); for(int i = 0; i < temp.length(); i++) cout << temp[i] << " "; cout << endl; list_head_remove(head_ptr); } return EXIT_SUCCESS; }