int main (void) { TList one; one.visit(show); cout << endl; cout << "是否空:" << boolalpha << one.isEmpty(); cout << endl << "=========" << endl; TList::Item arr[] = {1, 2, 3}; TList two(arr, sizeof(arr)/sizeof(arr[0])); two.visit(show); cout << endl; cout << "是否满:" << two.isFull(); cout << endl; cout << "是否空:" << two.isEmpty(); cout << endl; cout << "追加一项:" << two.append(16); cout << endl; two.visit(show); cout << endl; cout << endl; return (0); }